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

durable persistence not working #2

Closed
krishna81m opened this issue Jun 21, 2018 · 3 comments
Closed

durable persistence not working #2

krishna81m opened this issue Jun 21, 2018 · 3 comments
Assignees

Comments

@krishna81m
Copy link

krishna81m commented Jun 21, 2018

Tried restarting and checking the same value several times in cache by putting a break point in

com.romeh.ignitemanager.repositories.impl.IgniteAlertsStore#createAlertEntry
...
alertsCache.put(alertEntry.getAlertId(), alertEntry)

But, I don't see that the value is found in cache, with persistence to disk enabled, shouldn't it be able to find the cache populated on restart?

I even tried:

alertsCache.query(
        new SqlFieldsQuery("select serviceId from AlertEntry")).getAll()
;


@Romeh Romeh self-assigned this Sep 26, 2018
@Romeh Romeh closed this as completed Oct 1, 2018
@Romeh
Copy link
Owner

Romeh commented Oct 1, 2018

now it is working fine , just clean ur local workspace

@krishna81m
Copy link
Author

could you elaborate more please, what am I cleaning and how do I check that persistence is working?

@Romeh
Copy link
Owner

Romeh commented Oct 5, 2018

you just need to check out master in a fresh work space folder the do the following :
1- start the application , open the swagger UI where u can call rest APIs there from the UI without rest client
2- add an alert , then call get all alerts to check if it is added correctly
3- restart your java application from ur IDEA
4- call again get alerts , you should see ur old added entry being returned in the response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants