Skip to content

Conversation

cshuo
Copy link
Contributor

@cshuo cshuo commented Sep 16, 2025

Change Logs

  • Fix coordinator commit classloader to use userCode classloader
  • Disable metric registering for HFile writer

Impact

Fix coordinator commit classloader

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

low

Documentation Update

Describe any necessary documentation update if there is any new feature, config, or user-facing change. If not, put "none".

  • 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

@cshuo cshuo changed the title Fix coordinator commit classloader [MINOR] Fix coordinator commit classloader Sep 16, 2025
@github-actions github-actions bot added the size:M PR with lines of changes in (100, 300] label Sep 16, 2025
@cshuo cshuo force-pushed the fix_classloader_102 branch from 25daa24 to 55fb21d Compare September 16, 2025 08:36
@cshuo cshuo changed the title [MINOR] Fix coordinator commit classloader [MINOR] Fix classloader for commit operation in flink coordinator Sep 16, 2025
@hudi-bot
Copy link

CI report:

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

@danny0405 danny0405 changed the title [MINOR] Fix classloader for commit operation in flink coordinator fix: Fix classloader for commit operation in flink coordinator Sep 17, 2025
@danny0405 danny0405 changed the title fix: Fix classloader for commit operation in flink coordinator fix: fix classloader for commit operation in flink coordinator Sep 17, 2025
// multiple userCode context classloaders may register same region server metric which leads to validating exception in
// `DefaultMetricsSystem#newSourceName`. So here we set the init mode for hadoop metrics as `STANDBY` to disable metric
// registering for HFile writer.
System.setProperty("hadoop.metrics.init.mode", "STANDBY");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does the issue exist on master? guess no because Hbase jar has been removed? Also there is no need to set it up every time for MDT commit? Just set up once in coordinator #initMetadataTable should be enough?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, the issue only exists before 1.1.

We can put the setting up in #initMetadataTable, but my concern is hadoop.metrics.init.mode is not only for hbase metric, it's a hadoop configuration, and not sure whether it'll affect the initialization of other component's metric, so I incline to delay setting this configuration until the HFile writer initialization is required.

@cshuo cshuo changed the title fix: fix classloader for commit operation in flink coordinator Fix classloader for commit operation in flink coordinator Sep 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:M PR with lines of changes in (100, 300]

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants