无法停止然后使用磁盘存储启动 Geode 服务器
Cannot stop then start Geode server with a disk store
我用 example config 的磁盘存储启动 Geode。然后,如果我停止服务器并再次启动它,我会得到:
线程异常 "main" java.lang.IllegalStateException: Detected multiple disk store initialization files named "BACKUPDeal.if". This disk store directories must only contain one initialization file.
如果我删除 if 文件,则错误为:Exception in thread "main" java.lang.IllegalStateException: The init file "D:\deal\BACKUPdeal.if" does not exist. If it no longer exists then delete the following files to be able to create this disk store. Existing oplogs are: [D:\deal\BACKUPdeal_1.drf, D:\deal\BACKUPdeal_1.crf]
我在这里错过了什么?
example config 使用 2 个磁盘存储,我已将它们重命名为同一个存储,因此它无法从 1 个中初始化 2 个磁盘存储。为了解决这个问题,我从配置中删除了第二个磁盘存储像这样:
<disk-store name="deal"
compaction-threshold="40"
auto-compact="false"
allow-force-compaction="true"
max-oplog-size="512"
queue-size="10000"
time-interval="15"
write-buffer-size="65536"
disk-usage-warning-percentage="80"
disk-usage-critical-percentage="98">
<disk-dirs>
<disk-dir>d:\deal</disk-dir>
</disk-dirs>
</disk-store>
我用 example config 的磁盘存储启动 Geode。然后,如果我停止服务器并再次启动它,我会得到:
线程异常 "main" java.lang.IllegalStateException: Detected multiple disk store initialization files named "BACKUPDeal.if". This disk store directories must only contain one initialization file.
如果我删除 if 文件,则错误为:Exception in thread "main" java.lang.IllegalStateException: The init file "D:\deal\BACKUPdeal.if" does not exist. If it no longer exists then delete the following files to be able to create this disk store. Existing oplogs are: [D:\deal\BACKUPdeal_1.drf, D:\deal\BACKUPdeal_1.crf]
我在这里错过了什么?
example config 使用 2 个磁盘存储,我已将它们重命名为同一个存储,因此它无法从 1 个中初始化 2 个磁盘存储。为了解决这个问题,我从配置中删除了第二个磁盘存储像这样:
<disk-store name="deal"
compaction-threshold="40"
auto-compact="false"
allow-force-compaction="true"
max-oplog-size="512"
queue-size="10000"
time-interval="15"
write-buffer-size="65536"
disk-usage-warning-percentage="80"
disk-usage-critical-percentage="98">
<disk-dirs>
<disk-dir>d:\deal</disk-dir>
</disk-dirs>
</disk-store>