Skip to content

fix(bigtable): thread visibility on heartbeatInterval#13193

Closed
igorbernstein2 wants to merge 1 commit into
googleapis:mainfrom
igorbernstein2:session-heartbeat-visibility
Closed

fix(bigtable): thread visibility on heartbeatInterval#13193
igorbernstein2 wants to merge 1 commit into
googleapis:mainfrom
igorbernstein2:session-heartbeat-visibility

Conversation

@igorbernstein2
Copy link
Copy Markdown
Contributor

No description provided.

@igorbernstein2 igorbernstein2 requested review from a team as code owners May 14, 2026 18:18
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request moves the nextHeartbeat timestamp update inside the synchronized block within the startRpc method of SessionImpl.java. The review feedback correctly identifies that the update still occurs before the currentRpc != null validation check, which could lead to an incorrect heartbeat reset if the RPC fails to start; it is recommended to move the assignment after this check to ensure logical consistency.

@igorbernstein2
Copy link
Copy Markdown
Contributor Author

Nevermind, heartbeatinterval is already volatile

@igorbernstein2 igorbernstein2 deleted the session-heartbeat-visibility branch May 14, 2026 18:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant