-
Notifications
You must be signed in to change notification settings - Fork 14k
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-15854: Move Java classes from kafka.server
to the server
module
#14796
KAFKA-15854: Move Java classes from kafka.server
to the server
module
#14796
Conversation
srcDirs = ["src/test/java"] | ||
} | ||
} | ||
} |
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.
Redundant.
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.
Should we create a ticket to get rid of this from all sub-projects? If you like, we can do it as part of this PR itself.
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 can file a ticket. Some of them are actually necessary as they add additional directories.
@@ -1670,6 1714,10 @@ project(':server-common') { | |||
checkstyle { | |||
configProperties = checkstyleConfigProperties("import-control-server-common.xml") | |||
} | |||
|
|||
javadoc { | |||
enabled = false |
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 don't have public classes in server-common
, so make it explicit that javadoc should not be published.
@@ -14,7 14,7 @@ | |||
* See the License for the specific language governing permissions and | |||
* limitations under the License. | |||
*/ | |||
package kafka.metrics; | |||
package org.apache.kafka.server.metrics; |
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.
@junrao @apoorvmittal10 Note that I have moved these recently introduced classes to this new module.
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.
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.
Can you please share the PRs where this is being discussed now?
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.
Please add a package-info.java file in the server which can help new contributors to the code understand what components goes in the server
module. At some stage we probably need a component level diagram of Kafka code base to improve onboarding to code base.
<allow pkg="java.security" /> | ||
<allow pkg="javax.net.ssl" /> | ||
<allow pkg="javax.security" /> | ||
<allow pkg="org.ietf.jgss" /> |
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.
thank you for cleaning the import-control files!
srcDirs = ["src/test/java"] | ||
} | ||
} | ||
} |
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.
Should we create a ticket to get rid of this from all sub-projects? If you like, we can do it as part of this PR itself.
This is an existing issue, see apache#14794
648a6c9
to
f8c784a
Compare
@divijvaidya Thanks for the review. I added a basic |
Please feel free to merge after CI is successful. |
I ran the tests a few times and the JDK 8 build passed, the failures for the other builds are unrelated:
|
…dule (apache#14796) We only move Java classes that have minimal or no dependencies on Scala classes in this PR. Details: * Configured `server` module in build files. * Changed `ControllerRequestCompletionHandler` to be an interface since it has no implementations. * Cleaned up various import control files. * Minor build clean-ups for `server-common`. * Disabled `testAssignmentAggregation` when executed with Java 8, this is an existing issue (see apache#14794). For broader context on this change, please check: * KAFKA-15852: Move server code from `core` to `server` module Reviewers: Divij Vaidya <[email protected]>
…dule (apache#14796) We only move Java classes that have minimal or no dependencies on Scala classes in this PR. Details: * Configured `server` module in build files. * Changed `ControllerRequestCompletionHandler` to be an interface since it has no implementations. * Cleaned up various import control files. * Minor build clean-ups for `server-common`. * Disabled `testAssignmentAggregation` when executed with Java 8, this is an existing issue (see apache#14794). For broader context on this change, please check: * KAFKA-15852: Move server code from `core` to `server` module Reviewers: Divij Vaidya <[email protected]>
…dule (apache#14796) We only move Java classes that have minimal or no dependencies on Scala classes in this PR. Details: * Configured `server` module in build files. * Changed `ControllerRequestCompletionHandler` to be an interface since it has no implementations. * Cleaned up various import control files. * Minor build clean-ups for `server-common`. * Disabled `testAssignmentAggregation` when executed with Java 8, this is an existing issue (see apache#14794). For broader context on this change, please check: * KAFKA-15852: Move server code from `core` to `server` module Reviewers: Divij Vaidya <[email protected]>
We only move Java classes that have minimal or no dependencies on Scala classes in this PR.
Details:
server
module in build files.ControllerRequestCompletionHandler
to be an interface since it has no implementations.server-common
.testAssignmentAggregation
when executed with Java 8, this is an existing issue (see MINOR: Fix unstable sorting in AssignmentsManagerTest #14794).For broader context on this change, please check:
core
toserver
moduleCommitter Checklist (excluded from commit message)