Conversation

olavloite

The ITBackup test fails randomly (and lately: consistently) on the CI environment with timeout errors. This seems to be caused by several backup operations that are still in progress and do not finish. Cancelling these before starting the actual backup tests seems to solve the problem (for now).

@googlebotgooglebot added the cla: yesThis human has signed the Contributor License Agreement.label Apr 25, 2020
@olavloiteolavloite added the kokoro:force-runAdd this label to force Kokoro to re-run the tests.label Apr 27, 2020
@yoshi-kokoroyoshi-kokoro removed the kokoro:force-runAdd this label to force Kokoro to re-run the tests.label Apr 27, 2020
@olavloiteolavloite added the kokoro:force-runAdd this label to force Kokoro to re-run the tests.label Apr 27, 2020
@yoshi-kokoroyoshi-kokoro removed the kokoro:force-runAdd this label to force Kokoro to re-run the tests.label Apr 27, 2020
@olavloiteolavloite added the kokoro:force-runAdd this label to force Kokoro to re-run the tests.label Apr 27, 2020
@yoshi-kokoroyoshi-kokoro removed the kokoro:force-runAdd this label to force Kokoro to re-run the tests.label Apr 27, 2020
@olavloiteolavloite added the kokoro:force-runAdd this label to force Kokoro to re-run the tests.label Apr 27, 2020
@yoshi-kokoroyoshi-kokoro removed the kokoro:force-runAdd this label to force Kokoro to re-run the tests.label Apr 27, 2020
String.format(
"Cancelling test backup operation %s that was started at %s",
operation.getName(), startTime.toString()));
dbAdminClient.cancelOperation(operation.getName());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If for any reason in the future, the cancelling still doesn't work, your other option may be to just call delete on those backups. AFAIK, backups in the process of being created can be deleted.

@olavloiteolavloite merged commit 90413f7 into master Apr 29, 2020
@olavloiteolavloite deleted the it-backup-fix branch April 29, 2020 06:17
rajatbhatta pushed a commit to rajatbhatta/java-spanner that referenced this pull request Nov 17, 2022
Sign up for free to join this conversation on . Already have an account? Sign in to comment
cla: yesThis human has signed the Contributor License Agreement.
None yet

Successfully merging this pull request may close these issues.