Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-6813

Optimise the time spent holding the updateLock under log roll

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.89-fb
    • Component/s: None
    • Labels:
      None

      Description

      Log roll entails syncing the old log, closing it and creating a new log file.

      We currently do all the 3 steps while holding the updateLock. This causes latency spikes for puts during this time.

      We only need to sync the old log under the lock. Creating the new file, can be done before grabbing the lock. Closing the old file can be done after we release the lock.

        Attachments

          Activity

            People

            • Assignee:
              amitanand Amitanand Aiyer
              Reporter:
              amitanand Amitanand Aiyer
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: