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
- links to