Uploaded image for project: 'Qpid'
  1. Qpid
  2. QPID-6757

[linearstore] Add qpid-txtest mode to qpid-qls-analyze which extracts message number from message body

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • qpid-cpp-1.35.0
    • C++ Tools
    • None

    Description

      When analysing linearstore journals using qpid-qls-analyze, it would be useful to be able to see the message number which this test inserts into the message body. When qpid-txtest fails, it reports these message numbers when they are either missing or duplicated.

      To be able to usefully analyze a journal from this test, it is necessary to be able to view this message number. However, qpid-qls-analyze does not have any mechanism to display the message content except as part of a binary dump of which only the first and last 10 bytes are displayed with an ellipsis:

      data(164)='\00\00\00p\0b\01\00\15\00\01 ... MNOPQRSTUV'

      By adding a command-line flag --txtest, qpid-qls-analyze would search the data for the string "msg-" and display the message number:

      data(164)='msg-1086'

      which is embedded in the binary and would normally be difficult to recover.

      Attachments

        Activity

          People

            kpvdr Kim van der Riet
            kpvdr Kim van der Riet
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: