Skip to content

fix(bigtable): stop installing DirectpathEnforcer on the directpath pool#13880

Merged
mutianf merged 1 commit into
googleapis:mainfrom
mutianf:fix/disable-directpath-enforcer
Jul 23, 2026
Merged

fix(bigtable): stop installing DirectpathEnforcer on the directpath pool#13880
mutianf merged 1 commit into
googleapis:mainfrom
mutianf:fix/disable-directpath-enforcer

Conversation

@mutianf

@mutianf mutianf commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@mutianf
mutianf requested review from a team as code owners July 23, 2026 18:22

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

Copy link
Copy Markdown
Contributor

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 temporarily disables the DirectpathEnforcer in SwitchingChannelPool when configuring the primary channel pool in DIRECT_ACCESS_WITH_FALLBACK mode. This workaround prevents VMs from becoming indefinitely wedged when negotiating non-ALTS connections, pending a more robust fix in FallbackChannelPool. The reviewer suggested adding a tracking issue or ticket reference to the temporary TODO comment to ensure it is tracked and resolved, in line with standard style guidelines.

new DirectpathEnforcer(
"Non-directpath connections are not allowed in the directpath channel "
+ "pool when a fallback channel pool is available."));
// TODO: temporarily NOT installing the DirectpathEnforcer.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

When adding a temporary TODO comment, it is best practice to include a tracking issue or ticket reference. This ensures that the temporary workaround is tracked and eventually resolved, preventing it from becoming permanent technical debt.

Suggested change
// TODO: temporarily NOT installing the DirectpathEnforcer.
// TODO(issue-number): temporarily NOT installing the DirectpathEnforcer.
References
  1. According to the Google Java Style Guide (Section 4.8.6.2), TODO comments should include an identifier (such as a bug tracker reference or username) to provide context and ensure traceability. (link)

@mutianf
mutianf enabled auto-merge (squash) July 23, 2026 18:25
@mutianf
mutianf merged commit 5f2e056 into googleapis:main Jul 23, 2026
209 of 212 checks passed
@mutianf
mutianf deleted the fix/disable-directpath-enforcer branch July 23, 2026 18:46
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.

2 participants