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

This commit is contained in:
Jon Chambers authored and Jon Chambers committed 2020-09-30 10:39:56 -04:00
1 parent 3e02c574e7
commit eaa2060d84
3 files changed
+17 -31

No files matched your search

@@ -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()) {