This is an automated email from the ASF dual-hosted git repository.
w41ter 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 e7435bd5b5c [fix](binlog) Fix NPE when recover binlogs (#39909)
(#39911)
e7435bd5b5c is described below
commit e7435bd5b5c1fe122307b4082d4438c4131964ee
Author: walter <[email protected]>
AuthorDate: Mon Aug 26 19:42:04 2024 +0800
[fix](binlog) Fix NPE when recover binlogs (#39909) (#39911)
Cherry-pick #39909
The field partition ID of DropPartitionInfo was added in PR:
apache/doris#37196, the old version doesn't contain this field so it
will be null.
---
.../src/main/java/org/apache/doris/persist/DropPartitionInfo.java | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git
a/fe/fe-core/src/main/java/org/apache/doris/persist/DropPartitionInfo.java
b/fe/fe-core/src/main/java/org/apache/doris/persist/DropPartitionInfo.java
index a7482f23d77..d5f6db56a27 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/persist/DropPartitionInfo.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/persist/DropPartitionInfo.java
@@ -79,7 +79,9 @@ public class DropPartitionInfo implements Writable {
}
public Long getPartitionId() {
- return partitionId;
+ // the field partition ID was added in PR: apache/doris#37196, the old
version doesn't
+ // contain this field so it will be null.
+ return partitionId == null ? -1 : partitionId;
}
public String getPartitionName() {
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]