-
Notifications
You must be signed in to change notification settings - Fork 8.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HADOOP-19248. Protobuf code generate and replace should happen together #6975
Conversation
there is no issue with Line 148 in c593c17
|
💔 -1 overall
This message was automatically generated. |
@pan3793 Thank you for contribution! Personally, I'm not sure if this modification is feasible. I noticed differences between these two options on Maven's lifecycle page. I need other members to help verify. https://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html
|
also cc @vinayakumarb |
Looking at the maven stuff I'd consider the replacement part of the generation. The problem we have is that within a life-cycle phase I am not sure we can guarantee that operations happen. Having no specific phases is designed to eliminate the ambiguity. As it is: even if it currently works for maven locally, do we have any guarantees that it will continue to work? |
@steveloughran I understand your concerns, without explicitly setting dependencies between executions, the final execution set and order will always seem fragile.
According to https://maven.apache.org/plugins/maven-javadoc-plugin/javadoc-mojo.html,
I think the answer is yes, assuming all executions within a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm +1 for this. if it causes problems, we can see what can be done, but this does at least allow progress
LGTM +1. I’m currently organizing the JDK 17 build scripts and will verify this functionality again. Let's see if there are any other comments from other members. (wait an additional 1-2 days) @pan3793 Thanks for the contribution! @steveloughran Thanks for the review! |
kindly ping @slfan1989, can we move this ahead? |
@pan3793 merged...sorry, thought you had the permissions to do this. please can you do a PR for branch-3.4, push it up to see what yetus does there and I'll merge afterwards. thanks |
@steveloughran Thanks for reviewing pr! @pan3793 Thank for your contribution! Pan is a highly experienced developer with extensive community development experience. Although he is not yet a Hadoop committer, he has great potential to become one in the future. |
…er (apache#6975) Contributed by Cheng Pan
…er (#6975) Contributed by Cheng Pan
…er (apache#6975) Contributed by Cheng Pan
…er (apache#6975) Contributed by Cheng Pan
Description of PR
As part of HADOOP-16596, it switched from the vanilla protobuf to the shaded one, thus the generated code by
protobuf
should be modified (replace package name) before compiling and generating Javadoc.Currently, the protobuf code generate happens in
generate-sources
(and other similar phases), while the replace happens inprocess-sources
, this is OK for compiling but has problems for Javadoc.The above commands won't trigger replace, thus the final generated Javadoc refers to vanilla protobuf.
The
javadoc
(Java 8) also complains thatSeems things become worse in Java 17, such the error will fail the build immediately ...
How was this patch tested?
Tested with Java 8, macOS aarch64.
Javadoc warnings disappeared and the generated code is correct now.
For code changes:
LICENSE
,LICENSE-binary
,NOTICE-binary
files?