Clear operation on partitioned region should appropriately handle lucene indexes defined on that partitioned region.
Existing behavior (complexities in updating lucene indexes):
The lucene indexes are managed through AsyncEventQueue (AEQ); the region operations on the clear (both for replicated and partitioned region) generated RegionEvents, currently the AEQ does not support handling RegionEvent. Supporting RegionEvent with AEQ is separate task which needs to be considered outside of the clear implementation.
Till the RegionEvents are supported on AEQs, the PR clear will not be supported on regions with Lucene indexes.
Throw exception for PR clear operation when there is lucene index on the region.
- Add test to verify exception is thrown when PR clear is performed on the region with local clear.