Skip to content

Connection pool reconnect does not set CQL version #49

Closed
rmechler-sencha opened this Issue May 14, 2012 · 1 comment

2 participants

@rmechler-sencha

I have cqlVersion : '3.0.0' set for my pool. I take my C* server down and bring it back up, and a new connection is established, initiated by checkDead(). However, the connect() function used for this does not set the cqlVersion (and so subsequent queries fail). The patch below will fix the problem, however, there might be a better fix that reuses the code for creating connections.

--- helenus.orig/lib/pool.js    2012-05-14 10:43:47.000000000 -0700
+++ helenus/lib/pool.js 2012-05-14 10:45:34.000000000 -0700
@@ -234,7 +234,8 @@ Pool.prototype.monitorConnections = func
       keyspace: self.keyspace,
       user: self.user,
       password: self.password,
-      timeout: self.timeout
+      timeout: self.timeout,
+      cqlVersion: self.cqlVersion
     });

     connection.on('error', function(err){
@devdazed devdazed closed this in 8ca52da May 15, 2012
@devdazed
SimpleReach member

This fix was published under version 0.5.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.