thibaultcha / lua-cassandra

Pure Lua driver for Apache Cassandra
https://thibaultcha.github.io/lua-cassandra
Other
98 stars 35 forks source link

Issue with Cluster module #100

Closed kushalkh closed 7 years ago

kushalkh commented 7 years ago

Hi guys,

I'm facing a weird issue with the cluster module. I implemented it exactly like it's described in the intro.lua example here: http://thibaultcha.github.io/lua-cassandra/examples/intro.lua.html

Now it works perfectly the first time the code is executed after restarting openresty but all subsequent requests just hang and i see this type of errors in error log on openresty: "2017/06/05 14:53:10 [alert] 27027#27027: worker process 27205 exited on signal 11" for all those subsequent requests that hang.

When i restart openresty again and try it, the first request again works fine and subsequent ones hang again. What could i be doing wrong here?

Thanks much.

thibaultcha commented 7 years ago

@kushalkh Hi,

Would you mind doing the following:

Thanks!

kushalkh commented 7 years ago

@thibaultcha

Hi, I think the issue was that i was not using init_by_lua directive to open the connection and keep it open. Using that resolved it. Thanks for looking.