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

Stop CommitLogSegment.close() from unnecessarily calling sync() prior to cleaning the buffer

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Low
    • Resolution: Fixed
    • 2.0.6
    • None
    • None

    Description

      What it says on the tin. Currently CLS.close() calls sync() before cleaning the buffer, which may result in unnecessary IO, but also in the case of a failure on the commit disk may prevent CLS from being discarded, or in the case of a faulty file may prevent any progress on reclaiming CLS.

      Attachments

        1. tmp-2.0.patch
          6 kB
          Benedict Elliott Smith
        2. tmp2-2.0.patch
          6 kB
          Benedict Elliott Smith

        Issue Links

          Activity

            People

              benedict Benedict Elliott Smith
              benedict Benedict Elliott Smith
              Benedict Elliott Smith
              Marcus Eriksson
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: