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

CallbackLsTreeOutputHandler does not call onEndPage when the git process is interrupted

      Hi, today my search button for one of the repos started to answer "An error occurred while listing the files. The files listed may not be complete."

      I found exception in log and it is in attach.

      Also, I found this exception in sources:

      log.error(String.format(
      "Error occurred while streaming file listing '%s' at path '%s' at revision '%s'",
      repository.getName(),
      path,
      objectId
      ), e);

      KeyedMessage errorMessage = i18nService.getKeyedText(
      "stash.rest.filelist.error",
      "An error occurred while listing the files. The files listed may not be complete.");
      if (!new RestErrors(errorMessage.getLocalisedMessage()).endScopeAndTryWriteTo(writer))

      { log.debug("Unable to add the 'error' property to the streamed JSON file listing: " + errorMessage.getRootMessage()); }

      And also, I tried to re-send get-request:
      https://our.server.address/rest/api/latest/projects/STARDUST/repos/browser/files?limit=100000&at=refs%2Fheads%2Fmaster
      It returns JSON with
      "errors":[

      {"context":null,"message":"An error occurred while listing the files. The files listed may not be complete.","exceptionName":null}


      on the end, but all the files are included (seems to be)

      but! if you change limit to 99999 it will return valid JSON with 99999 files

            [BSERV-3676] CallbackLsTreeOutputHandler does not call onEndPage when the git process is interrupted

            Owen made changes -
            Workflow Original: Stash Workflow - Restricted [ 1447662 ] New: JAC Bug Workflow v3 [ 3134715 ]
            Owen made changes -
            Workflow Original: Stash Workflow [ 544426 ] New: Stash Workflow - Restricted [ 1447662 ]
            Kostya Marchenko (Inactive) made changes -
            Labels New: da-interruptions
            jhinch (Atlassian) made changes -
            Resolution New: Fixed [ 1 ]
            Status Original: Open [ 1 ] New: Closed [ 6 ]
            jhinch (Atlassian) made changes -
            Assignee New: jhinch (Atlassian) [ jhinch ]
            jhinch (Atlassian) made changes -
            Fix Version/s New: 2.6.1 [ 35590 ]
            jhinch (Atlassian) made changes -
            Priority Original: Critical [ 2 ] New: Minor [ 4 ]
            jhinch (Atlassian) made changes -
            Resolution Original: Handled by Support [ 8 ]
            Status Original: Closed [ 6 ] New: Open [ 1 ]
            jhinch (Atlassian) made changes -
            Summary Original: Files search gives "An error occurred while listing the files. The files listed may not be complete" New: CallbackLsTreeOutputHandler does not call onEndPage when the git process is interrupted
            Gurleen Anand [Atlassian] made changes -
            Resolution New: Handled by Support [ 8 ]
            Status Original: Needs Triage [ 10030 ] New: Closed [ 6 ]

              jhinch jhinch (Atlassian)
              fcde558bf395 Igor Slinko
              Affected customers:
              0 This affects my team
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: