获取在 Apache Ignite 中丢失分区的缓存列表

问题描述 投票:0回答:1

我想用脚本来重置丢失的分区

control.sh --cache reset_lost_partitions <cacheName1,cacheName2,...>
,但我不知道如何获取我需要重置的缓存列表。有什么方法可以通过 bash 获取缓存列表吗?

我尝试使用 .NET 应用程序获取列表,但没有成功。

c# .net docker ignite gridgain
1个回答
0
投票

您应该在日志中看到它们。该消息应类似于以下内容:

Detected lost partitions [grp=MY_CACHE, parts=[10, 219, 232, 471, 598, 682, 836, 869, 916, 1081, 1215, 1303, 1380, 1794, 1962, 1980

其中

MY_CACHE
是缓存名称。

或者,您可以运行以下命令来检查分区状态:

control.sh --cache distribution null

要将 cacheId 映射到缓存名称,您可以使用以下系统视图

select * from SYS.CACHES
© www.soinside.com 2019 - 2024. All rights reserved.