milleruntime commented on a change in pull request #2303:
URL: https://github.com/apache/accumulo/pull/2303#discussion_r729768087
##########
File path:
minicluster/src/main/java/org/apache/accumulo/miniclusterImpl/MiniAccumuloClusterImpl.java
##########
@@ -773,8 +773,9 @@ public int stopProcessWithTimeout(final Process proc, long
timeout, TimeUnit uni
public ManagerMonitorInfo getManagerMonitorInfo()
throws AccumuloException, AccumuloSecurityException {
ManagerClientService.Iface client = null;
+ AccumuloClient c =
Accumulo.newClient().from(getClientProperties()).build();
while (true) {
- try (AccumuloClient c =
Accumulo.newClient().from(getClientProperties()).build()) {
+ try {
Review comment:
It works with an additional try-with-resources, which I guess is better
then the explicit close.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]