-
Notifications
You must be signed in to change notification settings - Fork 467
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
[WFCORE-6601][WFCORE-6607][WFCORE-6608] ModuleSpecification dependency tracking fixes #5768
Conversation
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.
Added minor optional comments that, in my opinion, should not prevent merging it. This change has been confirmed that fix WFCORE-6606.
I also wondering
- Does it deserve a test case using EARs (it can be added later)?
- There is no follow up for the deprecation, I guess, we can get it done for the next WildFly release, but not sure what is our cadence regarding deprecations and removals.
server/src/main/java/org/jboss/as/server/deployment/module/ModuleSpecification.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/jboss/as/server/deployment/module/ModuleSpecification.java
Show resolved
Hide resolved
…ication dependencies Deprecate the accessors for the list views. Deprecate the direct access to the mutable user dependency set; replace with a remove method.
7d0437b
to
8bafe46
Compare
@yersan and @scottmarlow You've approved this but I just updated it a fair bit. The changes don't affect how the existing WF code interact with this though, so the good TCK results won't be affected.
to
That's a much better API to replace the intended use of getMutableUserDependencies(), which was to allow ApplicationClientDependencyProcessor to remove some dependencies that match its rules. Now it can pass in the rules and let ModuleSpecification deal with the internal state. This last change shouldn't affect any existing behavior, as nothing calls this remove method yet (other than the new test). |
I really like this |
module.addSystemDependencies(moduleSpecification.getSystemDependencies()); | ||
module.addLocalDependencies(moduleSpecification.getLocalDependencies()); | ||
for(ModuleDependency dep : moduleSpecification.getUserDependencies()) { | ||
module.addSystemDependencies(moduleSpecification.getSystemDependenciesSet()); |
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 didn't mention this before but I really like the reduction in (potential for apps that have duplicate module dependencies) memory use by using Set with these changes.
Thanks @bstansberry and @scottmarlow ! |
https://issues.redhat.com/browse/WFCORE-6601
https://issues.redhat.com/browse/WFCORE-6607
https://issues.redhat.com/browse/WFCORE-6608
The expectation is this will also fix https://issues.redhat.com/browse/WFCORE-6606, but resolving that should depend upon a successful TCK run.