diff options
author | Josip Sokcevic <sokcevic@google.com> | 2023-05-26 02:44:37 +0000 |
---|---|---|
committer | LUCI <gerrit-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2023-05-26 15:50:20 +0000 |
commit | 71122f941f99cea6001c143feedf34a8dbb2a2a2 (patch) | |
tree | f096a4aa5de066f39b8c787907ff6c13f370c6ec /tests/test_manifest_xml.py | |
parent | 07a4529278f4112e3a98686f01db6b05fea5f280 (diff) | |
download | git-repo-71122f941f99cea6001c143feedf34a8dbb2a2a2.tar.gz |
sync: Handle race condition when reading active jobs
It's possible that number of jobs is more than 0 when we
check length, but in the meantime number of jobs drops to
0. In that case, we are working with float(inf) which
causes other problems
Bug: 284383869
Change-Id: I5d070d1be428f8395df7fde8ca84866db46f2100
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/375134
Reviewed-by: Mike Frysinger <vapier@google.com>
Commit-Queue: Josip Sokcevic <sokcevic@google.com>
Tested-by: Josip Sokcevic <sokcevic@google.com>
Reviewed-by: Gavin Mak <gavinmak@google.com>
Diffstat (limited to 'tests/test_manifest_xml.py')
0 files changed, 0 insertions, 0 deletions