Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix logic in the code when setReadOnly(false) changes to a writer which causes a failover event. #426

Closed
mcmmaso opened this issue May 3, 2023 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@mcmmaso
Copy link

mcmmaso commented May 3, 2023

No description provided.

sergiyvamz added a commit that referenced this issue May 3, 2023
### Summary

Fix issue with connection state transfer

### Description

While switching from read-only connection to a writer connection (for
instance, when calling connection.setReadOnly(false) on a connection to
replica), transfer session state code raises an exception and that
triggers a failover process rather than regular connecting process to a
writer.

#426

### Additional Reviewers

@karenc-bq 
@aaron-congo 

### By submitting this pull request, I confirm that my contribution is
made under the terms of the Apache 2.0 license.

Co-authored-by: sergiyv-bitquill <[email protected]>
@sergiyvamz sergiyvamz assigned sergiyvamz and unassigned hsuamz and sergiyvamz May 3, 2023
sergiyvamz added a commit that referenced this issue May 3, 2023
### Summary

Remove logic that changes connection to a writer when setReadOnly(false)
is called on reader connection.
#426

### Additional Reviewers

@karenc-bq 
@aaron-congo 

### By submitting this pull request, I confirm that my contribution is
made under the terms of the Apache 2.0 license.

Co-authored-by: sergiyv-bitquill <[email protected]>
@karenc-bq
Copy link
Contributor

Fixes were merged and released in version 2.1.0 through PR #427, we will be closing this ticket now.

@karenc-bq karenc-bq added the bug Something isn't working label Jun 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants