fix: fix skip logging on exporter closing (#2892) · googleapis/java-bigtable@89f4faf (original) (raw)

This repository was archived by the owner on May 8, 2026. It is now read-only.

File tree

Original file line number Diff line number Diff line change
@@ -195,7 +195,7 @@ public void onFailure(Throwable throwable) {
195 195 RuntimeException asyncWrapper = new RuntimeException("export failed", throwable);
196 196 asyncWrapper.setStackTrace(stackTrace);
197 197
198 -if (state.get() != State.Closing |
198 +if (state.get() != State.Closing && state.get() != State.Closed) {
199 199 // ignore the export warning when client is shutting down
200 200 LOGGER.log(Level.WARNING, msg, asyncWrapper);
201 201 }