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

replace reflection in FSHlog with HdfsDataOutputStream#getCurrentBlockReplication()

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 1.2.0, 1.3.0, 2.0.0
    • wal
    • None
    • Reviewed
    • Remove calling getNumCurrentReplicas on HdfsDataOutputStream via reflection. getNumCurrentReplicas showed up in hadoop 1+ and hadoop 0.2x. In hadoop-2 it was deprecated.

    Description

      As comment TODO said, we use HdfsDataOutputStream#getCurrentBlockReplication and DFSOutputStream.getPipeLine to replace reflection in FSHlog

      Attachments

        1. HBASE-14230.patch
          7 kB
          Heng Chen
        2. HBASE-14230_v1.patch
          7 kB
          Heng Chen

        Activity

          People

            chenheng Heng Chen
            chenheng Heng Chen
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: