Dear Geode Community.

I'm using Apache Geode 1.9.0.
My question is:
  I want to alter geode region attribute "--enable-statistics=true"  by
gfsh command line. However It seems to be impossible.
  What's the best practise to accomplish that? Do I have to recreate this
region and migrate my data from the origin region?
--------------
Here's my senario:
1. I have already created a region , which does not enable attribute "
--enable-statistics=true".
2. Now I want to alter its TTL attribute
"--entry-time-to-live-expiration=5", but it throws an exception.

gfsh>alter region --name=/my_region --entry-time-to-live-expiration=5

 Member   | Status | Message

--------- | ------ |
--------------------------------------------------------------------------------------

my-server | ERROR  |  java.lang.IllegalStateException: Cannot set time to
live when statistics are disabled
3. According to the error message, I need to alter region attribute"
--enable-statistics" first.
4. Here the problem comes, the alter region command(gfsh) seems don't have
the option about altering the attribute "--enable-statistics=true".
--------------
Thanks,
Jerry

Reply via email to