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

Quit using reflection for the method DFSOutputStream#getNumCurrentReplicas(…)

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Not A Problem
    • 0.95.2
    • None
    • None
    • None

    Description

      Given that we've raised our minimum version guarantee for HBase with 1.x carrying the 0.20-append code finally, and all subsequent releases (0.21*, 0.22, 0.23 and 2) have this method available in them, I don't see a reason to have the reflection based getNumCurrentReplicas invocation (via HDFS-826) anymore.

      We could save ourselves quite a bit of perf. penalty by removing this check and simply calling the method directly, as its API has not changed across releases.

      Attachments

        Activity

          People

            Unassigned Unassigned
            qwertymaniac Harsh J
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: