This needs to be fixed somehow else but just a workaround for now to
prevent flooding of prints
refs #7175
Change-Id: Ia218bbfc8bd82679fb7f365c706b74c1753a1795
boolean gotMutex = impl.tryAcquireMutex();
boolean done = false;
+ // TODO: fix this properly pleease
+ int count = 0;
while (!done) {
if (gotMutex || borrowMutex) {
runWithMutex();
done = true;
} else {
- LOGGER.warn("Retry mutex acquire");
+ if (count % 100 == 0)
+ LOGGER.warn("Retry mutex acquire");
gotMutex = impl.tryAcquireMutex();
+ count++;
}
}