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

Resolve RpC_REPEATED_CONDITIONAL_TEST findbugs warnings in HMaster

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.0.0
    • 2.0.0
    • None
    • None

    Description

      As titled, find this issue in findbugs report of HBASE-16032:

      Code	Warning
      RpC	Repeated conditional test in org.apache.hadoop.hbase.master.HMaster.normalizeRegions()
      Bug type RpC_REPEATED_CONDITIONAL_TEST (click for details) 
      In class org.apache.hadoop.hbase.master.HMaster
      In method org.apache.hadoop.hbase.master.HMaster.normalizeRegions()
      At HMaster.java:[line 1388]
      At HMaster.java:[line 1388]
      

      And we could find below lines in HMaster line 1388:

              if (table.isSystemTable() || (tblDesc != null &&
                  tblDesc != null &&
                  !tblDesc.isNormalizationEnabled())) {
      

      where there's a duplicated check, introduced by HBASE-15467

      Attachments

        1. HBASE-16066.patch
          0.8 kB
          Yu Li

        Activity

          People

            liyu Yu Li
            liyu Yu Li
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: