Skip to content

Conversation

@nsivabalan
Copy link
Contributor

What is the purpose of the pull request

HiveConf is getting eagerly loaded when HoodieSparkSqlWriter is touched. Strangely this happens only with spark2 and scala12 and not w/ any other profiles. And after inspecting the usages, looks like we don't really need to use HiveConfig in HoodieSparkSqlWriter, all we need is HadoopConf. So, have fixed the usage.

Brief change log

  • Removed unintended usage of HiveConf in HoodieSparkSqlWriter.

Verify this pull request

This pull request is already covered by existing tests.
Ran quick start locally and verified that w/ the patch, it succeeds. and w/o the patch, we get failure w/ spark2 and scala12.

Committer checklist

  • Has a corresponding JIRA in PR title & commit

  • Commit message is descriptive of the change

  • CI is green

  • Necessary doc changes done or have another open PR

  • For large changes, please consider breaking it into sub-tasks under an umbrella JIRA.

@nsivabalan nsivabalan added the priority:blocker Production down; release blocker label Apr 22, 2022

syncClientToolClassSet.foreach(impl => {
SyncUtilHelpers.runHoodieMetaSync(impl.trim, properties, hiveConf, fs, basePath.toString, baseFileFormat)
SyncUtilHelpers.runHoodieMetaSync(impl.trim, properties, fs.getConf, fs, basePath.toString, baseFileFormat)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Note to reviewer: Initially thought of adding docs here. but HiveConf is not really required, bcoz SyncUtilHelpers.runHoodieMetaSync() expects only HadoopConf as 3rd argument. So, didn't feel a need to add docs around the fix.

@nsivabalan
Copy link
Contributor Author

@hudi-bot run azure

@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

@nsivabalan nsivabalan merged commit 7523542 into apache:master Apr 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

priority:blocker Production down; release blocker

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants