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

connection reset error #41

Open
kkrishna opened this issue May 2, 2018 · 0 comments
Open

connection reset error #41

kkrishna opened this issue May 2, 2018 · 0 comments

Comments

@kkrishna
Copy link

kkrishna commented May 2, 2018

I'm using generated bindings from cqlc and pass session object for queries. This works fine but after a while, on query, returns "connection reset error" while while session.Closed api returns false.
sample query with error message is below:

	present, e := ctx.Select().From(FOOTABLE).Where(
		FOOTABLE.TENANT.Eq(tenant), FOOTABLE.NS.Eq(ns)).Into(FOOTABLE.To(&foo)).
		FetchOne(session)

read tcp 10.160.105.22:34614->10.146.86.33:9042: read: connection reset by peer

My understanding is session object should re-establish session upon failure but in this case probably it is not able to detect connection reset ? Any pointers on handling this scenario. thanks..

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

No branches or pull requests

1 participant