Fix bug when RO server NPE when rolled back
commitb3dab3ec6e0c49dcca2c29943336d780896a50f8
authorZhongjie Wu <www.zj30@gmail.com>
Sat, 1 Feb 2014 00:30:34 +0000 (31 16:30 -0800)
committerZhongjie Wu <www.zj30@gmail.com>
Sat, 1 Feb 2014 00:33:12 +0000 (31 16:33 -0800)
treed1ccc7fc676d655e3cbf4a703c736cd85deed8f1
parent5a5bdb8afb320aec2c341ff20fb99f7223d14f1d
Fix bug when RO server NPE when rolled back

An NPE might happen when a RO engine while it does not hold any
partitions. When a client queries this engine, an NPE might happen
since a pointer to an array has not been initialized. Fix is done
by doing extra null pointer checks.
src/java/voldemort/store/readonly/chunk/ChunkedFileSet.java
test/unit/voldemort/store/readonly/ReadOnlyStorageEngineTest.java