Skip to content

Fix listener TaskExecutor config #1104

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

garfailed
Copy link

Fixes #1103

I noticed there are missing unit tests for the listener container default property setup. I tried creating them, but it seems like a larger piece of work with all the factory / endpoint / default branches.

Should I work on that and create a separate PR for it, or would it not add that much value?

Copy the factory task executor when creating new listener
containers.

Signed-off-by: Daniel Szabo <[email protected]>
@@ -80,6 +81,7 @@ protected ConcurrentPulsarMessageListenerContainer<T> createContainerInstance(Pu
var containerProps = new PulsarContainerProperties();

// Map factory props (defaults) to the container props
containerProps.setConsumerTaskExecutor(factoryProps.getConsumerTaskExecutor());
Copy link
Author

Choose a reason for hiding this comment

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

I didn't do the null check mentioned in the issue comment because this will always be a new instance. Most other options also assume we just want to set the factory values.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unable to configure virtual thread based Executor
1 participant