Skip to content

Conversation

@wecharyu
Copy link
Contributor

What changes were proposed in this pull request?

  • Enable Multi-Release on hmsbench jar
  • Enable annotation processing on hmsbench jar

Why are the changes needed?

Fix bug to make hmsbench.jar workable.

Does this PR introduce any user-facing change?

No.

How was this patch tested?

Run benchmark test locally.

@sonarqubecloud
Copy link

@Aggarwal-Raghav
Copy link
Contributor

LGTM +1

<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
<mainClass>org.apache.hadoop.hive.metastore.tools.BenchmarkTool</mainClass>
<manifestEntries>
<Multi-Release>true</Multi-Release>
Copy link
Contributor

@Aggarwal-Raghav Aggarwal-Raghav Dec 29, 2025

Choose a reason for hiding this comment

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

I checked the dnsjava:3.6.1 jar and META-INF/versions/11 and META-INF/versions/18 were make sense to set Multi-Release to true.

Copy link
Member

Choose a reason for hiding this comment

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

I don't have full understanding of it. Could you explain a bit more please? what's if we dont add this entries

Copy link
Contributor

Choose a reason for hiding this comment

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

@dengzhhu653 , dnsjava-3.6.1 is a multi-release jar and after shading the Multi-Release tag is getting dropped from MANIFEST.MF.

I was able to repro the ERROR message present on the JIRA .
Screenshot 2026-01-05 at 12 25 22 PM

Before and after the fix,META-INF/MANIFEST.MF on hmsbench.jar
Screenshot 2026-01-05 at 12 50 10 PM

I didn't explored if there is any other way to fix this.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Here is a related discussion dnsjava/dnsjava#329, Multi-Release is a recommended solution.

@wecharyu
Copy link
Contributor Author

wecharyu commented Jan 2, 2026

@zhangbutao @dengzhhu653 @zabetak could you also take a look?

@dengzhhu653 dengzhhu653 merged commit 4e48dce into apache:master Jan 8, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants