Fix an incorrect locking key and some previously-suppressed lock contention issues.

This commit is contained in:
Jon Chambers
2020-09-29 17:01:22 -04:00
committed by Jon Chambers
parent 3e02c574e7
commit eaa2060d84
3 changed files with 17 additions and 31 deletions

View File

@@ -325,8 +325,8 @@ public class MessagesCacheTest extends AbstractRedisClusterTest {
messagesCache.addMessageAvailabilityListener(DESTINATION_UUID, DESTINATION_DEVICE_ID, listener);
messagesCache.lockQueueForPersistence(MessagesCache.getQueueName(DESTINATION_UUID, DESTINATION_DEVICE_ID));
messagesCache.unlockQueueForPersistence(MessagesCache.getQueueName(DESTINATION_UUID, DESTINATION_DEVICE_ID));
messagesCache.lockQueueForPersistence(DESTINATION_UUID, DESTINATION_DEVICE_ID);
messagesCache.unlockQueueForPersistence(DESTINATION_UUID, DESTINATION_DEVICE_ID);
synchronized (notified) {
while (!notified.get()) {