Skip to content
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

[WFLY-10434] Make interceptor order arrangements for CachedConnection… #11335

Merged
merged 1 commit into from Jun 19, 2018

Conversation

fl4via
Copy link
Contributor

@fl4via fl4via commented Jun 8, 2018

…ManagerSetupProcessor setup action, making sure it runs after CMTTxInterceptor
Jira: https://issues.jboss.org/browse/WFLY-10434

@dmlloyd please review, what do you think of using the already existent priority() for this?
@stuartwdouglas any opinion on this is also welcome, since you wrote the SetupAction code.

Thanks!

if (!ejbSetupActions.isEmpty()) {
configuration.addTimeoutViewInterceptor(AdditionalSetupInterceptor.factory(ejbSetupActions), InterceptorOrder.View.EE_SETUP);
for (SetupAction setupAction : ejbSetupActions) {
configuration.addTimeoutViewInterceptor(new ImmediateInterceptorFactory(new AdditionalSetupInterceptor(setupAction)), setupAction.priority() == 0? InterceptorOrder.View.EE_SETUP : setupAction.priority());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't really like this. Interceptor priorities have to be unique, so this has the potential to fail if the setup actions have the same priority, and I don't think it is really clear what is going on.

Can't we just change the InterceptorOrder.View.EE_SETUP priority to be inside the transaction? Looking at the code the only other subsystem to use this is the EE concurrency stuff, and I think that should not matter if it is executed inside the transaction.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@stuartwdouglas I was afraid of having future consequences if I changed the priority value, because I was unsure what were the reasons, if any, for having EE_SETUP priority set to its current value. If you think it is okay, I'll do as you're suggesting. Thanks!

…t CachedConnectionManager setup action is invoked inside the transaction context
@fl4via
Copy link
Contributor Author

fl4via commented Jun 12, 2018

Retest this please

@fl4via
Copy link
Contributor Author

fl4via commented Jun 12, 2018

@stuartwdouglas the requested changes are done and all checks are passing. Thanks for your review!

@stuartwdouglas stuartwdouglas merged commit a1e3e11 into wildfly:master Jun 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants