-
Type:
Suggestion
-
Resolution: Unresolved
-
None
-
Component/s: Maintenance - Backup / Restore
-
None
-
1
-
3
When Bitbucket backup client performs the backup of the active objects the logs without the debug messaging showing:
INFO [main] c.a.b.i.b.client.DefaultBackupClient Waiting for SCM operations to finish
While with with the debug logging enabled the output is showing that the actual task is:
{"task":{"id":"c4c256175d34fbc38dfdfc6d5b021a1a0a7d1348","progress":{"message":"Backing up ActiveObjects table data","percentage":7},"state":"RUNNING","type":"BACKUP"},"db-state":"AVAILABLE","scm-state":"AVAILABLE"}
As the result if the backup of the active objects has not finished within the timeout value the error is:
com.atlassian.bitbucket.internal.backup.client.ScmDrainTimedOutException: Operations from one or more SCMs did not finish within the allotted timeout. To prevent corruption due to inconsistent state, the backup has been aborted. Please try backup up again when the system is under less load.
The error code is suggesting that the git processes haven't finished on time, however, the true reason is in the database.
Please improve the error handling to distinguish the SCM timeouts from DB timeouts.