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

Validation compactions can cause orphan sstable warnings

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Low
    • Resolution: Fixed
    • Fix Version/s: 4.0-alpha1, 4.0
    • Component/s: None
    • Labels:
      None
    • Severity:
      Low

      Description

      I've seen LevelledCompactionStrategy occasionally logging:

      <sstable_name> from level 0 is not on corresponding level in the leveled manifest. This is not a problem per se, but may indicate an orphaned sstable due to a failed compaction not cleaned up properly."

      warnings from a ValidationExecutor thread.

      What's happening here is that a compaction running concurrently with the validation is promoting (or demoting) sstables as part of an incremental repair, and an sstable has changed hands by the time the validation compaction gets around to getting scanners for it. The sstable isolation/synchronization done by validation compactions is a lot looser than normal compactions, so seeing this happen isn't very surprising. Given that it's harmless, and not unexpected, I think it would be best to not log these during validation compactions.

        Attachments

          Activity

            People

            • Assignee:
              bdeggleston Blake Eggleston
              Reporter:
              bdeggleston Blake Eggleston
              Authors:
              Blake Eggleston
              Reviewers:
              Marcus Eriksson
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: