I am getting some inconsistent behavior when using batch mode in Kundera. After committing the transaction, I notice that the Batcher.clear() method (which is implemented on the ThriftClient/PelopsClient) is never called to clear out the nodes collection. As a result, every transaction adds to this list, and the list of nodes gets executed over and over again as well as growing infinitely. The only place I see clear called in in the close() method and onBatchRollBack(). Any ideas on how to get this fixed?
i will look into this.
I had a look. It is an issue and a trivial fix for this issue is to modify finally block as :
In CassandraClientBase.java=> executeBatch method,
Just before returining map size.
Let me know, if it works for you. I will get this fixed in 2.4
That's awesome. Thanks for the quick response. When do you expect 2.4 will be released? I am having a couple of other issues that I want to see if 2.4 has addressed.
Did it work for you?
It will be releasing within a week or so. Feel free to share more on issues.
This looks like it will work. I will create another thread for the other issues I am seeing.
Fixed issue #185
Closing. Releasing with 2.4