Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-14841 Replication - Phase 2
  3. HIVE-10562

Add versioning/format mechanism to NOTIFICATION_LOG entries, expand MESSAGE size

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.2.0
    • 2.2.0
    • Import/Export
    • None

    Description

      Currently, we have a JSON encoded message being stored in the NOTIFICATION_LOG table.

      If we want to be future proof, we need to allow for versioning of this message, since we might change what gets stored in the message. A prime example of what we'd want to change is as in HIVE-10393.

      MessageFactory already has stubs to allow for versioning of messages, and we could expand on this further in the future. NotificationListener currently encodes the message version into the header for the JMS message it sends, which seems to be the right place for a message version (instead of being contained in the message, for eg.).

      So, we should have a similar ability for DbEventListener as well, and the place this makes the most sense is to and add a version column to the NOTIFICATION_LOG table.

      Attachments

        1. HIVE-10562.2.patch
          37 kB
          Sushanth Sowmyan
        2. HIVE-10562.3.patch
          37 kB
          Sushanth Sowmyan
        3. HIVE-10562.4.patch
          37 kB
          Sushanth Sowmyan
        4. HIVE-10562.5.patch
          45 kB
          Sushanth Sowmyan
        5. HIVE-10562.patch
          36 kB
          Sushanth Sowmyan

        Issue Links

          Activity

            People

              sushanth Sushanth Sowmyan
              sushanth Sushanth Sowmyan
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: