We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 36d2466 commit 7f2f5b0Copy full SHA for 7f2f5b0
src/vt/vrt/collection/balance/temperedlb/temperedlb.cc
@@ -2590,6 +2590,9 @@ void TemperedLB::satisfyLockRequest() {
2590
try_locks_.erase(iter);
2591
2592
if (lock.forced_release) {
2593
+ // Delay for 100 microseconds to give another rank a chance at obtaining a
2594
+ // lock so the cycle isn't just created again. This number was found
2595
+ // to be reasonable through some experimentation.
2596
std::this_thread::sleep_for(std::chrono::microseconds(100));
2597
lock.forced_release = false;
2598
try_locks_.insert(lock);
0 commit comments