nextdreamblue opened a new issue, #20099:
URL: https://github.com/apache/doris/issues/20099

   ### Search before asking
   
   - [X] I had searched in the 
[issues](https://github.com/apache/doris/issues?q=is%3Aissue) and found no 
similar issues.
   
   
   ### Version
   
   master
   
   ### What's Wrong?
   
   ```sql
   CREATE TABLE test_hash
   (
       k1 DATE,
       k2 DECIMAL(10, 2) DEFAULT "10.5",
       k3 CHAR(10) COMMENT "string column",
       k4 INT NOT NULL DEFAULT "1" COMMENT "int column"
   )
   PARTITION BY RANGE(k1)
   (
       PARTITION p1 VALUES LESS THAN ("2020-02-01"),
       PARTITION p2 VALUES LESS THAN ("2020-03-01"),
       PARTITION p3 VALUES LESS THAN ("2020-04-01")
   )
   DISTRIBUTED BY HASH(k2) BUCKETS 32
   PROPERTIES (
       "replication_num" = "1"
   );
   
   truncate table `test_hash` partitions (p1, P1);
   ```
   
   when replay audit log, fe will down
   
   ```
   2023-05-26 15:17:32,539 ERROR (stateListener|88) 
[EditLog.loadJournal():1024] Operation Type 118
   java.lang.NullPointerException: null
           at 
org.apache.doris.datasource.InternalCatalog.replayTruncateTable(InternalCatalog.java:2747)
 ~[doris-fe.jar:1.2-SNAPSHOT]
           at org.apache.doris.catalog.Env.replayTruncateTable(Env.java:4753) 
~[doris-fe.jar:1.2-SNAPSHOT]
           at org.apache.doris.persist.EditLog.loadJournal(EditLog.java:545) 
~[doris-fe.jar:1.2-SNAPSHOT]
           at org.apache.doris.catalog.Env.replayJournal(Env.java:2485) 
~[doris-fe.jar:1.2-SNAPSHOT]
           at org.apache.doris.catalog.Env.transferToMaster(Env.java:1316) 
~[doris-fe.jar:1.2-SNAPSHOT]
           at org.apache.doris.catalog.Env.access$1200(Env.java:277) 
~[doris-fe.jar:1.2-SNAPSHOT]
           at org.apache.doris.catalog.Env$4.runOneCycle(Env.java:2401) 
~[doris-fe.jar:1.2-SNAPSHOT]
           at org.apache.doris.common.util.Daemon.run(Daemon.java:116) 
~[doris-fe.jar:1.2-SNAPSHOT]
   ```
   
   
   ### What You Expected?
   
   replay success
   
   ### How to Reproduce?
   
   _No response_
   
   ### Anything Else?
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [X] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
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: commits-unsubscr...@doris.apache.org.apache.org

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

Reply via email to