This is an automated email from the ASF dual-hosted git repository.
morrysnow 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 3eca457edd0 [fix](statistics)Fix set partition loaded replayer try to
write edit log bug (#29395)
3eca457edd0 is described below
commit 3eca457edd00fab3b2b6cd878dd1769b9c3c25ea
Author: Jibing-Li <[email protected]>
AuthorDate: Tue Jan 2 19:38:34 2024 +0800
[fix](statistics)Fix set partition loaded replayer try to write edit log
bug (#29395)
While observer or checkpointer replay SetPartitionLoaded log, it shouldn't
try to write the log. This pr is to fix the bug.
---
.../src/main/java/org/apache/doris/statistics/AnalysisManager.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/fe/fe-core/src/main/java/org/apache/doris/statistics/AnalysisManager.java
b/fe/fe-core/src/main/java/org/apache/doris/statistics/AnalysisManager.java
index 63ae94e37d9..7c246b45875 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/statistics/AnalysisManager.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/statistics/AnalysisManager.java
@@ -936,7 +936,7 @@ public class AnalysisManager implements Writable {
// Set to true means new partition loaded data
public void setNewPartitionLoaded(long tblId) {
TableStatsMeta statsStatus = idToTblStats.get(tblId);
- if (statsStatus != null) {
+ if (statsStatus != null && Env.getCurrentEnv().isMaster() &&
!Env.isCheckpointThread()) {
statsStatus.newPartitionLoaded.set(true);
logCreateTableStats(statsStatus);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]