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

Periodic flusher only handles hbase:meta, not other system tables

    XMLWordPrintableJSON

Details

    • Reviewed
    • Memstore periodic flusher used to flush META table every 5 minutes but not any other system tables. This jira extends it to flush all system tables within this time period.

    Description

      In HRegion.shouldFlush we have

          long modifiedFlushCheckInterval = flushCheckInterval;
          if (getRegionInfo().isMetaRegion() &&
              getRegionInfo().getReplicaId() == HRegionInfo.DEFAULT_REPLICA_ID) {
            modifiedFlushCheckInterval = META_CACHE_FLUSH_INTERVAL;
          }
      

      That method is called by the PeriodicMemstoreFlusher thread, and prefers the hbase:meta only for faster flushing. It should be doing the same for other system tables. I suggest to use HRI.isSystemTable().

      Attachments

        1. HBASE-14257.patch
          3 kB
          Abhishek Singh Chouhan
        2. HBASE-14257.patch
          3 kB
          Anoop Sam John

        Activity

          People

            abhishek.chouhan Abhishek Singh Chouhan
            larsgeorge Lars George
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: