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

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


The following commit(s) were added to refs/heads/master by this push:
     new 928379c  [Bug] Fix colocate group replay NPE (#3790)
928379c is described below

commit 928379c5d8927fcceebe1678500733cf9e3295dc
Author: kangkaisen <kangkai...@apache.org>
AuthorDate: Sun Jun 7 10:20:22 2020 +0800

    [Bug] Fix colocate group replay NPE (#3790)
    
    Group id should also be persisted for replaying
---
 fe/src/main/java/org/apache/doris/catalog/Catalog.java | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/fe/src/main/java/org/apache/doris/catalog/Catalog.java 
b/fe/src/main/java/org/apache/doris/catalog/Catalog.java
index 7391b32..940d3bd 100755
--- a/fe/src/main/java/org/apache/doris/catalog/Catalog.java
+++ b/fe/src/main/java/org/apache/doris/catalog/Catalog.java
@@ -5051,6 +5051,11 @@ public class Catalog {
                 // this table is not a colocate table, do nothing
                 return;
             }
+
+            // when replayModifyTableColocate, we need the groupId info
+            String fullGroupName = db.getId() + "_" + oldGroup;
+            groupId = 
colocateTableIndex.getGroupSchema(fullGroupName).getGroupId();
+
             colocateTableIndex.removeTable(table.getId());
             table.setColocateGroup(null);
         }


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

Reply via email to