justinmclean opened a new issue, #8382:
URL: https://github.com/apache/gravitino/issues/8382
### What would you like to be improved?
In
iceberg/iceberg-common/src/main/java/org/apache/gravitino/iceberg/common/utils/IcebergHiveCachedClientPool.java,
you will encounter an NPE if you close two pools.
Here's a test to show that:
```
@Test
void testCloseMultipleInstances() throws IOException {
Configuration configuration = new Configuration();
Map<String, String> properties = Maps.newHashMap();
IcebergHiveCachedClientPool pool1 = new
IcebergHiveCachedClientPool(configuration, properties);
IcebergHiveCachedClientPool pool2 = new
IcebergHiveCachedClientPool(configuration, properties);
Assertions.assertDoesNotThrow(
() -> {
pool1.close();
pool2.close();
});
}
```
### How should we improve?
_No response_
--
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]