This is an automated email from the ASF dual-hosted git repository.

yiguolei pushed a commit to branch branch-2.0
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/branch-2.0 by this push:
     new 5bb9950fc65 delete-min-load-replica-num (#31674)
5bb9950fc65 is described below

commit 5bb9950fc65714bfaad2a78c16e8599490ce1042
Author: yujun <yu.jun.re...@gmail.com>
AuthorDate: Sat Mar 2 01:13:43 2024 +0800

    delete-min-load-replica-num (#31674)
---
 .../import/import-advanced/min-load-replica-num.md | 101 --------------------
 .../Create/CREATE-TABLE.md                         |   4 -
 docs/sidebars.json                                 |   7 --
 .../import/import-advanced/min-load-replica-num.md | 102 ---------------------
 .../Create/CREATE-TABLE.md                         |   4 -
 5 files changed, 218 deletions(-)

diff --git 
a/docs/en/docs/data-operate/import/import-advanced/min-load-replica-num.md 
b/docs/en/docs/data-operate/import/import-advanced/min-load-replica-num.md
deleted file mode 100644
index 70f9c0a087b..00000000000
--- a/docs/en/docs/data-operate/import/import-advanced/min-load-replica-num.md
+++ /dev/null
@@ -1,101 +0,0 @@
----
-{
-    "title": "Min Load Replica Num",
-    "language": "en"
-}
----
-
-<!--
-Licensed to the Apache Software Foundation (ASF) under one
-or more contributor license agreements.  See the NOTICE file
-distributed with this work for additional information
-regarding copyright ownership.  The ASF licenses this file
-to you under the Apache License, Version 2.0 (the
-"License"); you may not use this file except in compliance
-with the License.  You may obtain a copy of the License at
-
-  http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing,
-software distributed under the License is distributed on an
-"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-KIND, either express or implied.  See the License for the
-specific language governing permissions and limitations
-under the License.
--->
-
-# Min Load Replica Num
-
-Importing data requires more than half of the replicas to be written 
successfully. However, it is not flexible enough and may cause inconvenience in 
some scenarios.
-
-For example, in the case of two replicas, to import data, both replicas need 
to be written successfully. This means that no replica is allowed to be 
unavailable during the data import process. This greatly affects the 
availability of the cluster.
-
-In order to solve the above problems, Doris allows users to set the minimum 
number of write replicas. For the task of importing data, when the number of 
replicas it successfully writes is greater than or equal to the minimum number 
of replicas written, the import is successful.
-
-## Usage
-
-### Min load replica num for single table
-
-You can set the table property `min_load_replica_num` for a single olap table. 
The valid value of this property must be greater than 0 and not exceed 
`replication_num`(the number of replicas of the table). Its default value is 
-1, indicating that the property is not enabled.
-
-The `min_load_replica_num` of the table can be set when creating the table.
-
-```sql
-CREATE TABLE test_table1
-(
-    k1 INT,
-    k2 INT
-)
-DUPLICATE KEY(k1)
-DISTRIBUTED BY HASH(k1) BUCKETS 5
-PROPERTIES
-(
-    'replication_num' = '2',
-    'min_load_replica_num' = '1'
-);
-```
-
-For an existing table, you can use `ALTER TABLE` to modify its 
`min_load_replica_num`.
-
-```sql
-ALTER TABLE test_table1
-SET ( 'min_load_replica_num' = '1');
-```
-
-You can use `SHOW CREATE TABLE` to view the table property 
`min_load_replica_num`.
-
-```SQL
-SHOW CREATE TABLE test_table1;
-```
-
-The PROPERTIES of the output will contain `min_load_replica_num`. e.g.
-
-```text
-Create Table: CREATE TABLE `test_table1` (
-  `k1` int(11) NULL,
-  `k2` int(11) NULL
-) ENGINE=OLAP
-DUPLICATE KEY(`k1`)
-COMMENT 'OLAP'
-DISTRIBUTED BY HASH(`k1`) BUCKETS 5
-PROPERTIES (
-"replication_allocation" = "tag.location.default: 2",
-"min_load_replica_num" = "1",
-"storage_format" = "V2",
-"light_schema_change" = "true",
-"disable_auto_compaction" = "false",
-"enable_single_replica_compaction" = "false"
-);
-```
-
-### Global min load replica num for all tables
-
-You can set FE configuration item `min_load_replica_num` for all olap tables. 
The valid value of this configuration item must be greater than 0. Its default 
value is -1, which means that the global minimum number of load replicas is not 
enabled.
-
-For a table, if the table property `min_load_replica_num` is valid (>0), then 
the table will ignore the global configuration `min_load_replica_num`. 
Otherwise, if the global configuration `min_load_replica_num` is valid (>0), 
then the minimum number of load replicas for the table will be equal to 
`min(FE.conf.min_load_replica_num, table.replication_num/2 + 1)`.
-
-For viewing and modification of FE configuration items, you can refer to 
[here](../../../admin-manual/config/fe-config.md).
-
-### Other cases
-
-If the table property `min_load_replica_num` is not enabled (<=0), and the 
global configuration `min_load_replica_num` is not enabled(<=0), then the data 
import still needs to be successfully written to the majority replica. At this 
point, the minimum number of write replicas for the table is equal to 
`table.replication_num/2 + 1`.
diff --git 
a/docs/en/docs/sql-manual/sql-reference/Data-Definition-Statements/Create/CREATE-TABLE.md
 
b/docs/en/docs/sql-manual/sql-reference/Data-Definition-Statements/Create/CREATE-TABLE.md
index 83bcf3079fe..66011370034 100644
--- 
a/docs/en/docs/sql-manual/sql-reference/Data-Definition-Statements/Create/CREATE-TABLE.md
+++ 
b/docs/en/docs/sql-manual/sql-reference/Data-Definition-Statements/Create/CREATE-TABLE.md
@@ -315,10 +315,6 @@ Set table properties. The following attributes are 
currently supported:
 
     Set the copy distribution according to Tag. This attribute can completely 
cover the function of the `replication_num` attribute.
 
-* `min_load_replica_num`
-
-    The minimum required successful replica num for loading data. The default 
value is `-1`. If set less than or equal to 0, loading data requires a majority 
replicas to succeed.
-
 * `is_being_synced`  
 
     Used to identify whether this table is copied by CCR and is being 
synchronized by syncer. The default is `false`.  
diff --git a/docs/sidebars.json b/docs/sidebars.json
index 7d9c642a0d4..6d82abef678 100644
--- a/docs/sidebars.json
+++ b/docs/sidebars.json
@@ -101,13 +101,6 @@
                                 
"data-operate/import/import-way/insert-into-manual",
                                 
"data-operate/import/import-way/load-json-format"
                             ]
-                        },
-                        {
-                            "type": "category",
-                            "label": "Import Advanced",
-                            "items": [
-                                
"data-operate/import/import-advanced/min-load-replica-num"
-                            ]
                         }
                     ]
                 },
