gengjun-git opened a new issue #5138: URL: https://github.com/apache/incubator-doris/issues/5138
**Describe the bug** create colocate table with empty partition will cause fe crash **To Reproduce** Steps to reproduce the behavior: create table as below: ``` CREATE TABLE `test` ( `date` date, `userid` varchar(128) ) ENGINE=OLAP DUPLICATE KEY(`date`, `userid`) PARTITION BY RANGE(`date`)() DISTRIBUTED BY HASH(`userid`) BUCKETS 8 PROPERTIES ( "colocate_with" = "test" ); ``` and error occurs ``` ERROR 1064 (HY000): Unexpected exception: No value present ``` We executed the sql again, it succeeded. But fe cannot be restarted. ``` 2020-12-24 11:30:35,857 ERROR (stateListener|69) [EditLog.loadJournal():816] Operation Type 94 java.lang.IllegalStateException: null at com.google.common.base.Preconditions.checkState(Preconditions.java:492) ~[spark-dpp-1.0.0.jar:1.0.0] at org.apache.doris.catalog.ColocateTableIndex.replayAddTableToGroup(ColocateTableIndex.java:449) ~[palo-fe.jar:3.4.0] at org.apache.doris.persist.EditLog.loadJournal(EditLog.java:628) [palo-fe.jar:3.4.0] at org.apache.doris.catalog.Catalog.replayJournal(Catalog.java:2504) [palo-fe.jar:3.4.0] at org.apache.doris.catalog.Catalog.transferToMaster(Catalog.java:1175) [palo-fe.jar:3.4.0] at org.apache.doris.catalog.Catalog.access$1100(Catalog.java:264) [palo-fe.jar:3.4.0] at org.apache.doris.catalog.Catalog$4.runOneCycle(Catalog.java:2421) [palo-fe.jar:3.4.0] at org.apache.doris.common.util.Daemon.run(Daemon.java:116) [palo-fe.jar:3.4.0] ``` **Expected behavior** A clear and concise description of what you expected to happen. **Screenshots** If applicable, add screenshots to help explain your problem. **Desktop (please complete the following information):** - OS: [e.g. iOS] - Browser [e.g. chrome, safari] - Version [e.g. 22] **Smartphone (please complete the following information):** - Device: [e.g. iPhone6] - OS: [e.g. iOS8.1] - Browser [e.g. stock browser, safari] - Version [e.g. 22] **Additional context** Add any other context about the problem here. ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org