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

Avoid over scanning data directories in LogFile.verify()

    XMLWordPrintableJSON

Details

    Description

      We currently list the data directory for every REMOVE record in the file in LogFile.verify() - this can get very expensive during startup when we call LogTransaction.removeUnfinishedLeftovers(). In LogRecord.getExistingFiles(Set<String> absoluteFilePaths) we also fully parse the file name of the sstables found, here we only need to prefix match.

      Attachments

        Activity

          People

            marcuse Marcus Eriksson
            marcuse Marcus Eriksson
            Marcus Eriksson
            David Capwell, Jordan West
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: