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

Wrap gocql.Iter with custom wrapper #3577

Merged
merged 3 commits into from Nov 15, 2022

Conversation

alexshtin
Copy link
Member

@alexshtin alexshtin commented Nov 10, 2022

What changed?
Wrap gocql.Iter with custom wrapper.

Why?
To use custom handelError function to handle ErrNoConnections error and recreate session.
To temporally mitigate the error form gocql/gocql#915.

How did you test it?
Existing tests.

Potential risks
No risks.

Is hotfix candidate?
Yes.

@alexshtin alexshtin requested a review from a team as a code owner November 10, 2022 01:40
@samarabbas
Copy link
Contributor

Can we add a test for this?

@alexshtin
Copy link
Member Author

@samarabbas, unfortunately, I can't reproduce the original error described in gocql/gocql#915. Methods, described there, don't work anymore. Apparently those bugs were fixed and we are hitting something else.

Unit test also doesn't make much sense here, as it can only assert on return type which is obvious from the code.

Also these wrappers are used for every Cassandra operation, so they are well covered with existing tests.

@alexshtin alexshtin merged commit 4f2b98e into temporalio:master Nov 15, 2022
@alexshtin alexshtin deleted the fix/iter-wrapper branch November 15, 2022 02:38
alexshtin added a commit that referenced this pull request Nov 15, 2022
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.

None yet

4 participants