英文:
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 <cacheName1,cacheName2,...>
, 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
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论