linliu-code commented on code in PR #13642:
URL: https://github.com/apache/hudi/pull/13642#discussion_r2254736067


##########
hudi-client/hudi-client-common/src/main/java/org/apache/hudi/table/upgrade/UpgradeDowngrade.java:
##########
@@ -275,4 +303,42 @@ protected Pair<Map<ConfigProperty, String>, 
List<ConfigProperty>> downgrade(Hood
       throw new HoodieUpgradeDowngradeException(fromVersion.versionCode(), 
toVersion.versionCode(), false);
     }
   }
+
+  /**
+   * Checks if any handlers in the upgrade/downgrade path require running 
rollback and compaction before starting process.
+   *
+   * @param fromVersion the current table version
+   * @param toVersion   the target table version
+   */
+  private void performRollbackAndCompactionIfRequired(HoodieTableVersion 
fromVersion, HoodieTableVersion toVersion, boolean isUpgrade) {

Review Comment:
   Should we always do rollbackAndCompact for all upgrade/downgrade? What are 
the cons? @nsivabalan , @yihua 



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