JingsongLi commented on code in PR #1351:
URL: https://github.com/apache/incubator-paimon/pull/1351#discussion_r1226058440


##########
paimon-core/src/main/java/org/apache/paimon/mergetree/MergeTreeWriter.java:
##########
@@ -227,7 +227,8 @@ private void flushWriteBuffer(boolean 
waitForLatestCompaction, boolean forcedFul
     @Override
     public CommitIncrement prepareCommit(boolean waitCompaction) throws 
Exception {
         flushWriteBuffer(waitCompaction, false);
-        trySyncLatestCompaction(waitCompaction || commitForceCompact);
+        trySyncLatestCompaction(
+                waitCompaction || commitForceCompact || 
compactManager.shouldWaitCompaction());

Review Comment:
   Good point!



##########
paimon-core/src/main/java/org/apache/paimon/operation/AbstractFileStoreWrite.java:
##########
@@ -272,6 +272,13 @@ public void restore(List<State> states) {
                             state.commitIncrement,
                             compactExecutor());
             notifyNewWriter(writer);
+
+            try {

Review Comment:
   revert here, restore is just for schema change, we don't need to create a 
compaction.



-- 
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