Program: 29062
Project: 29062
Buggy source:
@Test public void testQuery19() throws InterruptedException {
  log.info("String_Node_Str");
  String clusterName="String_Node_Str";
  String clusterPassword="String_Node_Str";
  Config cfg_1=new Config();
  cfg_1.getGroupConfig().setName(clusterName).setPassword(clusterPassword);
  cfg_1.setProperty("String_Node_Str","String_Node_Str");
  HazelcastInstance instance_1=Hazelcast.newHazelcastInstance(cfg_1);
  Config cfg_2=new Config();
  cfg_2.getGroupConfig().setName(clusterName).setPassword(clusterPassword);
  cfg_2.setProperty("String_Node_Str","String_Node_Str");
  HazelcastInstance instance_2=Hazelcast.newHazelcastInstance(cfg_2);
  StringBuilder sb=new StringBuilder();
  for (  Member member : instance_2.getCluster().getMembers()) {
    sb.append(member.getSocketAddress()).append(',');
  }
  String addresses=StringUtils.replace(sb.toString(),"String_Node_Str","String_Node_Str");
  addresses=StringUtils.removeEnd(addresses,"String_Node_Str");
  SiddhiManager siddhiManager=new SiddhiManager();
  StreamDefinition streamDefinition=StreamDefinition.id("String_Node_Str").attribute("String_Node_Str",Attribute.Type.STRING).attribute("String_Node_Str",Attribute.Type.INT);
  TableDefinition tableDefinition=TableDefinition.id("String_Node_Str").annotation(Annotation.annotation("String_Node_Str").element("String_Node_Str","String_Node_Str").element("String_Node_Str",clusterName).element("String_Node_Str",clusterPassword).element("String_Node_Str",addresses)).attribute("String_Node_Str",Attribute.Type.STRING).attribute("String_Node_Str",Attribute.Type.INT);
  Query query=Query.query();
  query.from(InputStream.stream("String_Node_Str"));
  query.insertInto("String_Node_Str");
  ExecutionPlan executionPlan=new ExecutionPlan("String_Node_Str");
  executionPlan.addQuery(query);
  executionPlan.defineStream(streamDefinition);
  executionPlan.defineTable(tableDefinition);
  ExecutionPlanRuntime executionPlanRuntime=siddhiManager.createExecutionPlanRuntime(executionPlan);
  InputHandler stockStream=executionPlanRuntime.getInputHandler("String_Node_Str");
  executionPlanRuntime.start();
  stockStream.send(new Object[]{"String_Node_Str",55.6f});
  stockStream.send(new Object[]{"String_Node_Str",75.6f});
  Thread.sleep(RESULT_WAIT * 4);
  List<StreamEvent> streamEvents=instance_2.getList(HazelcastEventTableConstants.HAZELCAST_LIST_INSTANCE_PREFIX + executionPlanRuntime.getName() + '_'+ tableDefinition.getId());
  Assert.assertEquals(2,streamEvents.size());
  executionPlanRuntime.shutdown();
}

Fixed version (ground truth):
@Test public void testQuery19() throws InterruptedException {
  log.info("String_Node_Str");
  String clusterName="String_Node_Str";
  String clusterPassword="String_Node_Str";
  Config cfg_1=new Config();
  cfg_1.getGroupConfig().setName(clusterName).setPassword(clusterPassword);
  cfg_1.setProperty("String_Node_Str","String_Node_Str");
  HazelcastInstance instance_1=Hazelcast.newHazelcastInstance(cfg_1);
  Config cfg_2=new Config();
  cfg_2.getGroupConfig().setName(clusterName).setPassword(clusterPassword);
  cfg_2.setProperty("String_Node_Str","String_Node_Str");
  HazelcastInstance instance_2=Hazelcast.newHazelcastInstance(cfg_2);
  StringBuilder sb=new StringBuilder();
  for (  Member member : instance_2.getCluster().getMembers()) {
    sb.append(member.getSocketAddress()).append(',');
  }
  String addresses=StringUtils.replace(sb.toString(),"String_Node_Str","String_Node_Str");
  addresses=StringUtils.removeEnd(addresses,"String_Node_Str");
  SiddhiManager siddhiManager=new SiddhiManager();
  StreamDefinition streamDefinition=StreamDefinition.id("String_Node_Str").attribute("String_Node_Str",Attribute.Type.STRING).attribute("String_Node_Str",Attribute.Type.INT);
  TableDefinition tableDefinition=TableDefinition.id("String_Node_Str").annotation(Annotation.annotation("String_Node_Str").element("String_Node_Str","String_Node_Str").element("String_Node_Str",clusterName).element("String_Node_Str",clusterPassword).element("String_Node_Str",addresses)).attribute("String_Node_Str",Attribute.Type.STRING).attribute("String_Node_Str",Attribute.Type.INT);
  Query query=Query.query();
  query.from(InputStream.stream("String_Node_Str"));
  query.insertInto("String_Node_Str");
  ExecutionPlan executionPlan=new ExecutionPlan("String_Node_Str");
  executionPlan.addQuery(query);
  executionPlan.defineStream(streamDefinition);
  executionPlan.defineTable(tableDefinition);
  ExecutionPlanRuntime executionPlanRuntime=siddhiManager.createExecutionPlanRuntime(executionPlan);
  try {
    InputHandler stockStream=executionPlanRuntime.getInputHandler("String_Node_Str");
    executionPlanRuntime.start();
    stockStream.send(new Object[]{"String_Node_Str",55.6f});
    stockStream.send(new Object[]{"String_Node_Str",75.6f});
    List<StreamEvent> streamEvents=instance_2.getList(HazelcastEventTableConstants.HAZELCAST_LIST_INSTANCE_PREFIX + executionPlanRuntime.getName() + '_'+ tableDefinition.getId());
    SiddhiTestHelper.waitForEvents(100,2,streamEvents,60000);
    List<Object[]> expected=Arrays.asList(new Object[]{"String_Node_Str",55.6f},new Object[]{"String_Node_Str",75.6f});
    List<Object[]> actual=new ArrayList<Object[]>();
    for (    StreamEvent event : streamEvents) {
      actual.add(event.getOutputData());
    }
    Assert.assertEquals(2,streamEvents.size());
    Assert.assertEquals("String_Node_Str",true,SiddhiTestHelper.isEventsMatch(actual,expected));
  }
  finally {
    executionPlanRuntime.shutdown();
  }
}