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

Commit 11d9e38

Browse files
dont log failures when closed
Change-Id: Id5f40c3919b1f94fc28ec6d38f929709aefa8687
1 parent ca87acf commit 11d9e38

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/stub/metrics/BigtableCloudMonitoringExporter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ public void onFailure(Throwable throwable) {
191191
RuntimeException asyncWrapper = new RuntimeException("export failed", throwable);
192192
asyncWrapper.setStackTrace(stackTrace);
193193

194-
if (state.get() != State.Closing) {
194+
if (state.get() != State.Closing || state.get() != State.Closed) {
195195
// ignore the export warning when client is shutting down
196196
LOGGER.log(Level.WARNING, msg, asyncWrapper);
197197
}

0 commit comments

Comments
 (0)