Program: 147336
Project: 147336
Buggy source:
@Test public void storeFetchServers() throws Exception {
  Runnable r=new Runnable(){
    @Override public void run(){
      try {
        SimpleAccumuloStore.main(new String[]{"String_Node_Str",user,"String_Node_Str",passwordStr,"String_Node_Str",namespace,"String_Node_Str",String.valueOf(port)});
      }
 catch (      Exception e) {
        throw new RuntimeException(e);
      }
    }
  }
;
  Thread t=new Thread(r);
  t.run();
  Thread.sleep(500);
  try (TTransport transport=new TFramedTransport(new TSocket("String_Node_Str",port),Integer.MAX_VALUE)){
    transport.open();
    TProtocol protocol=new TCompactProtocol(transport);
    StoreCommunicationService.Iface client=new StoreCommunicationService.Client(protocol);
    client.store(comm);
  }
   t.stop();
  r=new Runnable(){
    @Override public void run(){
      try {
        SimpleAccumuloFetch.main(new String[]{"String_Node_Str",user,"String_Node_Str",passwordStr,"String_Node_Str",namespace,"String_Node_Str",String.valueOf(port)});
      }
 catch (      Exception e) {
        throw new RuntimeException(e);
      }
    }
  }
;
  t=new Thread(r);
  t.run();
  Thread.sleep(500);
  try (TTransport transport=new TFramedTransport(new TSocket("String_Node_Str",port),Integer.MAX_VALUE)){
    transport.open();
    TProtocol protocol=new TCompactProtocol(transport);
    FetchCommunicationService.Iface client=new FetchCommunicationService.Client(protocol);
    FetchRequest rq=new FetchRequest();
    rq.addToCommunicationIds(comm.getId());
    FetchResult res=client.fetch(rq);
    System.out.println("String_Node_Str" + res);
    assertEquals(res.getCommunicationsSize(),1);
    assertEquals(res.getCommunications().get(0).getText(),comm.getText());
  }
   t.stop();
}

Fixed version (ground truth):
/** 
 * Does not pass, for unknown reasons. Something is wrong with the thrift service setup which causes hangs.
 */
public void storeFetchServers() throws Exception {
  Runnable r=new Runnable(){
    @Override public void run(){
      try {
        System.getProperties().put("String_Node_Str",user);
        System.getProperties().put("String_Node_Str",passwordStr);
        System.getProperties().put("String_Node_Str",namespace);
        System.getProperties().put("String_Node_Str",String.valueOf(port));
        SimpleAccumuloStore.main(new String[]{});
      }
 catch (      Exception e) {
        throw new RuntimeException(e);
      }
    }
  }
;
  Thread t=new Thread(r);
  t.run();
  Thread.sleep(500);
  try (TTransport transport=new TFramedTransport(new TSocket("String_Node_Str",port),Integer.MAX_VALUE)){
    transport.open();
    TProtocol protocol=new TCompactProtocol(transport);
    StoreCommunicationService.Iface client=new StoreCommunicationService.Client(protocol);
    client.store(comm);
  }
   t.stop();
  r=new Runnable(){
    @Override public void run(){
      try {
        System.getProperties().put("String_Node_Str",user);
        System.getProperties().put("String_Node_Str",passwordStr);
        System.getProperties().put("String_Node_Str",namespace);
        System.getProperties().put("String_Node_Str",String.valueOf(port));
        SimpleAccumuloFetch.main(new String[]{});
      }
 catch (      Exception e) {
        throw new RuntimeException(e);
      }
    }
  }
;
  t=new Thread(r);
  t.run();
  Thread.sleep(500);
  try (TTransport transport=new TFramedTransport(new TSocket("String_Node_Str",port),Integer.MAX_VALUE)){
    transport.open();
    TProtocol protocol=new TCompactProtocol(transport);
    FetchCommunicationService.Iface client=new FetchCommunicationService.Client(protocol);
    FetchRequest rq=new FetchRequest();
    rq.addToCommunicationIds(comm.getId());
    FetchResult res=client.fetch(rq);
    System.out.println("String_Node_Str" + res);
    assertEquals(res.getCommunicationsSize(),1);
    assertEquals(res.getCommunications().get(0).getText(),comm.getText());
  }
   t.stop();
}