-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/43975/
-----------------------------------------------------------

Review request for geode, Barry Oglesby, Jason Huynh, William Markito, Dan 
Smith, and xiaojian zhou.


Repository: geode


Description
-------

Fix for GEODE-106 Invalidate operation fails with IndexMaintenanceException 
with underlying java.lang.ArrayIndexOutOfBoundsException.

There is a small window in remove() where the data and size are are not updated 
atomically. 

Changes are made so that data and size are updated atomically.

Also, the test "IndexElemArrayJUnitTest.java" was not invoking all the function 
tests, because of a test issue. Fixed the test issue to get the coverage for 
IndexElemArray data structure.

Added test to perform multithreaded operation to reproduce 
ArrayIndexOutOfBoundsException issue and validate the fix.


Diffs
-----

  
geode-core/src/main/java/com/gemstone/gemfire/cache/query/internal/index/IndexElemArray.java
 de694a400b948c017c2c1fc518046d75cbbd3b34 
  
geode-core/src/test/java/com/gemstone/gemfire/cache/query/internal/index/IndexElemArrayJUnitTest.java
 8c512646ad3fd259bc28bf5f3988c990cc47df41 

Diff: https://reviews.apache.org/r/43975/diff/


Testing
-------

Fixed the broken functional test for IndexElemArray.
Added new test to reproduce the issue. And validate the fix.


Thanks,

anilkumar gingade

Reply via email to