-
Notifications
You must be signed in to change notification settings - Fork 14.2k
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
KAFKA-18658: add import control for examples module #18812
base: trunk
Are you sure you want to change the base?
Conversation
@chia7712 PTAL |
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.
@gongxuanzhang thanks for this patch. maybe we can just add "used" public packages for now? that can streamline this PR. WDYT
<allow pkg="org.apache.kafka.common.serialization" /> | ||
<allow pkg="org.apache.kafka.common.network" /> | ||
<allow pkg="org.apache.kafka.common.annotation" /> | ||
<allow pkg="org.apache.kafka.common.utils" /> |
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.
this is not public APIs
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.
Now that these apis are open, there is no guarantee that future examples modules will not call them. I think we should add exposed apis to the "allow list".it just means it's allowed.
@chia7712
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.
org.apache.kafka.common.utils
is not public package, and example
module should use public APIs only. Otherwise, users may get encouraged by the example to use "internal" APIs
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.
You are right! I'm sorry for my carelessness. I changed the code,removed all markup unsupported apis . PTAL
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.
@gongxuanzhang maybe we can add the packages used by current examples? that can streamline this PR
<allow pkg="org.apache.kafka.streams.errors" /> | ||
<allow pkg="org.apache.kafka.streams.query" /> | ||
<allow pkg="org.apache.kafka.streams" /> | ||
<allow pkg="org.apache.kafka.server" /> |
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.
this is not public too
<allow pkg="org.apache.kafka.server" /> | ||
<allow pkg="org.apache.kafka.server.log.remote.storage" /> | ||
<allow pkg="org.apache.kafka.connect.tools" /> | ||
<allow pkg="org.apache.kafka.connect.util" /> |
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.
ditto
New update were made in accordance with this suggestion. |
fix https://issues.apache.org/jira/browse/KAFKA-18658