gfsh create 命令 region-time-to-live 没有按预期工作

gfsh create command region-time-to-live not working as expected

当我使用以下命令 create 一个区域并在之后使用 describe 时,它根本不显示 region-time-to-live 设置 .只有当我使用 alter 时,我才能看到 entry-time-to-liveregion-time-to-live 设置正确。

gfsh>create region --name=myRegion --type=REPLICATE --enable-statistics=true --entry-time-to-live-expiration=200 --region-time-to-live-expiration=2000

gfsh>describe region --name
Region | entry-time-to-live.timeout | 2000
       | data-policy                | REPLICATE
       | size                       | 0
       | statistics-enabled         | true
       | scope                      | distributed-ack


gfsh>alter region --name=myRegion --entry-time-to-live-expiration=200 --region-time-to-live-expiration=2000

gfsh>describe region --name
Region | entry-time-to-live.timeout | 200
       | data-policy                | REPLICATE
       | region-time-to-live.timeout| 2000
       | size                       | 0
       | statistics-enabled         | true
       | scope                      | distributed-ack

我相信这个错误已经在 GEODE ​​的最新 develop 分支中解决了,特别是通过 GEODE-1897。下面是我看到的输出:

    _________________________     __
   / _____/ ______/ ______/ /____/ /
  / /  __/ /___  /_____  / _____  / 
 / /__/ / ____/  _____/ / /    / /  
/______/_/      /______/_/    /_/    1.5.0-SNAPSHOT

Monitor and Manage Apache Geode
gfsh>start locator --name=locator1

gfsh>start server --name=server1

gfsh>create region --name=myRegion --type=REPLICATE --enable-statistics=true --entry-time-to-live-expiration=200 --region-time-to-live-expiration=2000
Member  | Status
------- | ---------------------------------------
server1 | Region "/myRegion" created on "server1"

gfsh>describe region --name=/myRegion
..........................................................
Name            : myRegion
Data Policy     : replicate
Hosting Members : server1

Non-Default Attributes Shared By Hosting Members  

 Type  |            Name             | Value
------ | --------------------------- | ---------------
Region | entry-time-to-live.timeout  | 200
       | data-policy                 | REPLICATE
       | region-time-to-live.timeout | 2000
       | size                        | 0
       | scope                       | distributed-ack
       | statistics-enabled          | true

希望这对您有所帮助。 干杯。