diff --git 
a/docs/zh-CN/docs/data-operate/import/import-advanced/min-load-replica-num.md 
b/docs/zh-CN/docs/data-operate/import/import-advanced/min-load-replica-num.md
deleted file mode 100644
index f629268d913..00000000000
--- 
a/docs/zh-CN/docs/data-operate/import/import-advanced/min-load-replica-num.md
+++ /dev/null
@@ -1,102 +0,0 @@
----
-{
-    "title": "最小写入副本数",
-    "language": "zh-CN"
-}
----
-
-<!--
-Licensed to the Apache Software Foundation (ASF) under one
-or more contributor license agreements.  See the NOTICE file
-distributed with this work for additional information
-regarding copyright ownership.  The ASF licenses this file
-to you under the Apache License, Version 2.0 (the
-"License"); you may not use this file except in compliance
-with the License.  You may obtain a copy of the License at
-
-  http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing,
-software distributed under the License is distributed on an
-"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-KIND, either express or implied.  See the License for the
-specific language governing permissions and limitations
-under the License.
--->
-
-# 最小写入副本数
-
-默认情况下,数据导入要求至少有超过半数的副本写入成功,导入才算成功。然而,这种方式不够灵活,在某些场景会带来不便。
-
-举个例子,对于两副本情况,按上面的多数派原则,要想导入数据,则需要这两个副本都写入成功。这意味着,在导入数据过程中,不允许任意一个副本不可用。这极大影响了集群的可用性。
-
-为了解决以上问题,Doris允许用户设置最小写入副本数(Min Load Replica 
Num)。对导入数据任务,当它成功写入的副本数大于或等于最小写入副本数时,导入即成功。
-
-## 用法
-
-### 单个表的最小写入副本数
-
-可以对单个olap表,设置最小写入副本数,并用表属性`min_load_replica_num`来表示。该属性的有效值要求大于0且不超过表的副本数。其默认值为-1,表示不启用该属性。
-
-可以在创建表时设置表的`min_load_replica_num`。
-
-```sql
-CREATE TABLE test_table1
-(
-    k1 INT,
-    k2 INT
-)
-DUPLICATE KEY(k1)
-DISTRIBUTED BY HASH(k1) BUCKETS 5
-PROPERTIES
-(
-    'replication_num' = '2',
-    'min_load_replica_num' = '1'
-);
-```
-
-对一个已存在的表,可以使用语句`ALTER TABLE`来修改它的`min_load_replica_num`。
-
-```sql
-ALTER TABLE test_table1
-SET ( 'min_load_replica_num' = '1');
-```
-
-可以使用语句`SHOW CREATE TABLE`来查看表的属性`min_load_replica_num`。
-
-```SQL
-SHOW CREATE TABLE test_table1;
-```
-
-输出结果的PROPERTIES中将包含`min_load_replica_num`。例如:
-
-```text
-Create Table: CREATE TABLE `test_table1` (
-  `k1` int(11) NULL,
-  `k2` int(11) NULL
-) ENGINE=OLAP
-DUPLICATE KEY(`k1`)
-COMMENT 'OLAP'
-DISTRIBUTED BY HASH(`k1`) BUCKETS 5
-PROPERTIES (
-"replication_allocation" = "tag.location.default: 2",
-"min_load_replica_num" = "1",
-"storage_format" = "V2",
-"light_schema_change" = "true",
-"disable_auto_compaction" = "false",
-"enable_single_replica_compaction" = "false"
-);
-```
-
-### 全局最小写入副本数
-
-可以对所有olap表,设置全局最小写入副本数,并用FE的配置项`min_load_replica_num`来表示。该配置项的有效值要求大于0。其默认值为-1,表示不开启全局最小写入副本数。
-
-对一个表,如果表属性`min_load_replica_num`有效(即大于0),那么该表将会忽略全局配置`min_load_replica_num`。否则,如果全局配置`min_load_replica_num`有效(即大于0),那么该表的最小写入副本数将等于`min(FE.conf.min_load_replica_num,table.replication_num/2
 + 1)`。
