-
Bug
-
Resolution: Fixed
-
Medium
-
8.19.3
-
1
-
Severity 3 - Minor
-
-
CtB - Improve Existing
Issue Summary
Exporting a repository via `rest/api/1.0/migration/exports` while git garbage collection is running will fail
Steps to Reproduce
- Place a `gc.log.lock` file in $BITBUCKET_SHARED_HOME/data/repositories/repo_id/app-info
- Run the export for this repository
Expected Results
Repository is exported successfully
Actual Results
The below exception is thrown in the atlassian-bitbucket.log file:
2024-08-01 13:32:04,115 ERROR [dc-migration:thread-1] admin @1I11BETx810x41x0 0:0:0:0:0:0:0:1 "POST /rest/api/1.0/migration/exports HTTP/1.1" c.a.s.i.m.DefaultExportContext Error registered for job 42 of type com.atlassian.bitbucket.migration.export (RUNNING) against repo: STASH/stash[1]: Exception executing callback 'export' on 'class com.atlassian.stash.internal.scm.git.migration.GitRepositoryExporter': 'command timed out'com.atlassian.bitbucket.scm.CommandTimeoutException: command timed out ... Caused by: io.grpc.StatusRuntimeException: DEADLINE_EXCEEDED: deadline exceeded after 59.981481208s. Name resolution delay 0.000000000 seconds. [closed=[], open=[[remote_addr=localhost/127.0.0.1:7777]]]
Workaround
n/a