Question

I am new to hazelcast, I am using it to distribute a custom data structure, a bloom filter implementation in particular. Since the filter can get quite big I decided to use an IFunction for the updates. The problem I am facing is the following: I am executing an alterAndGet() on the bloom filter reference with which I change its BitSet values. I do get back the new updated filter as I expected but the reference itself is not updated. I looked a bit in the Hazelcast code and I saw that the implementation is using equals() to decide whether or not to update the reference value. I have checked that the returned bloom filter and previous one do not satisfy the equals, so I would expect it to have been updated. Does anyone have an idea on what I might be missing here?

Was it helpful?

Solution 2

Can you create a unit tests that verifies the problem?

I wrote a big part of the functionality. So if it is broken, I'll fix it. If we do need something to meet your needs, and it isn't too much work, I probably can add it.

OTHER TIPS

Issue should be fixed, please see my comment for the related PR you have posted https://github.com/hazelcast/hazelcast/pull/2484

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top