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

Old config hbase.hstore.compactionThreshold is ignored

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 2.0.0
    • 3.0.0-alpha-1, 2.3.0, 2.1.10, 2.2.5
    • None
    • None
    • Reviewed

    Description

      In 2.x we added new name 'hbase.hstore.compaction.min' for this. Still for compatibility we allow the old config name and honor that in code

      minFilesToCompact = Math.max(2, conf.getInt(HBASE_HSTORE_COMPACTION_MIN_KEY,
                /*old name*/ conf.getInt("hbase.hstore.compactionThreshold", 3)));
      

      But if hbase.hstore.compactionThreshold alone is configured by user, there is no impact of that.

      This is because in hbase-default.xml we have the new config with a value of 3. So the call conf.getInt(HBASE_HSTORE_COMPACTION_MIN_KEY) always return a value 3 even if it is not explicitly configured by customer and instead used the old key.

      Attachments

        Issue Links

          Activity

            People

              mohapatra.sambit Sambit Mohapatra
              anoop.hbase Anoop Sam John
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: