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

huangapple go评论71阅读模式
英文:

Get list of caches which lost partitions in Apache Ignite

问题

我想使用脚本来重置丢失的分区 control.sh --cache reset_lost_partitions <cacheName1,cacheName2,...> ,但我不知道如何获取需要重置的缓存列表。是否有一种通过 bash 获取缓存列表的方法?

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

英文:

I wanna use script to reset lost partitions control.sh --cache reset_lost_partitions &lt;cacheName1,cacheName2,...&gt;, but I don't know how to get the list of caches which I need to reset. Is there any way to get the list of caches by bash?

I tried to get the list using .NET app, but unsuccessful.

答案1

得分: 1

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

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

英文:

You should see them in the logs. The message should be similar to the following:

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

Where MY_CACHE is the cache name.

Alternatively, you can run the following command to check partition states:

control.sh --cache distribution null

To map cacheId to the cache name you can use the following system view:

select * from SYS.CACHES

huangapple
  • 本文由 发表于 2023年3月7日 18:47:10
  • 转载请务必保留本文链接:https://go.coder-hub.com/75660998.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定