danny0405 commented on a change in pull request #4561:
URL: https://github.com/apache/hudi/pull/4561#discussion_r782688663
##########
File path:
hudi-flink/src/main/java/org/apache/hudi/sink/StreamWriteOperatorCoordinator.java
##########
@@ -291,17 +296,11 @@ private void initHiveSync() {
private void syncHiveIfEnabled() {
if (tableState.syncHive) {
- this.hiveSyncExecutor.execute(this::syncHive, "sync hive metadata for
instant %s", this.instant);
+ LOG.info(String.format("sync hive metadata for instant %s",
this.instant));
+ hiveSyncContext.hiveSyncTool().syncHoodieTable();
}
Review comment:
Do not modify this method and add a new method `syncHiveSynchronously`
which is used for endInput event specially.
--
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]