Skip to content

fix protocol negotiation error handling#1960

Merged
jameshartig merged 1 commit into
apache:trunkfrom
jameshartig:cassgo-131-proto-neg
Jun 23, 2026
Merged

fix protocol negotiation error handling#1960
jameshartig merged 1 commit into
apache:trunkfrom
jameshartig:cassgo-131-proto-neg

Conversation

@jameshartig

Copy link
Copy Markdown
Contributor

In CASSGO-97 and #1920 the handling was changed to better support non-zero stream id error responses. But because of hardcoding of version 5 in the test harness there was a regression where older protocol responses were not supported anymore.

By adding an Unwrap method to ErrProtocol now the existing checking in checkProtocolRelatedError will correctly catch the protocolError.

@jameshartig jameshartig changed the title fix protocol negociation error handling fix protocol negotiation error handling Jun 22, 2026

@worryg0d worryg0d left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

+1

Thanks for catching this

In CASSGO-97 and apache#1920 the handling was changed to better support non-zero stream id
error responses. But because of hardcoding of version 5 in the test harness there was
a regression where older protocol responses were not supported anymore.

By adding an Unwrap method to ErrProtocol now the existing checking in
checkProtocolRelatedError will correctly catch the protocolError.

Patch by James Hartig; reviewed by Bohdan Siryk for CASSGO-131
@jameshartig jameshartig force-pushed the cassgo-131-proto-neg branch from bc891bf to eb3a566 Compare June 23, 2026 18:58
@jameshartig jameshartig merged commit 1920205 into apache:trunk Jun 23, 2026
72 checks passed
@jameshartig jameshartig deleted the cassgo-131-proto-neg branch June 23, 2026 19: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