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

dataroaring pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/master by this push:
     new b14880664bc [fix](cloud) ignore set replica version in cloud mode 
(#32040)
b14880664bc is described below

commit b14880664bc61bf41c34a3ac1cc07dbfbc87e735
Author: yujun <[email protected]>
AuthorDate: Mon Mar 11 14:59:52 2024 +0800

    [fix](cloud) ignore set replica version in cloud mode (#32040)
---
 fe/fe-core/src/main/java/org/apache/doris/catalog/Env.java        | 3 +++
 regression-test/suites/control_p0/set_replica_status.groovy       | 3 +++
 regression-test/suites/version_p0/test_set_replica_version.groovy | 3 +++
 3 files changed, 9 insertions(+)

diff --git a/fe/fe-core/src/main/java/org/apache/doris/catalog/Env.java 
b/fe/fe-core/src/main/java/org/apache/doris/catalog/Env.java
index 87b85ef03d3..b20a9a23ae8 100755
--- a/fe/fe-core/src/main/java/org/apache/doris/catalog/Env.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/catalog/Env.java
@@ -5742,6 +5742,9 @@ public class Env {
             Long lastFailedVersion, long updateTime, boolean isReplay)
             throws MetaNotFoundException {
         try {
+            if (Config.isCloudMode()) {
+                throw new MetaNotFoundException("not support modify replica 
version in cloud mode");
+            }
             TabletMeta meta = tabletInvertedIndex.getTabletMeta(tabletId);
             if (meta == null) {
                 throw new MetaNotFoundException("tablet does not exist");
diff --git a/regression-test/suites/control_p0/set_replica_status.groovy 
b/regression-test/suites/control_p0/set_replica_status.groovy
index 14051ba25a1..367893c8e9c 100644
--- a/regression-test/suites/control_p0/set_replica_status.groovy
+++ b/regression-test/suites/control_p0/set_replica_status.groovy
@@ -16,6 +16,9 @@
 // under the License.
 
 suite('test_set_replica_status', 'nonConcurrent') {
+    if (isCloudMode()) {
+        return
+    }
     setFeConfigTemporary([disable_tablet_scheduler:true]) {
         def tableName = 'test_set_replica_status_table'
         sql "DROP TABLE IF EXISTS ${tableName}"
diff --git a/regression-test/suites/version_p0/test_set_replica_version.groovy 
b/regression-test/suites/version_p0/test_set_replica_version.groovy
index 7151671b964..01130a819ab 100644
--- a/regression-test/suites/version_p0/test_set_replica_version.groovy
+++ b/regression-test/suites/version_p0/test_set_replica_version.groovy
@@ -16,6 +16,9 @@
 // under the License.
 
 suite("test_set_replica_version") {
+    if (isCloudMode()) {
+        return
+    }
     def tableName1 = "test_set_replica_version"
     sql """ DROP TABLE IF EXISTS ${tableName1} """
     sql """


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

Reply via email to