[JIRA] (JENKINS-60796) ERROR: current transaction is aborted, commands ignored until end of transaction block
Title: Message Title Dilip Mahadevappa updated an issue Jenkins / JENKINS-60796 ERROR: current transaction is aborted, commands ignored until end of transaction block Change By: Dilip Mahadevappa We have got 3 jobs configured to be triggered for the same project. When these jobs starts around the same time (with few ms difference) there is error from Gerrit plugin.*Job #1* {code:java} 2020-01-15 05:39:12.680 Triggered by Gerrit: https://gerrit.ericsson.se/67389792020-01-15 05:39:14.925 [EnvInject] - Loading node environment variables.{code}*Job #2*{code:java}2020-01-15 05:39:12.685 GMT-05:00 Triggered by Gerrit: https://gerrit.ericsson.se/67389792020-01-15 05:39:12.736 ERROR Gerrit response: Server Error{code}There is 5 ms difference between two jobs..Looks like this is happening due to concurrent [HTTP POST requests|https://github.com/sonyxperiadev/gerrit-events/blob/bfee4c4dfd1d6dd8a136ce8e349025e888f272c4/src/main/java/com/sonymobile/tools/gerrit/gerritevents/workers/rest/AbstractRestCommandJob2.java#L144] *Error at Gerrit Server side:*{code:java}[2020-01-15 05:39:12,733] [HTTP-13958483] ERROR com.google.gerrit.httpd.restapi.RestApiServlet : Error in POST /a/changes/gen2%2Fci-config~main~Ieb21ba65941b17e9d43cb82069f75c74b4bb636d/revisions/a7e7e5753887b44b63638e516b96b0b5b9d6aa60/reviewcom.google.gerrit.server.update.UpdateException: com.google.gwtorm.server.OrmException: fetch failure on patch_sets at com.google.gerrit.server.update.ReviewDbBatchUpdate$ChangeTask.call(ReviewDbBatchUpdate.java:798) at com.google.gerrit.server.update.ReviewDbBatchUpdate$ChangeTask.call(ReviewDbBatchUpdate.java:696) at com.google.common.util.concurrent.TrustedListenableFutureTask$TrustedFutureInterruptibleTask.runInterruptibly(TrustedListenableFutureTask.java:125) at com.google.gerrit.server.update.ReviewDbBatchUpdate$ChangeTask.call(ReviewDbBatchUpdate.java:670) at com.google.common.util.concurrent.InterruptibleTask.run(InterruptibleTask.java:57) at com.google.common.util.concurrent.TrustedListenableFutureTask.run(TrustedListenableFutureTask.java:78) at com.google.common.util.concurrent.MoreExecutors$DirectExecutorService.execute(MoreExecutors.java:258) at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:134) at com.google.common.util.concurrent.AbstractListeningExecutorService.submit(AbstractListeningExecutorService.java:66) at com.google.gerrit.server.update.ReviewDbBatchUpdate.executeChangeOps(ReviewDbBatchUpdate.java:533) at com.google.gerrit.server.update.ReviewDbBatchUpdate.execute(ReviewDbBatchUpdate.java:299) at com.google.gerrit.server.update.ReviewDbBatchUpdate.execute(ReviewDbBatchUpdate.java:426) at com.google.gerrit.server.update.ReviewDbBatchUpdate.execute(ReviewDbBatchUpdate.java:421) at com.google.gerrit.server.change.PostReview.apply(PostReview.java:303) at com.google.gerrit.server.change.PostReview.apply(PostReview.java:183) at com.google.gerrit.server.change.PostReview.apply(PostReview.java:126) at com.google.gerrit.httpd.restapi.RestApiServlet.service(Re
[JIRA] (JENKINS-60796) ERROR: current transaction is aborted, commands ignored until end of transaction block
Title: Message Title Dilip Mahadevappa updated an issue Jenkins / JENKINS-60796 ERROR: current transaction is aborted, commands ignored until end of transaction block Change By: Dilip Mahadevappa We have got 3 jobs configured to be triggered for the same project. When these jobs starts around the same time (with few ms difference) there is error from Gerrit plugin. Ex *Job #1*2020-01-15 05 : 39:12.680 Triggered by Gerrit: https://gerrit.ericsson.se/6738979 2020-01-15 05:39:14.925 [EnvInject] - Loading node environment variables. {code }*Job #2*{code :java}2020-01-15 05:39:12.685 GMT-05:00 Triggered by Gerrit: https://gerrit.ericsson.se/67389792020-01-15 05:39:12.736 GMT-05:00 ERROR Gerrit response: Server Error{code} There is 5 ms difference between two jobs.. Looks like this is happening due to concurrent [HTTP POST requests|https://github.com/sonyxperiadev/gerrit-events/blob/bfee4c4dfd1d6dd8a136ce8e349025e888f272c4/src/main/java/com/sonymobile/tools/gerrit/gerritevents/workers/rest/AbstractRestCommandJob2.java#L144] * Error at Gerrit Server side: * {code:java}[2020-01-15 13 05 : 42 39 : 53 12 , 225 733 ] [HTTP- 14255808 13958483 ] ERROR com.google.gerrit.httpd.restapi.RestApiServlet : Error in POST /a/changes/gen2%2Fci-config~main~ Id9dd4c734f8f076158772f146dd904ef3f0e408b Ieb21ba65941b17e9d43cb82069f75c74b4bb636d /revisions/ a3e8ee8430931703189d8e13d2544fe715cbb03d a7e7e5753887b44b63638e516b96b0b5b9d6aa60 /reviewcom.google.gerrit.server.update.UpdateException: com.google.gwtorm.server.OrmException: fetch failure on patch_sets at com.google.gerrit.server.update.ReviewDbBatchUpdate$ChangeTask.call(ReviewDbBatchUpdate.java:798) at com.google.gerrit.server.update.ReviewDbBatchUpdate$ChangeTask.call(ReviewDbBatchUpdate.java:696) at com.google. gerrit common . server util . update concurrent . ReviewDbBatchUpdate TrustedListenableFutureTask $ ChangeTask TrustedFutureInterruptibleTask . call runInterruptibly ( ReviewDbBatchUpdate TrustedListenableFutureTask .java: 670 125 ) at com.google. common gerrit . util server . concurrent update . TrustedListenableFutureTask ReviewDbBatchUpdate $ TrustedFutureInterruptibleTask ChangeTask . runInterruptibly call ( TrustedListenableFutureTask ReviewDbBatchUpdate .java: 125 670 ) at com.google.common.util.concurrent.InterruptibleTask.run(InterruptibleTask.java:57) at com.google.common.util.concurrent.TrustedListenableFutureTask.run(TrustedListenableFutureTask.java:78) at com.google.common.util.concurrent.MoreExecutors$DirectExecutorService.execute(MoreExecutors.java:258) at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:134) at com.google.common.util.concurrent.AbstractListeningExecutorService.submit(AbstractListeningExecutorService.java:66) at com.google.gerrit.server.update.ReviewDbBatchUpdate.executeChangeOps(ReviewDbBatchUpdate.java:533) at com.google.gerrit.server.update.ReviewDbBatchUpdate.execute(ReviewDbBatchUpdate.java:299) at com.google.gerrit.server.update.ReviewDbBatchUpdate.execute(ReviewDbBatchUpdate.jav
[JIRA] (JENKINS-60796) ERROR: current transaction is aborted, commands ignored until end of transaction block
Title: Message Title Dilip Mahadevappa created an issue Jenkins / JENKINS-60796 ERROR: current transaction is aborted, commands ignored until end of transaction block Issue Type: Bug Assignee: rsandell Components: gerrit-trigger-plugin Created: 2020-01-16 15:30 Environment: Jenkins ver. 2.46.2 Gerrit trigger plugin: 2.27.5 Priority: Minor Reporter: Dilip Mahadevappa We have got 3 jobs configured to be triggered for the same project. When these jobs starts around the same time (with few ms difference) there is error from Gerrit plugin. Ex: 2020-01-15 05:39:12.685 GMT-05:00 Triggered by Gerrit: https://gerrit.ericsson.se/6738979 2020-01-15 05:39:12.736 GMT-05:00 ERROR Gerrit response: Server Error Looks like this is happening due to concurrent HTTP POST requests Error at Gerrit Server side: [2020-01-15 13:42:53,225] [HTTP-14255808] ERROR com.google.gerrit.httpd.restapi.RestApiServlet : Error in POST /a/changes/gen2%2Fci-config~main~Id9dd4c734f8f076158772f146dd904ef3f0e408b/revisions/a3e8ee8430931703189d8e13d2544fe715cbb03d/review com.google.gerrit.server.update.UpdateException: com.google.gwtorm.server.OrmException: fetch failure on patch_sets at com.google.gerrit.server.update.ReviewDbBatchUpdate$ChangeTask.call(ReviewDbBatchUpdate.java:798) at com.google.gerrit.server.update.ReviewD