Skip to content

Fix: Add tolerating gRPC cardinality violations for backwards server compatibility#612

Merged
sfc-gh-pkowalewski merged 3 commits intomainfrom
pkowalewski-cardinality-violation-backwards-compatibility
Mar 13, 2026
Merged

Fix: Add tolerating gRPC cardinality violations for backwards server compatibility#612
sfc-gh-pkowalewski merged 3 commits intomainfrom
pkowalewski-cardinality-violation-backwards-compatibility

Conversation

@sfc-gh-pkowalewski
Copy link
Copy Markdown
Collaborator

@sfc-gh-pkowalewski sfc-gh-pkowalewski commented Mar 12, 2026

Added cardinality violation handling in proxy/server/target.go so the proxy synthesizes the missing empty response when talking to old servers that still have the return nil bug. This makes the new proxy+client backward compatible with pre-fix servers. Same for direct client to server connections.

@sfc-gh-pkowalewski sfc-gh-pkowalewski force-pushed the pkowalewski-cardinality-violation-backwards-compatibility branch from d5166f2 to 5223594 Compare March 12, 2026 13:55
@sfc-gh-pkowalewski sfc-gh-pkowalewski changed the title Fix: Add tolerating gRPC cardinality violations for backwards server … Fix: Add tolerating gRPC cardinality violations for backwards server compatibility Mar 12, 2026
@sfc-gh-pkowalewski sfc-gh-pkowalewski marked this pull request as ready for review March 12, 2026 14:30
@sfc-gh-pkowalewski sfc-gh-pkowalewski force-pushed the pkowalewski-cardinality-violation-backwards-compatibility branch from 5223594 to 20c3251 Compare March 12, 2026 14:51
Comment thread services/localfile/client/client.go Outdated
@sfc-gh-pkowalewski sfc-gh-pkowalewski force-pushed the pkowalewski-cardinality-violation-backwards-compatibility branch from 04aea18 to 2f3b0ba Compare March 13, 2026 09:22
@sfc-gh-pkowalewski sfc-gh-pkowalewski force-pushed the pkowalewski-cardinality-violation-backwards-compatibility branch from 2f3b0ba to 531cf3d Compare March 13, 2026 10:47
Copy link
Copy Markdown
Collaborator

@sfc-gh-ksmogor sfc-gh-ksmogor left a comment

Choose a reason for hiding this comment

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

The change looks good right now. Could you regenrate all .pb.go files. Take a look here and run the script https://github.com/Snowflake-Labs/sansshell/blob/main/README.md#environment-setup--protoc-plugins.

@sfc-gh-pkowalewski sfc-gh-pkowalewski merged commit b1efbd0 into main Mar 13, 2026
6 checks passed
@sfc-gh-pkowalewski sfc-gh-pkowalewski deleted the pkowalewski-cardinality-violation-backwards-compatibility branch March 13, 2026 12:56
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.

3 participants