Uploaded image for project: 'Bitbucket Data Center'
  1. Bitbucket Data Center
  2. BSERV-8666

Bulk Pull Request re-scope fails with process time-out

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Medium
    • 4.7.1
    • 4.5.1, 4.5.2, 4.6.3
    • Enterprise, Pull Requests
    • None

    Description

      Under some circumstances the Bulk Pull Request re-scope algorithm becomes unresponsive and terminates with a process time-out exception. As a result the number of rows for the specific repository grows in the pr_rescope_requests table and no Pull Requests for the repository in question gets updated when pushed to. Even extending time-out to 5 mins makes no difference.

      The following error can be found in the atlassian-bitbucket.log:

      2016-05-03 10:57:56,180 ERROR [pull-request-rescoping:thread-1]  c.a.s.i.c.HazelcastBucketedExecutor Attempt 1 of 1 at processing bucket 'pull-request-rescoping@4' for executor 'pull-request-rescoping' failed: 
      com.atlassian.bitbucket.ServerException: An error occurred while executing an external process: process timed out
      	at com.atlassian.bitbucket.scm.git.command.GitCommandExitHandler.evaluateThrowable(GitCommandExitHandler.java:115) ~[na:na]
      	at com.atlassian.bitbucket.scm.git.command.GitCommandExitHandler.onError(GitCommandExitHandler.java:160) ~[na:na]
      	at com.atlassian.bitbucket.scm.DefaultCommandExitHandler.onExit(DefaultCommandExitHandler.java:31) ~[bitbucket-spi-4.5.2.jar:na]
      	at com.atlassian.bitbucket.scm.BaseCommand.callExitHandler(BaseCommand.java:138) ~[bitbucket-spi-4.5.2.jar:na]
      	at com.atlassian.bitbucket.scm.BaseCommand$CommandFuture.internalGet(BaseCommand.java:252) ~[bitbucket-spi-4.5.2.jar:na]
      	at com.atlassian.bitbucket.scm.BaseCommand$CommandFuture.get(BaseCommand.java:221) ~[bitbucket-spi-4.5.2.jar:na]
      	at com.atlassian.bitbucket.scm.BaseCommand.call(BaseCommand.java:75) ~[bitbucket-spi-4.5.2.jar:na]
      	at com.atlassian.stash.internal.scm.git.command.BulkRescopeCommand.call(BulkRescopeCommand.java:99) ~[na:na]
      	at com.atlassian.stash.internal.scm.git.command.BulkRescopeCommand.call(BulkRescopeCommand.java:40) ~[na:na]
      	at com.atlassian.stash.internal.scm.PluginScmService.bulkRescope(PluginScmService.java:173) ~[bitbucket-service-impl-4.5.2.jar:na]
      	at com.atlassian.stash.internal.pull.rescope.DefaultPullRequestRescopeService.determineRescopes(DefaultPullRequestRescopeService.java:172) ~[bitbucket-service-impl-4.5.2.jar:na]
      	at com.atlassian.stash.internal.pull.rescope.DefaultPullRequestRescopeService.rescopeInternal(DefaultPullRequestRescopeService.java:305) ~[bitbucket-service-impl-4.5.2.jar:na]
      	at com.atlassian.stash.internal.pull.rescope.DefaultPullRequestRescopeService.lambda$rescope$0(DefaultPullRequestRescopeService.java:112) ~[bitbucket-service-impl-4.5.2.jar:na]
      	at com.atlassian.stash.internal.pull.rescope.DefaultPullRequestRescopeService$$Lambda$138/1462439340.perform(Unknown Source) ~[na:na]
      	at com.atlassian.stash.internal.user.DefaultEscalatedSecurityContext.call(DefaultEscalatedSecurityContext.java:51) ~[bitbucket-service-impl-4.5.2.jar:na]
      	at com.atlassian.stash.internal.pull.rescope.DefaultPullRequestRescopeService.rescope(DefaultPullRequestRescopeService.java:111) ~[bitbucket-service-impl-4.5.2.jar:na]
      	at com.atlassian.stash.internal.pull.rescope.PullRequestRescopeBucketProcessor.process(PullRequestRescopeBucketProcessor.java:131) ~[bitbucket-service-impl-4.5.2.jar:na]
      	at com.atlassian.stash.internal.concurrent.HazelcastBucketedExecutor$BucketProcessingBootstrapper.run(HazelcastBucketedExecutor.java:125) ~[bitbucket-service-impl-4.5.2.jar:na]
      	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [na:1.8.0_40]
      	at java.util.concurrent.FutureTask.run(FutureTask.java:266) [na:1.8.0_40]
      	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) [na:1.8.0_40]
      	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) [na:1.8.0_40]
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_40]
      	at java.lang.Thread.run(Thread.java:745) [na:1.8.0_40]
      	... 34 frames trimmed
      Caused by: com.atlassian.utils.process.ProcessTimeoutException: process timed out
      	at com.atlassian.utils.process.ExternalProcessImpl.wrapUpProcess(ExternalProcessImpl.java:675) ~[atlassian-processutils-1.7.5.jar:na]
      	at com.atlassian.utils.process.ExternalProcessImpl.finish(ExternalProcessImpl.java:161) ~[atlassian-processutils-1.7.5.jar:na]
      	at com.atlassian.bitbucket.scm.BaseCommand$CommandFuture.get(BaseCommand.java:219) ~[bitbucket-spi-4.5.2.jar:na]
      	... 19 common frames omitted

      Attachments

        Issue Links

          Activity

            People

              mheemskerk Michael Heemskerk (Inactive)
              colivier Charles Olivier (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: