Skip to content

Commit c9219c0

Browse files
committed
fix(bigtable): make heartbeat interval volatile
1 parent ca594e4 commit c9219c0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/session

java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/session/SessionImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ public class SessionImpl implements Session, VRpcSessionApi {
113113
private VRpcResult currentCancel = null;
114114

115115
private SessionParametersResponse sessionParameters = DEFAULT_SESSION_PARAMS;
116-
private Duration heartbeatInterval =
116+
private volatile Duration heartbeatInterval =
117117
Duration.ofMillis(Durations.toMillis(sessionParameters.getKeepAlive()));
118118

119119
private volatile Instant nextHeartbeat;

0 commit comments

Comments
 (0)