airborne12 commented on code in PR #71334:
URL: https://github.com/apache/doris/pull/71334#discussion_r4781057022


##########
regression-test/suites/clone_p0/test_clone_multi_analyzer_index_ids.groovy:
##########
@@ -0,0 +1,103 @@
+// 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.
+
+import org.apache.doris.regression.suite.ClusterOptions
+import org.apache.doris.regression.util.NodeType
+
+// An incremental clone must keep the ids of two inverted indexes on one 
column.
+suite('test_clone_multi_analyzer_index_ids', 'docker') {
+    def options = new ClusterOptions()
+    options.feConfigs += [
+        'disable_tablet_scheduler=true',
+        'tablet_checker_interval_ms=500',
+        'schedule_batch_size=1000',
+        'schedule_slot_num_per_hdd_path=1000',
+    ]
+    options.beConfigs += [
+        'report_tablet_interval_seconds=1',
+    ]
+
+    options.enableDebugPoints()
+    options.cloudMode = false
+    docker(options) {
+        def injectName = 'TxnManager.prepare_txn.random_failed'
+        def be = sql_return_maparray('show backends').get(0)
+        def addInject = { ->
+            GetDebugPoint().enableDebugPoint(be.Host, be.HttpPort as int, 
NodeType.BE, injectName, [percent:1.0])
+        }
+        def deleteInject = { ->
+            GetDebugPoint().disableDebugPoint(be.Host, be.HttpPort as int, 
NodeType.BE, injectName)
+        }
+        def lostReplica = { ->
+            sql_return_maparray('show tablets from clone_multi_analyzer').find 
{
+                it.BackendId.toLong().equals(be.BackendId.toLong())
+            }
+        }
+
+        sql """CREATE INVERTED INDEX ANALYZER IF NOT EXISTS clone_std_analyzer
+                PROPERTIES ("tokenizer" = "standard", "token_filter" = 
"lowercase")"""
+        sql """CREATE INVERTED INDEX ANALYZER IF NOT EXISTS clone_kw_analyzer
+                PROPERTIES ("tokenizer" = "keyword", "token_filter" = 
"lowercase")"""
+        sleep(10000)

Review Comment:
   Follow-up on the residual point in the second review: confirmed that 
`OlapScanNode` picks among queryable replicas and clamps a larger 
`use_fix_replica` to the last one. Fixed in c6c872210eb: the suite now waits 
until all three probe replicas hold version 2 with no failed version before it 
runs the analyzer probes, so each ordinal reaches a different BE. The suite 
passes locally on the fixed build.
   



-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to