Skip to content
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

Cache event listeners triggers multiple events when the listener is configured using the xml #9315

Closed
ihsandemir opened this issue Nov 25, 2016 · 1 comment

Comments

Projects
None yet
2 participants
@ihsandemir
Copy link
Contributor

commented Nov 25, 2016

When we create an EventListener to log on events such as create, update, expire, etc.. , and when we restart the client by keeping the server in place, for the first client start we see one printout for the first hit to an event, and when we restart the client we see two printouts for the second event, and when we restart the client again we see four for the third event, eight for the fourth, and so on.

This happens when listener is configured using the xml:

    <cache name="entrylistenertestcache">
        <expiry-policy-factory>
            <timed-expiry-policy-factory expiry-policy-type="CREATED" duration-amount="1" time-unit="SECONDS"/>
        </expiry-policy-factory>
        <cache-entry-listeners>
            <cache-entry-listener old-value-required="false" synchronous="false">
                <cache-entry-listener-factory class-name="com.hazelcast.client.cache.CacheEntryListenerTestFactory"/>
            </cache-entry-listener>
        </cache-entry-listeners>
    </cache>

@ihsandemir ihsandemir added this to the 3.7.4 milestone Nov 25, 2016

@ihsandemir ihsandemir self-assigned this Nov 25, 2016

ihsandemir added a commit to ihsandemir/hazelcast that referenced this issue Nov 25, 2016

Forward port of hazelcast#9233
Fixes the issue of duplicating the cache config listener registration configurations (hazelcast#9315 ) when xml based listener is defined for a Cache. A new test is added as well.

ihsandemir added a commit that referenced this issue Nov 25, 2016

Cache event listeners triggers multiple events when the listener is c…
…onfigured using the xml - Forward #9233 (#9316)

* Forward port of #9233

Fixes the issue of duplicating the cache config listener registration configurations (#9315 ) when xml based listener is defined for a Cache. A new test is added as well.
@sancar

This comment has been minimized.

Copy link
Member

commented Nov 29, 2016

fixed by #9233 and #9316

@sancar sancar closed this Nov 29, 2016

tkountis added a commit to tkountis/hazelcast that referenced this issue Nov 30, 2016

Cache event listeners triggers multiple events when the listener is c…
…onfigured using the xml - Forward hazelcast#9233 (hazelcast#9316)

* Forward port of hazelcast#9233

Fixes the issue of duplicating the cache config listener registration configurations (hazelcast#9315 ) when xml based listener is defined for a Cache. A new test is added as well.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.