Skip to content

feat(firestore): add x-goog-is-transaction routing header - #15990

Merged
amanda-tarafa merged 3 commits into
googleapis:mainfrom
nikhilchowdary:feat-firestore-tx-routing-header
Oct 23, 2026
Merged

amanda-tarafa merged 3 commits into
googleapis:mainfrom
nikhilchowdary:feat-firestore-tx-routing-header

Conversation

@nikhilchowdary

Copy link
Copy Markdown
Contributor

Add x-goog-is-transaction routing header in .NET SDK to differentiate transactional requests and non-transactional requests from firestore. Having a routing header for transactions helps in routing grpc requests at GFE.

@nikhilchowdary
nikhilchowdary requested a review from a team as a code owner October 17, 2026 07:48
@product-auto-label product-auto-label Bot added the api: firestore Issues related to the Firestore API. label Oct 17, 2026

@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 introduces the x-goog-is-transaction header to Firestore RPC calls, indicating whether a request is part of a transaction. It updates FirestoreClientImpl to apply this header dynamically and adapts the test suite to verify its presence. The review feedback suggests optimizing ApplyTransactionHeader by removing redundant duplicate-header checks and metadata allocations, which would also allow simplifying the associated unit tests.

@nikhilchowdary
nikhilchowdary force-pushed the feat-firestore-tx-routing-header branch from 28977b7 to 3ad772e Compare October 17, 2026 08:09
@efevans
efevans self-requested a review October 19, 2026 17:54
@nikhilchowdary
nikhilchowdary force-pushed the feat-firestore-tx-routing-header branch from 3ad772e to e5e9dba Compare October 22, 2026 07:10
@nikhilchowdary
nikhilchowdary force-pushed the feat-firestore-tx-routing-header branch from e5e9dba to 90931a2 Compare October 22, 2026 07:12

@amanda-tarafa amanda-tarafa 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.

Tests are failing.

@efevans
efevans removed their request for review October 23, 2026 16:47

@robertvoinescu-work robertvoinescu-work 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.

LGTM

@amanda-tarafa
amanda-tarafa merged commit 57936cb into googleapis:main Oct 23, 2026
20 of 21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: firestore Issues related to the Firestore API.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants