Uploaded image for project: 'Accumulo'
  1. Accumulo
  2. ACCUMULO-2759

Suspicious extra work in MasterMetadataUtil.fixSplit()

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Not A Problem
    • 1.6.0
    • None
    • master
    • None

    Description

      PMD reports that four parameters are not used in the private MasterMetadataUtil.fixSplit() method: tserver, initCompactID, time, initFlushID. The public fixSplit() method, which calls the private one, does work to retrieve the latter three from a map parameter and check and tweak them, before passing them to the private method uselessly. In addition, the tserver argument is just passed from the public method to the private one untouched.

      These extraneous parameters may simply be artifacts from the initial development of this code, in which case they should be cleaned up so that performance improves. It's also possible that the data should be used in the code but erroneously isn't. There's no unit test laying out its expected behavior.

      (The class in question is not present before 1.6.0, but the code may be somewhere else in prior versions. That should be checked too.)

      Attachments

        Activity

          People

            Unassigned Unassigned
            bhavanki Bill Havanki
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: