Hi team,

I have my region defined in cache.xml as follows:

<region name="customer" refid="PARTITION_REDUNDANT_PERSISTENT">
    <region-attributes disk-store-name="customer-disk-store-1"
statistics-enabled="true" disk-synchronous="false"/>
</region>

I use the below query to remove some customer Ids for 4 servers

ClientCache clientCache = new ClientCacheFactory().set("cache-xml-file",
"cache.xml").create();.

customerRegion = clientCache.getRegion("customer");
List<String> expiredCustomers =
          new ArrayList<>(
              customerRegion.query(
                  "select customerId from /customer where timeLeftToExpire
< "
                      + currentTimeInMillis
                      + "L"));

customerRegion.removeAll(expiredCustomers);

There are no errors. However when I run

query --query="select customerId from
/customer where customerId=CUSTOMER_ID_THAT_IS_DELETED"

I get a row. However, the expectation was ZERO.

What am I missing to delete the key permanently from the geode cluster ?

Regards,
Ajay Vasudevan

Reply via email to