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

Clarify intent when replaying hint files "partially"

    XMLWordPrintableJSON

Details

    • Task
    • Status: Triage Needed
    • Normal
    • Resolution: Unresolved
    • None
    • None
    • None
    • All
    • None

    Description

      As part of CASSANDRA-6230, hints were redesigned to come from files. As part of this, we log when the hint files are dispatched.

      See https://github.com/apache/cassandra/blob/cassandra-4.1/src/java/org/apache/cassandra/hints/HintsDispatchExecutor.java#L318

      logger.info("Finished hinted handoff of file {} to endpoint {}: {}, partially", descriptor.fileName(), address, hostId);
      

      This has caused some confusion among some users who wonder whether their files were only partially replayed and whether data is consistent.

      This ticket is to clarify in the log statement itself or document in the official docs what is meant by partially.

      My understanding is that it's really that sometimes when shutting down, all of the file metadata isn't written so it replays the file anyway. Is that right? I wasn't sure about the dispatch failure and what that means in practice.

      CC aleksey

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jeromatron Jeremy Hanna
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: