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 leak with hot reload after #5 fix #8
Comments
Hi, how many is |
At least 50 times (manually like described above + each time I'm using play.api.test.WithApplication, it seems to reallocate a couchbase connection). |
Yes the withApplication will also create a connection for each bucket referenced in your Why don't you use |
Ok I have tried with |
Are you sure you're using the last snapshot ? |
Yes, I have use play update / sbt update to make sure and define |
Do you know if tests are launched sequentially or in parallel ? |
I have tried with these parameter in Play (2.2.2) + add
Maybe it's related to this old issue in Play playframework/playframework#849 |
I'm experiencing these core dumps as well while developing with |
Hi, does it happen frequently ? |
Usually between two and five. |
That's low :( Couchbase version ? |
I'm running 2.5.1-1083-rel |
I'll try to fix that as soon as possible guys |
Hey guys, I've just pushed a new SNAPSHOT. Can you try it please ? |
Unfortunately no, after a few compile+reload in ~run mode, I still get: play.api.UnexpectedException: Unexpected exception[ConfigurationException: Configuration for bucket "xxx" was not found in server list ([http://127.0.0.1:8091/pools]).]
at play.core.ReloadableApplication$$anonfun$get$1$$anonfun$apply$1$$anonfun$1.apply(ApplicationProvider.scala:148) ~[play_2.10.jar:2.2.3]
at play.core.ReloadableApplication$$anonfun$get$1$$anonfun$apply$1$$anonfun$1.apply(ApplicationProvider.scala:112) ~[play_2.10.jar:2.2.3]
at scala.Option.map(Option.scala:145) ~[scala-library.jar:na]
at play.core.ReloadableApplication$$anonfun$get$1$$anonfun$apply$1.apply(ApplicationProvider.scala:112) ~[play_2.10.jar:2.2.3]
at play.core.ReloadableApplication$$anonfun$get$1$$anonfun$apply$1.apply(ApplicationProvider.scala:110) ~[play_2.10.jar:2.2.3]
at scala.util.Success.flatMap(Try.scala:200) ~[scala-library.jar:na]
Caused by: com.couchbase.client.vbucket.ConfigurationException: Configuration for bucket "xxx" was not found in server list ([http://127.0.0.1:8091/pools]).
at com.couchbase.client.vbucket.ConfigurationProviderHTTP.readPools(ConfigurationProviderHTTP.java:274) ~[couchbase-client-1.3.2.jar:1.3.2]
at com.couchbase.client.vbucket.ConfigurationProviderHTTP.getBucketConfiguration(ConfigurationProviderHTTP.java:146) ~[couchbase-client-1.3.2.jar:1.3.2]
at com.couchbase.client.CouchbaseConnectionFactory.getVBucketConfig(CouchbaseConnectionFactory.java:313) ~[couchbase-client-1.3.2.jar:1.3.2]
at com.couchbase.client.CouchbaseClient.<init>(CouchbaseClient.java:252) ~[couchbase-client-1.3.2.jar:1.3.2]
at org.reactivecouchbase.CouchbaseBucket.connect(Couchbase.scala:53) ~[reactivecouchbase-core_2.10-0.2-SNAPSHOT.jar:0.2-SNAPSHOT]
at org.reactivecouchbase.ReactiveCouchbaseDriver.bucket(Couchbase.scala:201) ~[reactivecouchbase-core_2.10-0.2-SNAPSHOT.jar:0.2-SNAPSHOT] But no core dumps. |
Are you sure bucket "xxx" exists ? Because here, it's a pure Couchbase exception saying that bucket "xxx" isn't present on your |
:) Of course, I'm reading from and writing to it. It works for the first few requests. It works in all unit tests. Using |
Okay, I just can't reproduce the issue on my machine. Is it possible to create a small application to reproduce the issue so I can try to reproduce it ? |
Since I have no idea what causes the issue, it will be a little difficult to build a project that safely reproduces the error. I'll see what I can do. |
Now I'm getting java core dump from hot reload too:
It happens after 4-5 code modifications |
That's just weird. I tried with a 2.2 and 2.5 server on a sample app with Can you both describe your env. (JVM, Couchbase server, project structure, etc ...) ? Maybe you can try to provide a virtual machine with your env. and app so I can try it myself and debug it. |
Hello,
Now, in my tests suite, I often have this kind of java core dump:
I'm launching tests where I'm not reusing the same connection to Couchbase each time (meaning lots of val driver = ReactiveCouchbaseDriver() and then driver.shutdown() at the end). Am I doing something wrong ?
For the hot reload, after several code modification in my application, I have the following now:
The text was updated successfully, but these errors were encountered: