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

Hit count gets incremented by 2 when entry updated using EntryProcessor #11993

Closed
ncherkas opened this issue Dec 14, 2017 · 0 comments
Closed

Hit count gets incremented by 2 when entry updated using EntryProcessor #11993

ncherkas opened this issue Dec 14, 2017 · 0 comments

Comments

@ncherkas
Copy link

@ncherkas ncherkas commented Dec 14, 2017

Hello,

When using the following implementation of EntryProcessor:

    public class EntryProcessorImpl extends AbstractEntryProcessor<String, String> {

        private final String value;

        public EntryProcessorImpl(String value) {
            this.value = value;
        }

        @Override
        public Object process(Map.Entry<String, String> entry) {
            entry.setValue(value);
            return null;
        }
    }

and invoking with IMap.executeOnKey map stats Hit count gets incremented by 2, not by 1. Same behavior is when you pull stats via both IMap.getLocalMapStats and Clustered REST API.

@mmedenjak mmedenjak added this to the 3.10 milestone Dec 14, 2017
@taburet taburet self-assigned this Dec 18, 2017
taburet added a commit to taburet/hazelcast that referenced this issue Dec 26, 2017
taburet added a commit to taburet/hazelcast that referenced this issue Jan 9, 2018
@taburet taburet added Team: Core and removed Team: Core labels Jan 22, 2018
taburet added a commit to taburet/hazelcast that referenced this issue Jan 31, 2018
taburet added a commit that referenced this issue Jan 31, 2018
Fixes: #11993
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

4 participants
You can’t perform that action at this time.