You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@doris.apache.org by GitBox <gi...@apache.org> on 2019/08/19 02:08:06 UTC

[GitHub] [incubator-doris] kangpinghuang commented on a change in pull request #1522: Support setting replica status as bad manually

kangpinghuang commented on a change in pull request #1522: Support setting replica status as bad manually
URL: https://github.com/apache/incubator-doris/pull/1522#discussion_r315017920
 
 

 ##########
 File path: docs/help/Contents/Administration/admin_set_stmt.md
 ##########
 @@ -0,0 +1,31 @@
+# ADMIN SET REPLICA STATUS
+## description
+
+    该语句用于设置指定副本的状态。
+    该命令目前仅用于手动将某些副本状态设置为 BAD,从而使得系统能够自动修复这些副本。
+
+    语法:
+
+        ADMIN SET REPLICA STATUS
+        PROPERTIES ("key" = "value", ...);
+
+        目前支持如下属性:
+        "tablet_id":必需。指定一个或多个 tablet id,逗号分隔。
+        "backend_id":必需。指定 Backend Id.
+        "status":必需。指定状态。当前仅支持 "bad"
+
+        如果指定的副本不存在,或状态已经是 bad,则会被忽略。
+
+## example
+
+    1. 设置 tablet 10003 在 BE 10001 上的副本状态为 bad。
+
+        ADMIN SET REPLICA STATUS PROPERTIES("tablet_id" = "10003", "backend_id" = "10001", "status" = "bad");
+
+    1. 设置 tablet 10003,10004,10005 在 BE 10001 上的副本状态为 bad。
 
 Review comment:
   Is there any chance to set the replica back to normal?
   Or how is the whole process of the operation?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@doris.apache.org
For additional commands, e-mail: dev-help@doris.apache.org