-
Notifications
You must be signed in to change notification settings - Fork 361
WindowFuture often in strange state temporarily - while doing performance tests #61
Comments
Garth will try to check this out tomorrow or Wed |
Any news? It just happened to me in idle application, when only enquire link was running.
|
@jjlauer I found it. DefaultWindowFuture#completeHelper and #failedHelper are broken, because it sets #done before setting #response and #doneTimestamp. So DefaultWindowFuture#await which checks #done can return too soon. This is how it should look like (logically, I do not suggest this particular fix):
Since this problem does not concern real word uses, i guess it is fine to just leave it, and let users to add some artificial response delay - that's what I did. |
Up for the request. Under heavy load (3-5k/sec), I experience such an undesired behaviour. |
ch-commons-util 6.0.2 with the fix for the race condition has been released. We will do a release of ch-smpp that forces this dependency on both the Netty 3 and 4 versions, but you should also be able to fix by forcing the version change in your project right away. |
Fix released in 5.0.7. Promotion to Maven Central should be complete today. |
https://github.com/krasa/cloudhopper-smpp/tree/bug
Start ServerMain and PerformanceClientMain
It happens quite often when SmppSession#submit is used. So I copypasted #sendRequestAndGetResponse and added some logging:
it produces:
The text was updated successfully, but these errors were encountered: