You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by mo...@apache.org on 2023/06/06 00:57:17 UTC

[doris] branch branch-1.1-lts updated: [branch-1.1][Fix](dyncmic-partition) Fix replay TruncateTableInfo missing bucket size. (#20464)

This is an automated email from the ASF dual-hosted git repository.

morningman pushed a commit to branch branch-1.1-lts
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/branch-1.1-lts by this push:
     new 8fdfc0cc7f [branch-1.1][Fix](dyncmic-partition) Fix replay TruncateTableInfo missing bucket size. (#20464)
8fdfc0cc7f is described below

commit 8fdfc0cc7f481a240bcd4a03f7490c242a951b49
Author: Xiangyu Wang <du...@gmail.com>
AuthorDate: Tue Jun 6 08:57:10 2023 +0800

    [branch-1.1][Fix](dyncmic-partition) Fix replay TruncateTableInfo missing bucket size. (#20464)
    
    When replay TruncateTableInfo, the nested field bucketNum of RandomDistributionInfo does not have @SerializedName annotation, so after truncate, the bucket size of slave FE is 0.
---
 .../main/java/org/apache/doris/catalog/RandomDistributionInfo.java    | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/fe/fe-core/src/main/java/org/apache/doris/catalog/RandomDistributionInfo.java b/fe/fe-core/src/main/java/org/apache/doris/catalog/RandomDistributionInfo.java
index 72fbf06a02..7d2db3774f 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/catalog/RandomDistributionInfo.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/catalog/RandomDistributionInfo.java
@@ -20,6 +20,8 @@ package org.apache.doris.catalog;
 import org.apache.doris.analysis.DistributionDesc;
 import org.apache.doris.analysis.RandomDistributionDesc;
 
+import com.google.gson.annotations.SerializedName;
+
 import java.io.DataInput;
 import java.io.DataOutput;
 import java.io.IOException;
@@ -28,7 +30,7 @@ import java.io.IOException;
  * Random partition.
  */
 public class RandomDistributionInfo extends DistributionInfo {
-    
+    @SerializedName(value = "bucketNum")
     private int bucketNum;
 
     public RandomDistributionInfo() {


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org