Hazelcast Imap.clear() not deleting entries from map permanently

478 views
Skip to first unread message

Prashant Tiwari

unread,
Apr 8, 2015, 3:36:18 AM4/8/15
to haze...@googlegroups.com
Hi All,

I am using Imap.clear()  to remove all entries from the map. The map count reduces to 0 after that.
However when i query on the map for a particular id, the value is printed and map count increased.
Any suggestions why this strange behavior is happening?

Thanks,
Prashant Tiwari

Ali Gurbuz

unread,
Apr 8, 2015, 3:45:57 AM4/8/15
to haze...@googlegroups.com
you have configured maploader/mapstore ?

--
You received this message because you are subscribed to the Google Groups "Hazelcast" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hazelcast+...@googlegroups.com.
To post to this group, send email to haze...@googlegroups.com.
Visit this group at http://groups.google.com/group/hazelcast.
To view this discussion on the web visit https://groups.google.com/d/msgid/hazelcast/5ae1be1d-9cff-4c8f-88e0-df314cd2b4e6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

Ali Gurbuz
Core Team Lead

Mahir İz Cad. No:35, Altunizade, İstanbul
a...@hazelcast.com 
+90 507 857 7815
@aligurbuz

Prashant Tiwari

unread,
Apr 8, 2015, 3:52:33 AM4/8/15
to haze...@googlegroups.com
Hi Ali,

Yes we have configured mapStore but the deleteAll() is empty as we do not want to delete the entries from database.
We have not configured maploader.

Thanks,
Prashant

Ali Gurbuz

unread,
Apr 8, 2015, 4:03:41 AM4/8/15
to haze...@googlegroups.com
can you share your mapstore impelemtation ?


For more options, visit https://groups.google.com/d/optout.

Prashant Tiwari

unread,
Apr 8, 2015, 7:16:36 AM4/8/15
to haze...@googlegroups.com
I have talked to the developer and we have implemented load(String key) method in mapStore. So if the entity is not found in cache it will be fetched from the database. 

Sorry for the inconvenience and thanks Ali

--
You received this message because you are subscribed to a topic in the Google Groups "Hazelcast" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/hazelcast/SiERLbAJYa0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to hazelcast+...@googlegroups.com.

To post to this group, send email to haze...@googlegroups.com.
Visit this group at http://groups.google.com/group/hazelcast.
Reply all
Reply to author
Forward
0 new messages