Program: 46091
Project: 46091
Buggy source:
@Test public void testLoadAll() throws InterruptedException {
  ICache<String,String> cache=createCache();
  String cacheName=cache.getName();
  Map<String,String> entries=createAndFillEntries();
  final CountDownLatch latch=new CountDownLatch(1);
  cache.loadAll(entries.keySet(),true,new CompletionListener(){
    @Override public void onCompletion(){
      latch.countDown();
    }
    @Override public void onException(    Exception e){
      latch.countDown();
    }
  }
);
  latch.await(60,TimeUnit.SECONDS);
  for (  Map.Entry<String,String> entry : entries.entrySet()) {
    String key=entry.getKey();
    String expectedValue=entries.get(key);
    String actualValue=cache.get(key);
    assertEquals(expectedValue,actualValue);
  }
  Node node=getNode(hazelcastInstance);
  InternalPartitionService partitionService=node.getPartitionService();
  SerializationService serializationService=node.getSerializationService();
  for (  Map.Entry<String,String> entry : entries.entrySet()) {
    String key=entry.getKey();
    String expectedValue=entries.get(key);
    Data keyData=serializationService.toData(key);
    int keyPartitionId=partitionService.getPartitionId(keyData);
    for (int i=0; i < INSTANCE_COUNT; i++) {
      Node n=getNode(hazelcastInstances[i]);
      ICacheService cacheService=n.getNodeEngine().getService(ICacheService.SERVICE_NAME);
      ICacheRecordStore recordStore=cacheService.getRecordStore("String_Node_Str" + cacheName,keyPartitionId);
      assertNotNull(recordStore);
      String actualValue=serializationService.toObject(recordStore.get(keyData,null));
      assertEquals(expectedValue,actualValue);
    }
  }
}

Fixed version (ground truth):
@Test public void testLoadAll() throws InterruptedException {
  ICache<String,String> cache=createCache();
  String cacheName=cache.getName();
  Map<String,String> entries=createAndFillEntries();
  final CountDownLatch latch=new CountDownLatch(1);
  cache.loadAll(entries.keySet(),true,new CompletionListener(){
    @Override public void onCompletion(){
      latch.countDown();
    }
    @Override public void onException(    Exception e){
      latch.countDown();
    }
  }
);
  assertTrue(latch.await(60,TimeUnit.SECONDS));
  for (  Map.Entry<String,String> entry : entries.entrySet()) {
    String key=entry.getKey();
    String expectedValue=entries.get(key);
    String actualValue=cache.get(key);
    assertEquals(expectedValue,actualValue);
  }
  Node node=getNode(hazelcastInstance);
  InternalPartitionService partitionService=node.getPartitionService();
  SerializationService serializationService=node.getSerializationService();
  for (  Map.Entry<String,String> entry : entries.entrySet()) {
    String key=entry.getKey();
    String expectedValue=entries.get(key);
    Data keyData=serializationService.toData(key);
    int keyPartitionId=partitionService.getPartitionId(keyData);
    for (int i=0; i < INSTANCE_COUNT; i++) {
      Node n=getNode(hazelcastInstances[i]);
      ICacheService cacheService=n.getNodeEngine().getService(ICacheService.SERVICE_NAME);
      ICacheRecordStore recordStore=cacheService.getRecordStore("String_Node_Str" + cacheName,keyPartitionId);
      assertNotNull(recordStore);
      String actualValue=serializationService.toObject(recordStore.get(keyData,null));
      assertEquals(expectedValue,actualValue);
    }
  }
}