Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-15076

Align record header of FQL and audit binary log

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Patch Available
    • Priority: Normal
    • Resolution: Unresolved
    • Fix Version/s: 4.0
    • Component/s: Legacy/Tools, Tool/fql
    • Labels:
      None
    • Change Category:
      Semantic
    • Complexity:
      Low Hanging Fruit
    • Test and Documentation Plan:
      Hide

      NA

      Show
      NA

      Description

      The new full query logger and the audit logger support logging into binary Chronicle logs. Both create records with a small header to indicate what follows, but the two features have adopted different header formats. Let's align the record header format with this ticket.

      • Both features should use the same header layout. This makes it possible to give more user friendly error messages in the fqltool and auditlogviewr commands.
      • The record header should have a distinct type to indicate the type of record.
      • The record header should have a version so that the record format can evolve.

      Current record header format of the FQL is:

      version:0(int16)
      type:<type>(text)
      

      where <type> can be either batch or single-query.

      Current record header format of the binary audit log is:

      type:AuditLog(text)
      

        Attachments

          Activity

            People

            • Assignee:
              eperott Per Otterström
              Reporter:
              eperott Per Otterström
              Authors:
              Per Otterström
              Reviewers:
              Vinay Chella
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: