Program: 166270
Project: 166270
Buggy source:
@org.junit.BeforeClass public static void setup() throws Exception {
  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();
  tempDir=Files.createTempDirectory("String_Node_Str");
  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",tempDir.toString());
  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",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");
  props.put("String_Node_Str","String_Node_Str");
  props.put("String_Node_Str","String_Node_Str");
  UserGroupInformation.createUserForTesting(clientDN,new String[]{"String_Node_Str"});
  UserGroupInformation.createUserForTesting(serviceDN,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 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();
  tempDir=Files.createTempDirectory("String_Node_Str");
  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",tempDir.toString());
  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",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");
  props.put("String_Node_Str","String_Node_Str");
  props.put("String_Node_Str","String_Node_Str");
  UserGroupInformation.createUserForTesting(clientDN,new String[]{"String_Node_Str"});
  UserGroupInformation.createUserForTesting(serviceDN,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$);
}