Dedeepya-T commented on a change in pull request #102:
URL: https://github.com/apache/qpid-broker-j/pull/102#discussion_r671143283



##########
File path: 
bdbstore/src/test/java/org/apache/qpid/server/store/berkeleydb/BDBMessageStoreTest.java
##########
@@ -218,4 +228,25 @@ protected boolean flowToDiskSupported()
         return true;
     }
 
+    @Test
+    public void testGetNextMessgaeIdWithLockException(){
+        BDBMessageStore bdbStore = (BDBMessageStore) createMessageStore();

Review comment:
       Changed it!

##########
File path: 
bdbstore/src/main/java/org/apache/qpid/server/store/berkeleydb/AbstractBDBMessageStore.java
##########
@@ -231,6 +233,10 @@ public long getNextMessageId()
                                                               
MESSAGE_METADATA_SEQ_CONFIG);
             newMessageId = mmdSeq.get(null, 1);
         }
+        catch(LockTimeoutException le)
+        {
+           throw new ConnectionScopedRuntimeException("Unexpected exception on 
BDB sequence",le);

Review comment:
       Done!




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to