Skip to content

Commit b53dc85

Browse files
committed
fix(bigquery): declare closed as transient volatile in BigQueryImpl
1 parent 7a555d4 commit b53dc85

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • java-bigquery/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery

java-bigquery/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/BigQueryImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,7 @@ private void closeClient() {
504504

505505
private transient ConcurrentHashMap<String, BigQueryReadClient> bqReadClients;
506506
private transient boolean isGlobalClientUserProvided;
507-
private boolean closed = false;
507+
private transient volatile boolean closed = false;
508508

509509
/**
510510
* Lazily creates or retrieves the shared {@link BigQueryReadClient} instance used for streaming

0 commit comments

Comments
 (0)