xy720 commented on code in PR #68541:
URL: https://github.com/apache/doris/pull/68541#discussion_r4121853089
##########
fe/fe-core/src/main/java/org/apache/doris/catalog/PartitionInfo.java:
##########
@@ -405,6 +407,22 @@ public void addPartition(long partitionId, DataProperty
dataProperty,
idToInMemory.put(partitionId, isInMemory);
}
+ @Override
+ public void gsonPostProcess() throws IOException {
+ // Every live partition has a data property, so storage policy entries
without one
+ // belong to dropped partitions.
+ if (idToStoragePolicy == null || idToDataProperty == null) {
+ return;
+ }
+ int before = idToStoragePolicy.size();
+ idToStoragePolicy.keySet().retainAll(idToDataProperty.keySet());
Review Comment:
https://github.com/apache/doris/pull/68558
--
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]