This is an automated email from the ASF dual-hosted git repository.
morrysnow pushed a commit to branch branch-3.1
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-3.1 by this push:
new d48f65c33ae branch-3.1: [fix](cloud) Not log npe in
unprotectUpdateCloudReplica when partition dropped #55165 (#55219)
d48f65c33ae is described below
commit d48f65c33aed22c77f815851a3030049dc42b725
Author: github-actions[bot]
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Mon Aug 25 16:09:15 2025 +0800
branch-3.1: [fix](cloud) Not log npe in unprotectUpdateCloudReplica when
partition dropped #55165 (#55219)
Cherry-picked from #55165
Co-authored-by: deardeng <[email protected]>
---
.../java/org/apache/doris/cloud/datasource/CloudInternalCatalog.java | 4 ++++
1 file changed, 4 insertions(+)
diff --git
a/fe/fe-core/src/main/java/org/apache/doris/cloud/datasource/CloudInternalCatalog.java
b/fe/fe-core/src/main/java/org/apache/doris/cloud/datasource/CloudInternalCatalog.java
index a889505b3b3..a513cf0705d 100644
---
a/fe/fe-core/src/main/java/org/apache/doris/cloud/datasource/CloudInternalCatalog.java
+++
b/fe/fe-core/src/main/java/org/apache/doris/cloud/datasource/CloudInternalCatalog.java
@@ -1032,6 +1032,10 @@ public class CloudInternalCatalog extends
InternalCatalog {
private void unprotectUpdateCloudReplica(OlapTable olapTable,
UpdateCloudReplicaInfo info) {
LOG.debug("replay update a cloud replica {}", info);
Partition partition = olapTable.getPartition(info.getPartitionId());
+ if (partition == null) {
+ LOG.warn("replay update cloud replica, unknown partition {}, may
be dropped", info.toString());
+ return;
+ }
MaterializedIndex materializedIndex =
partition.getIndex(info.getIndexId());
try {
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]