Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,6 @@ public void close() throws SQLException {
}

try {
AutoCloseables.close(clientHandler);
allocator.getChildAllocators().forEach(AutoCloseables::closeNoChecked);
AutoCloseables.close(allocator);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -220,9 +220,7 @@ public FlightInfo getInfo(final String query) {

@Override
public void close() throws SQLException {
if (catalog.isPresent()) {
sqlClient.closeSession(new CloseSessionRequest(), getOptions());
}
sqlClient.closeSession(new CloseSessionRequest(), getOptions());
try {
AutoCloseables.close(sqlClient);
} catch (final Exception e) {
Expand Down