-
-对于FE配置项的查看和修改,可以参考[这里](../../../admin-manual/config/fe-config.md)。
-
-### 其余情况
-
-如果没有开启表属性`min_load_replica_num`(即小于或者等于0),也没有设置全局配置`min_load_replica_num`(即小于或等于0),那么数据的导入仍需多数派副本写入成功才算成功。此时,表的最小写入副本数等于`table.replicatition_num/2
 + 1`。
-
diff --git 
a/docs/zh-CN/docs/sql-manual/sql-reference/Data-Definition-Statements/Create/CREATE-TABLE.md
 
b/docs/zh-CN/docs/sql-manual/sql-reference/Data-Definition-Statements/Create/CREATE-TABLE.md
index c34c7f709e9..3e835eaf50d 100644
--- 
a/docs/zh-CN/docs/sql-manual/sql-reference/Data-Definition-Statements/Create/CREATE-TABLE.md
+++ 
b/docs/zh-CN/docs/sql-manual/sql-reference/Data-Definition-Statements/Create/CREATE-TABLE.md
@@ -298,10 +298,6 @@ UNIQUE KEY(k1, k2)
 
     根据 Tag 设置副本分布情况。该属性可以完全覆盖 `replication_num` 属性的功能。
 
-* `min_load_replica_num`
-
-    设定数据导入成功所需的最小副本数,默认值为-1。当该属性小于等于0时,表示导入数据仍需多数派副本成功。
-
 * `is_being_synced`  
 
     用于标识此表是否是被CCR复制而来并且正在被syncer同步,默认为 `false`。  


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to