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

MockIteratorEnvironment implementation broken in mock accumulo framework

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.8.0
    • 1.9.0
    • core

    Description

      The MockIteratorEnvironment was broken when the additional sampling methods were added. The isSamplingEnabled throws an unsupported operation exception instead of simply returning false. Also the getSamplerConfiguration should return null and the cloneWithSamplingEnabled should throw a SampleNotPresentException instead an UnsupportedOperationException per the documentation in the IteratorEnvironment interface. This will allow its use to work smoothly as before. Granted this whole MockAccumulo mechanism is deprecated, however external projects still have dependencies on it and hence we should not have broken its implementation.

      Attachments

        Issue Links

          Activity

            People

              ivan.bella Ivan Bella
              ivan.bella Ivan Bella
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 1h Original Estimate - 1h
                  1h
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 2h
                  2h