This is an automated email from the ASF dual-hosted git repository.
kxiao 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 c1c9848d1b [compatibility](optimizer) Make metadata compatible for
future version after 2.0.2 (#24610)
c1c9848d1b is described below
commit c1c9848d1b9dc5e35023b9d17716e9b94eb9b8aa
Author: AKIRA <[email protected]>
AuthorDate: Wed Sep 20 00:25:53 2023 +0900
[compatibility](optimizer) Make metadata compatible for future version
after 2.0.2 (#24610)
---
fe/fe-core/src/main/java/org/apache/doris/persist/EditLog.java | 8 ++++++++
.../src/main/java/org/apache/doris/persist/OperationType.java | 5 +++++
2 files changed, 13 insertions(+)
diff --git a/fe/fe-core/src/main/java/org/apache/doris/persist/EditLog.java
b/fe/fe-core/src/main/java/org/apache/doris/persist/EditLog.java
index fa2571dff9..17bd1f9fe4 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/persist/EditLog.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/persist/EditLog.java
@@ -1059,6 +1059,14 @@ public class EditLog {
env.getBinlogManager().addBarrierLog(log, logId);
break;
}
+ // For backward compatible with 2.0.3
+ case OperationType.OP_UPDATE_TABLE_STATS: {
+ break;
+ }
+ // For backward compatible with 2.0.3
+ case OperationType.OP_PERSIST_AUTO_JOB: {
+ break;
+ }
default: {
IOException e = new IOException();
LOG.error("UNKNOWN Operation Type {}", opCode, e);
diff --git
a/fe/fe-core/src/main/java/org/apache/doris/persist/OperationType.java
b/fe/fe-core/src/main/java/org/apache/doris/persist/OperationType.java
index 8b653478a3..87e04f86f0 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/persist/OperationType.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/persist/OperationType.java
@@ -314,6 +314,11 @@ public class OperationType {
public static final short OP_BARRIER = 436;
+ // For backward compatible with 2.0.3
+ public static final short OP_UPDATE_TABLE_STATS = 455;
+
+ // For backward compatible with 2.0.3
+ public static final short OP_PERSIST_AUTO_JOB = 456;
/**
* Get opcode name by op code.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]