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

Imap.get() does not reset idle time counter when read-backup-data is enabled #14026

Closed
khanhlv93 opened this Issue Oct 24, 2018 · 1 comment

Comments

Projects
None yet
3 participants
@khanhlv93
Copy link

khanhlv93 commented Oct 24, 2018

IMap.containsKey() reset idle time counter but IMap.get() doesn's. IMap always evict all entry although some entry i call get repeat times.

<map name="msisdn">
       <in-memory-format>OBJECT</in-memory-format>
        <backup-count>0</backup-count>
        <async-backup-count>1</async-backup-count>
        <read-backup-data>true</read-backup-data>
        <max-idle-seconds>20</max-idle-seconds>
        <time-to-live-seconds>0</time-to-live-seconds>
    `</map>`
while (true)
        {
            String imsi = "123456781157891";
            System.out.println(iMap.get(imsi));
            ;
            Thread.sleep(5000);
        }

@mmedenjak mmedenjak added this to the 3.12 milestone Oct 24, 2018

@ahmetmircik ahmetmircik changed the title Imap.get() does not reset idle time counter Imap.get() does not reset idle time counter when read-backup-data is enabled Oct 24, 2018

@ahmetmircik

This comment has been minimized.

Copy link
Member

ahmetmircik commented Oct 24, 2018

@khanhlv93, thanks for the report. I sent a fix candidate for the issue. It is only happening when read-backup-data config is enabled.

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.