-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
[Discovery Service] Remove module and all its references #12119
[Discovery Service] Remove module and all its references #12119
Conversation
Looks like bouncy castle dependencies/licenses are making the "misc" tests fail. I think part of it is that the discovery module was the only module that required The error message for the test is:
When I inspect the server distribution after building from this branch, I see the following:
It looks like the 1.61 jars are coming from a grpc dependency. After running
I'm not familiar enough with Maven or with our build to know the right way to solve this. On one hand, @lhotari - can you help me figure out the right next step here? |
@jiazhai - I notice that you wrote the documentation on Bouncy Castle dependencies. Would you be able to take a look at this PR to verify that I've followed the right paradigm for using the right version of Bouncy Castle? Because the dependency on |
/pulsarbot run-failure-checks |
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.
LGTM
I left one minor comment
distribution/server/pom.xml
Outdated
@@ -160,6 +154,16 @@ | |||
<artifactId>simpleclient_log4j2</artifactId> | |||
</dependency> | |||
|
|||
<!-- This dependency was previously brought in transitively through the pulsar-discovery-service module. When the |
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.
we do not need this comment in the source code
if this is useless it is better to drop it in a major release like 2.9. |
@eolivelli - makes sense to me. I am fine merging this before we cut branch-2.9. Regarding the comment in the pom.xml, which I removed in my most recent commit, I want to make sure that adding the bouncy castle dependency to the server pom.xml is the correct solution. The discovery service was the dependency forcing our version of bouncy castle to 1.69. Without the discovery service module as a dependency, the |
Yes, I think that was the correct fix. Merging this. |
* [Discovery Service] Remove module and all its references * Explicitly declare dependency on bouncy-castle-bc in server pom.xml * Remove unnecessary comment
Please #15225 rollback |
…che#12119)" This reverts commit 8c4c630.
Motivation
As discussed on the dev and users mailing lists, the Pulsar Discovery Service no longer appears necessary.
As further justification, when inspecting maven central, the discovery service jar is only a dependency for other Pulsar modules, which only use the discovery service for tests. https://mvnrepository.com/artifact/org.apache.pulsar/pulsar-discovery-service/usages
This PR removes the Pulsar Discovery Service. It leaves old references to the discovery service in the versioned docs, as the discovery service is still available for those versions of Pulsar.
Modifications
pulsar-discovery-service
modulebin/pulsar
bin/pulsar-daemon
conf/discovery.conf
filepulsar-discovery-service
module frompom.xml
filespulsar-broker
module (only removed tests for the discovery service module)Verifying this change
I built the project and will ensure tests pass. The one concern might be that I've deleted too many tests. I only deleted tests with explicit references to the removed module. It'd be worth a second check from someone else, too.
Does this pull request potentially affect one of the following parts:
If
yes
was chosen, please highlight the changesI've described the changes above. We're removing a module, so it will break certain parts of our API. The module appears unused, and we've taken steps to discuss this on the mailing list to ensure there is proper discussion and notice.
Documentation
I've updated the docs by removing references to the discovery service. It'd be a good idea to make sure this gets mentioned in the change log when we release the major version that includes this change.