Uploaded image for project: 'ActiveMQ'
  1. ActiveMQ
  2. AMQ-4490

JDBCMessageStore fails to retrieve message after 200 messages when cache is disabled

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.5.1
    • Fix Version/s: 5.6.0
    • Component/s: Message Store
    • Labels:
      None
    • Environment:

      ServiceMix 4.4.2

    • Regression:
      Unit Test Broken

      Description

      When trying to reproduce bug AMQ-4489, we found that the JDBCMessageStore fails to retrieve all messages from the store when useCache="false".

      The existing unit test "JDBCMessagePriorityTest" reproduces it (see below).
      A similar problem occurs when MemoryLimit on the queue is used (which forces the messages to be written to and later read from the JDBC message store).
      Can you please have a look ?

      -------------------------------------------------------------------------------
      Test set: org.apache.activemq.store.jdbc.JDBCMessagePriorityTest
      -------------------------------------------------------------------------------
      Tests run: 3, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 12.94 sec <<< FAILURE!
      testQueues

      {useCache=false}

      (org.apache.activemq.store.jdbc.JDBCMessagePriorityTest) Time elapsed: 6.656 sec <<< FAILURE!
      junit.framework.AssertionFailedError: Message 200 was null

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              metatech metatech

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment