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

Optimise the time spent holding the updateLock under log roll

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 0.89-fb
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: