zhoujinsong commented on code in PR #3811:
URL: https://github.com/apache/amoro/pull/3811#discussion_r2415837821


##########
amoro-ams/src/main/java/org/apache/amoro/server/table/DefaultTableService.java:
##########
@@ -182,6 +182,13 @@ public void initialize() {
         continue;
       }
       List<TableRuntimeState> states = 
statesMap.get(tableRuntimeMeta.getTableId());
+      // if first time states will be null can't be initial table runtime
+      if (states == null) {
+        TableRuntimeState state = new TableRuntimeState();

Review Comment:
   Maybe we can just initialize an empty list here, 
https://github.com/apache/amoro/blob/master/amoro-ams/src/main/java/org/apache/amoro/server/table/DefaultTableRuntimeStore.java#L137
 will generate required states and put them in the database.



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to