Skip to content

[HUDI-6433] Make the meta sync of streaming sink thread safe#9046

Merged
danny0405 merged 1 commit intoapache:masterfrom
danny0405:HUDI-6433
Jun 26, 2023
Merged

[HUDI-6433] Make the meta sync of streaming sink thread safe#9046
danny0405 merged 1 commit intoapache:masterfrom
danny0405:HUDI-6433

Conversation

@danny0405
Copy link
Contributor

@danny0405 danny0405 commented Jun 25, 2023

Change Logs

Prevent the meta sync happens concurrently from multi threads for the same meta client.

Here is the error trace thrown by Hive:

ConcurrentModificationException; Request ID: 0c9f3006-e454-4289-a91f-77722b0c5d18; Proxy: null)) Caused by:
org.apache.hudi.hive.HoodieHiveSyncException: Failed to get update last commit time synced to
Option{val=20230623090402189} Caused by: org.apache.hudi.exception.HoodieException: Got runtime exception when
hive syncing lks_mexc_t_spot_order_deal Caused by: org.apache.hudi.exception.HoodieException: Could not sync using
the meta sync class org.apache.hudi.hive.HiveSyncTool Exception in thread "main"
org.apache.spark.sql.streaming.StreamingQueryException: Could not sync using the meta sync class org.apache.hudi.hive.HiveSyncTool...

Impact

none

Risk level (write none, low medium or high below)

none

Documentation Update

Describe any necessary documentation update if there is any new feature, config, or user-facing change

  • The config description must be updated if new configs are added or the default value of the configs are changed
  • Any new feature or user-facing change requires updating the Hudi website. Please create a Jira ticket, attach the
    ticket number here and follow the instruction to make
    changes to the website.

Contributor's checklist

  • Read through contributor's guide
  • Change Logs and Impact were stated clearly
  • Adequate tests were added if applicable
  • CI passed

@hudi-bot
Copy link
Collaborator

CI report:

Bot commands @hudi-bot supports the following commands:
  • @hudi-bot run azure re-run the last Azure build

@danny0405 danny0405 merged commit f39327c into apache:master Jun 26, 2023
neverdizzy added a commit to neverdizzy/hudi that referenced this pull request Aug 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component:catalog-sync Catalog-sync related

Projects

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

3 participants