MINOR: Remove call to Exit.exit() to prevent infinite recursion in Connect integration tests (#9015)

If we call org.apache.kafka.common.utils.Exit#exit(int code) with code=0, the current implementation will go into an infinite recursion and kill the VM with a stack overflow error. This happens only in integration tests because of the overrides of shutdown procedures and this commit addresses this issue by removing the redundant call to Exit#exit. 

Reviewers: Lucas Bradstreet <lucas@confluent.io>, Konstantine Karantasis <k.karantasis@gmail.com>, Chia-Ping Tsai <chia7712@gmail.com>
This commit is contained in:
Arjun Satish 2020-07-14 11:59:34 -07:00 committed by GitHub
parent cf69bdc713
commit f699bd98c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 2 deletions

View File

@ -112,7 +112,6 @@ public class EmbeddedConnectCluster {
log.warn(exitMessage);
throw new UngracefulShutdownException(exitMessage);
}
Exit.exit(0, message);
};
/**
@ -124,7 +123,6 @@ public class EmbeddedConnectCluster {
log.warn(haltMessage);
throw new UngracefulShutdownException(haltMessage);
}
Exit.halt(0, message);
};
/**