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

Hints ignored during Upgrade from C*4 to C*5

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Patch Available
    • Normal
    • Resolution: Unresolved
    • 5.0.x
    • Consistency/Hints
    • None
    • Degradation
    • Normal
    • Normal
    • User Report
    • All
    • None
    • Hide

      run CI

      Show
      run CI

    Description

      I have discovered that some hints were not being processed after nodes come back up when a cluster in in a mixed mode with some cassandra 4 nodes and some cassdandra 5 nodes ( these with a storage compatibility mode CASSANDRA_4 )

       

      When in this mode there is a schema mismatch after the first node has been upgraded, which continues until the last node has been upgraded.

      It seems that the hints are blocked from being sent if there is a schema mismatch between the 2 nodes, that can be seen at this line.

      cassandra/src/java/org/apache/cassandra/hints/HintsDispatchTrigger.java at cassandra-5.0 · apache/cassandra

      I have tested removing this line, and that then does allow the hint to be transferred normally. However I am not sure of the implications for doing that if the hint is for part of the schema where the actual mismatch occurs.

       

      This creates the problem when a node is being upgraded and is currently down, hint files will be created for it on the new cassandra 5 nodes and the old cassandra 4 nodes, but the hint files on the old cassandra 4 nodes will not be processed, due to the schema mismatch. Leading to potential data loss. 

      Attachments

        1. debug20241213.log
          57 kB
          Paul Chandler
        2. image-2024-12-12-11-39-25-970.png
          119 kB
          Paul Chandler
        3. image-2024-12-11-17-44-56-585.png
          30 kB
          Paul Chandler
        4. system-20118.log
          43 kB
          Paul Chandler
        5. 5-0debug.log
          318 kB
          Paul Chandler
        6. 4-1debug-third-node.log
          676 kB
          Paul Chandler
        7. 4-1debug.log
          511 kB
          Paul Chandler
        8. 4-1system-third-node.log
          112 kB
          Paul Chandler
        9. 4-1system.log
          115 kB
          Paul Chandler
        10. 5-0system.log
          79 kB
          Paul Chandler

        Activity

          People

            brandon.williams Brandon Williams
            paulchandler Paul Chandler
            Brandon Williams
            Votes:
            0 Vote for this issue
            Watchers:
            10 Start watching this issue

            Dates

              Created:
              Updated:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 10m
                10m