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

log rolling and cache flushing should be able to proceed in parallel

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • None
    • None
    • None
    • None

    Description

      Today, during a memstore flush (snapshot of memstore + flushing to disk), log rolling cannot happen. This seems like a bad design, and an unnecessary restriction.

      Possible reasons cited for this in code are:
      maintenance of the lastSeqWritten map.
      (ii) writing a "completed-cache-flush" marker into the same log before the roll.

      It seems that we can implement a new design for to avoid holding the lock for the entire duration of the flush. And the motivation for (ii) is not even clear. We should reason this out, and make sure we can relax the restriction. [See related discussion in HBASE-6980.]

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              kannanm Kannan Muthukkaruppan
              Votes:
              0 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: