Program: 17359
Project: 17359
Buggy source:
@Test public void testGetMasterIteratorNoRange() throws Exception {
  Long wideRowsPerIndex=2L;
  Long totalObjectsPerWideRange=3L;
  Long totalObjectsPerShard=7L;
  CKeyspaceDefinition ckdef=CKeyspaceDefinition.fromJsonFile("String_Node_Str");
  Map<String,CDefinition> cdefs=ckdef.getDefinitions();
  Integer totalIndexCount=0;
  for (  String cdefKey : cdefs.keySet()) {
    totalIndexCount+=cdefs.get(cdefKey).getIndexes().size();
  }
  FakeR faker1=new FakeR(ckdef,wideRowsPerIndex,totalObjectsPerWideRange,totalObjectsPerShard);
  Iterator<Map<String,Object>> iterator=faker1.getMasterIterator(CObjectOrdering.ASCENDING,null,null);
  Map<String,Map<String,Object>> materializedObjects1=Maps.newHashMap();
  while (iterator.hasNext()) {
    Map<String,Object> next=iterator.next();
    assertTrue(next.containsKey("String_Node_Str"));
    assertFalse("String_Node_Str",materializedObjects1.containsKey(next.get("String_Node_Str").toString()));
    materializedObjects1.put(next.get("String_Node_Str").toString(),next);
  }
  assertFalse(materializedObjects1.isEmpty());
  assertEquals((wideRowsPerIndex * totalObjectsPerWideRange) * totalIndexCount,materializedObjects1.size());
  System.out.printf("String_Node_Str",wideRowsPerIndex,totalObjectsPerWideRange,totalObjectsPerShard,materializedObjects1.size());
  Thread.sleep(500);
  FakeR faker2=new FakeR(ckdef,wideRowsPerIndex,totalObjectsPerWideRange,totalObjectsPerShard);
  iterator=faker2.getMasterIterator(CObjectOrdering.ASCENDING,null,null);
  Map<String,Map<String,Object>> materializedObjects2=Maps.newHashMap();
  while (iterator.hasNext()) {
    Map<String,Object> next=iterator.next();
    assertTrue(next.containsKey("String_Node_Str"));
    assertFalse("String_Node_Str",materializedObjects2.containsKey(next.get("String_Node_Str").toString()));
    materializedObjects2.put(next.get("String_Node_Str").toString(),next);
  }
  assertFalse(materializedObjects2.isEmpty());
  assertEquals((wideRowsPerIndex * totalObjectsPerWideRange) * totalIndexCount,materializedObjects2.size());
  assertEquals(materializedObjects1,materializedObjects2);
}

Fixed version (ground truth):
@Test public void testGetMasterIteratorNoRange() throws Exception {
  Long wideRowsPerIndex=2L;
  Long totalObjectsPerWideRange=100L;
  Long totalObjectsPerShard=10L;
  CKeyspaceDefinition ckdef=CKeyspaceDefinition.fromJsonFile("String_Node_Str");
  Map<String,CDefinition> cdefs=ckdef.getDefinitions();
  Integer totalIndexCount=0;
  for (  String cdefKey : cdefs.keySet()) {
    totalIndexCount+=cdefs.get(cdefKey).getIndexes().size();
  }
  FakeR faker1=new FakeR(ckdef,wideRowsPerIndex,totalObjectsPerWideRange,totalObjectsPerShard);
  Iterator<Map<String,Object>> iterator=faker1.getMasterIterator(CObjectOrdering.ASCENDING,null,null);
  Map<String,Map<String,Object>> materializedObjects1=Maps.newHashMap();
  while (iterator.hasNext()) {
    Map<String,Object> next=iterator.next();
    assertTrue(next.containsKey("String_Node_Str"));
    assertFalse("String_Node_Str",materializedObjects1.containsKey(next.get("String_Node_Str").toString()));
    materializedObjects1.put(next.get("String_Node_Str").toString(),next);
  }
  assertFalse(materializedObjects1.isEmpty());
  assertEquals(totalObjectsPerWideRange * totalIndexCount,materializedObjects1.size());
  System.out.printf("String_Node_Str",wideRowsPerIndex,totalObjectsPerWideRange,totalObjectsPerShard,materializedObjects1.size());
  Thread.sleep(500);
  FakeR faker2=new FakeR(ckdef,wideRowsPerIndex,totalObjectsPerWideRange,totalObjectsPerShard);
  iterator=faker2.getMasterIterator(CObjectOrdering.ASCENDING,null,null);
  Map<String,Map<String,Object>> materializedObjects2=Maps.newHashMap();
  while (iterator.hasNext()) {
    Map<String,Object> next=iterator.next();
    assertTrue(next.containsKey("String_Node_Str"));
    assertFalse("String_Node_Str",materializedObjects2.containsKey(next.get("String_Node_Str").toString()));
    materializedObjects2.put(next.get("String_Node_Str").toString(),next);
  }
  assertFalse(materializedObjects2.isEmpty());
  assertEquals(totalObjectsPerWideRange * totalIndexCount,materializedObjects2.size());
  assertEquals(materializedObjects1,materializedObjects2);
}