#vulnerable code 
                                @Test(timeout = 60000)
    public void testCommitCanSucceedWithMultipleTimeouts() throws Exception {
        Configuration clientConfiguration = getClientConfiguration();
        clientConfiguration.setProperty(TSOClient.REQUEST_TIMEOUT_IN_MS_CONFKEY, 100);
        clientConfiguration.setProperty(TSOClient.REQUEST_MAX_RETRIES_CONFKEY, 10000);
        
        TSOClient client = TSOClient.newBuilder().withConfiguration(clientConf)
                .withCommitTableClient(getCommitTable().getClient().get()).build();
        
        long ts1 = client.createTransaction().get();
        pauseTSO();
        TSOFuture<Long> future = client.commit(ts1, Sets.newSet(c1, c2));
        while(!isTsoBlockingRequest()) {}
        Thread.sleep(1000);
        resumeTSO();
        future.get();
    } 
                            #location 8 
                            #vulnerability type RESOURCE_LEAK
#fixed code
                                @Test(timeout = 60000)
    public void testCommitCanSucceedWithMultipleTimeouts() throws Exception {
        Configuration clientConfiguration = getClientConfiguration();
        clientConfiguration.setProperty(TSOClient.REQUEST_TIMEOUT_IN_MS_CONFKEY, 100);
        clientConfiguration.setProperty(TSOClient.REQUEST_MAX_RETRIES_CONFKEY, 10000);
        
        TSOClient client = TSOClient.newBuilder().withConfiguration(clientConf).build();
        
        long ts1 = client.createTransaction().get();
        pauseTSO();
        TSOFuture<Long> future = client.commit(ts1, Sets.newSet(c1, c2));
        while(!isTsoBlockingRequest()) {}
        Thread.sleep(1000);
        resumeTSO();
        future.get();
    }