hazelcast/hazelcast — pull request #3335 by dirkvanrensburg (2014-08-20 13:18:22+00:00)
Title: Compare the wildcard pattern with the map name during eviction

I am Dirk from Ecetera, a partner of Hazelcast.

One of our clients recently complained that the eviction based on map size does not work when using a wild card name in the map configuration. I investigated the issue and found that it is a regression from 3.2 where it worked.

I added tests to the __EvictionTest__ class to prove that eviction works as expected with the map is named explicitly and doesn't if named by wildcard.

Then fixed it with a change to PartitionContainer. This might very well not be the ideal place for this change, but the root cause is the Eviction thread checks each map in the configuration to see if there are items that can be evicted, however the map's name is different to that of the config.