Pulling with REST API from a Repository systematically failing
search cancel

Pulling with REST API from a Repository systematically failing

book

Article ID: 220211

calendar_today

Updated On:

Products

CA Automic One Automation

Issue/Introduction

Pulling of branches from a Repository systematically fail .


Error:

============================================================================

U00045099 The server replied with following status: '200'

20210630/141846.794 - 28506  U00045099 The server replied with following status: '200'

20210630/141850.951 - 28449  U00045098 Method 'POST', URL: 'http://GBAS30119:8088/ae/api/v1/20/repositories/pull', received from IP: '10.162.38.18'

20210630/141850.951 - 28449  U00045105 Log on of 'CHRISDRA/WL_DOM1' successful.

20210630/141852.733 - 28449            RepositoryService | Last remote commit: 63c1fb4aa57bab908b216806b17f50a740b50f30, Last local commit: b194d0ced85ac21ce94418d5b0d3ae9c05210571

20210630/141854.077 - 28449  U00045014 Exception 'java.lang.IllegalArgumentException: "Comparison method violates its general contract!"' at 'java.util.TimSort.mergeHi()'.

20210630/141854.077 - 28449  U00003620 Routine 'Repository - GetDiff failed' forces trace because of error.

20210630/141854.092 - 28449  U00003450 The TRACE file was opened with the switches '0000000000000000'.

20210630/141854.733 - 28449  U00003449 Output to the TRACE file is finished.

20210630/141854.733 - 28449  U00045014 Exception 'com.automic.repository.core.vcs.exceptions.PullFailedException: "Comparison method violates its general contract!"' at 'com.automic.repository.api.impl.RepositoryServiceImpl.pull():516'.

20210630/141854.733 - 28449  U00045015 The previous error was caused by 'java.lang.RuntimeException: "Comparison method violates its general contract!"' at 'com.automic.repository.api.impl.RepositoryServiceImpl.getDiff():685'.

20210630/141854.733 - 28449  U00045015 The previous error was caused by 'java.lang.IllegalArgumentException: "Comparison method violates its general contract!"' at 'java.util.TimSort.mergeHi()'.

20210630/141854.733 - 28449  U00045099 The server replied with following status: '500'

============================================================================

This refers to the REST API feature Pull dedicated to the Repository management :

https://docs.automic.com/documentation/webhelp/english/AA/12.3/DOCU/12.3/REST%20API/Automation.Engine/index.html?overrideUrls=../Automation.Engine/swagger.json,../Continuous.Delivery.Automation/swagger.json,../Analytics/swagger.json,../Infrastructure.Manager/swagger.json#/repositories/pull

 

 

Environment

Release : 12.3  Component : AUTOMATION ENGINE

 

Cause

This is bug in current 12.3 Version.

If the pull contains too many changes compared to the current version, this error is likely happen.

Resolution

A. This is a bug which will be fixed in a near version.

B. There are 2 workarounds:

1: Apply the changes in smaller batches, 1 commit at a time, with a smaller set of objects. Push the change in the repo from the source, and then pull the changes into production. Repeat this until all changes are propagated.

2. Apply all changes at once and re-init client from branch.