check metadata incorrect results, hard analysis178/head
commit30bbdd5a306d1b87a8e92cd9254c8a1c132ed2db
authorArunachalam Thirupathi <arunachalam.t@gmail.com>
Fri, 9 May 2014 21:22:07 +0000 (9 14:22 -0700)
committerARUNACHALAM THIRUPATHI <arunachalam.t@gmail.com>
Sat, 10 May 2014 18:20:57 +0000 (10 11:20 -0700)
treeddaccb14c4c92c48fa1e94611dae086209e1905c
parentb5fcb898d2f8256d35e78d97c93ef22c9d215f9c
check metadata incorrect results, hard analysis

Fix the new admin metadata check command and did the same change
for old admin command.

1) If check metadata fails it says true or false but not the
  actual failure.
2) Check metadata sometimes incorrectly reports failure depending
   on the order in which stores are returned.
3) Check metadata will reprot success if a store is completely missing
   from one of the nodes. It does not track number of times retrieved.

With this commit the check metadata is done using a map.

For stores check
The map will be from storeName to (map from store defintion
to nodeName)

for other
The map will be from object of that key to nodename.

This map will be used for consistency check. This map will group non
matching information to groups for easier analysis. The lenght of the
value in the map will be evaluated for missing information, solving the
problem 2 and 3 listed above
src/java/voldemort/VoldemortAdminTool.java
src/java/voldemort/tools/admin/command/AdminCommandMeta.java