Program: 166268
Project: 166268
Buggy source:
@org.junit.BeforeClass public static void setup() throws Exception {
  String basedir=System.getProperty("String_Node_Str");
  if (basedir == null) {
    basedir=new File("String_Node_Str").getCanonicalPath();
  }
  File f=new File(basedir + "String_Node_Str");
  System.setProperty("String_Node_Str",f.getPath());
  String serviceDN="String_Node_Str";
  String clientDN="String_Node_Str";
  KeyStore keystore=KeyStore.getInstance(KeyStore.getDefaultType());
  keystore.load(null,"String_Node_Str".toCharArray());
  serviceKeystorePath=KafkaTestUtils.createAndStoreKey(serviceDN,serviceDN,BigInteger.valueOf(30),"String_Node_Str","String_Node_Str","String_Node_Str",keystore);
  clientKeystorePath=KafkaTestUtils.createAndStoreKey(clientDN,clientDN,BigInteger.valueOf(31),"String_Node_Str","String_Node_Str","String_Node_Str",keystore);
  File truststoreFile=File.createTempFile("String_Node_Str","String_Node_Str");
  keystore.store(new FileOutputStream(truststoreFile),"String_Node_Str".toCharArray());
  truststorePath=truststoreFile.getPath();
  zkServer=new TestingServer();
  ServerSocket serverSocket=new ServerSocket(0);
  port=serverSocket.getLocalPort();
  serverSocket.close();
  final Properties props=new Properties();
  props.put("String_Node_Str",1);
  props.put("String_Node_Str","String_Node_Str");
  props.put("String_Node_Str",port);
  props.put("String_Node_Str","String_Node_Str");
  props.put("String_Node_Str",zkServer.getConnectString());
  props.put("String_Node_Str","String_Node_Str");
  props.put("String_Node_Str",Boolean.TRUE.toString());
  props.put("String_Node_Str","String_Node_Str" + port);
  props.put("String_Node_Str","String_Node_Str");
  props.put("String_Node_Str","String_Node_Str");
  props.put("String_Node_Str","String_Node_Str");
  props.put("String_Node_Str",serviceKeystorePath);
  props.put("String_Node_Str","String_Node_Str");
  props.put("String_Node_Str","String_Node_Str");
  props.put("String_Node_Str",truststorePath);
  props.put("String_Node_Str","String_Node_Str");
  props.put("String_Node_Str","String_Node_Str");
  UserGroupInformation.createUserForTesting("String_Node_Str",new String[]{"String_Node_Str"});
  KafkaConfig config=new KafkaConfig(props);
  kafkaServer=new KafkaServerStartable(config);
  kafkaServer.startup();
  ZkClient zkClient=new ZkClient(zkServer.getConnectString(),30000,30000,ZKStringSerializer$.MODULE$);
  final ZkUtils zkUtils=new ZkUtils(zkClient,new ZkConnection(zkServer.getConnectString()),false);
  AdminUtils.createTopic(zkUtils,"String_Node_Str",1,1,new Properties(),RackAwareMode.Enforced$.MODULE$);
  AdminUtils.createTopic(zkUtils,"String_Node_Str",1,1,new Properties(),RackAwareMode.Enforced$.MODULE$);
}

Fixed version (ground truth):
@org.junit.BeforeClass public static void setup() throws Exception {
  String basedir=System.getProperty("String_Node_Str");
  if (basedir == null) {
    basedir=new File("String_Node_Str").getCanonicalPath();
  }
  File f=new File(basedir + "String_Node_Str");
  System.setProperty("String_Node_Str",f.getPath());
  String serviceDN="String_Node_Str";
  String clientDN="String_Node_Str";
  KeyStore keystore=KeyStore.getInstance(KeyStore.getDefaultType());
  keystore.load(null,"String_Node_Str".toCharArray());
  serviceKeystorePath=KafkaTestUtils.createAndStoreKey(serviceDN,serviceDN,BigInteger.valueOf(30),"String_Node_Str","String_Node_Str","String_Node_Str",keystore);
  clientKeystorePath=KafkaTestUtils.createAndStoreKey(clientDN,clientDN,BigInteger.valueOf(31),"String_Node_Str","String_Node_Str","String_Node_Str",keystore);
  File truststoreFile=File.createTempFile("String_Node_Str","String_Node_Str");
  try (OutputStream output=new FileOutputStream(truststoreFile)){
    keystore.store(output,"String_Node_Str".toCharArray());
  }
   truststorePath=truststoreFile.getPath();
  zkServer=new TestingServer();
  ServerSocket serverSocket=new ServerSocket(0);
  port=serverSocket.getLocalPort();
  serverSocket.close();
  final Properties props=new Properties();
  props.put("String_Node_Str",1);
  props.put("String_Node_Str","String_Node_Str");
  props.put("String_Node_Str",port);
  props.put("String_Node_Str","String_Node_Str");
  props.put("String_Node_Str",zkServer.getConnectString());
  props.put("String_Node_Str","String_Node_Str");
  props.put("String_Node_Str",Boolean.TRUE.toString());
  props.put("String_Node_Str","String_Node_Str" + port);
  props.put("String_Node_Str","String_Node_Str");
  props.put("String_Node_Str","String_Node_Str");
  props.put("String_Node_Str","String_Node_Str");
  props.put("String_Node_Str",serviceKeystorePath);
  props.put("String_Node_Str","String_Node_Str");
  props.put("String_Node_Str","String_Node_Str");
  props.put("String_Node_Str",truststorePath);
  props.put("String_Node_Str","String_Node_Str");
  props.put("String_Node_Str","String_Node_Str");
  UserGroupInformation.createUserForTesting("String_Node_Str",new String[]{"String_Node_Str"});
  KafkaConfig config=new KafkaConfig(props);
  kafkaServer=new KafkaServerStartable(config);
  kafkaServer.startup();
  ZkClient zkClient=new ZkClient(zkServer.getConnectString(),30000,30000,ZKStringSerializer$.MODULE$);
  final ZkUtils zkUtils=new ZkUtils(zkClient,new ZkConnection(zkServer.getConnectString()),false);
  AdminUtils.createTopic(zkUtils,"String_Node_Str",1,1,new Properties(),RackAwareMode.Enforced$.MODULE$);
  AdminUtils.createTopic(zkUtils,"String_Node_Str",1,1,new Properties(),RackAwareMode.Enforced$.MODULE$);
}