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
KP-story opened this issue Oct 24, 2018 · 1 comment · Fixed by #14028
Closed

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

KP-story opened this issue Oct 24, 2018 · 1 comment · Fixed by #14028

Comments

@KP-story
Copy link

@KP-story KP-story 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
Copy link
Member

@ahmetmircik 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
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

3 participants