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

Don't rely on fs.getDefaultReplication() to roll HLogs

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.90.0
    • None
    • None

    Description

      As I was commenting in HBASE-2234, using fs.getDefaultReplication() to roll HLogs if they lose replicas isn't reliable since that value is client-side and unless HBase is configured with it or has Hadoop's configurations on its classpath, it will do the wrong thing.

      Dhruba added:

      Can we use <hlogpath>.getFiletatus().getReplication() instead of fs.getDefaltReplication()? This will will ensure that we look at the repl factor of the precise file we are interested in, rather than what the system-wide default value is.

      Attachments

        1. HBASE-2382-documentation.patch
          2 kB
          Nicolas Spiegelberg
        2. HBASE-2382-20.4.patch
          2 kB
          Nicolas Spiegelberg
        3. 2382-v5-TRUNK.patch
          5 kB
          Michael Stack

        Issue Links

          Activity

            People

              nspiegelberg Nicolas Spiegelberg
              jdcryans Jean-Daniel Cryans
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: