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

ISPN-9422 Remove Worker Threads property #6773

Conversation

tristantarrant
Copy link
Member

@tristantarrant tristantarrant commented Mar 15, 2019

https://issues.jboss.org/browse/ISPN-9422

I've also made sure that different endpoints can actually have different defaults

@ryanemerson
Copy link
Contributor

@tristantarrant There are a few related test failures

@galderz
Copy link
Member

galderz commented May 20, 2019

@tristantarrant What's up with this?

@ryanemerson
Copy link
Contributor

It looks like the endpoint-x.xml test configs need to be updated as they still have worker-threads attributes.

@tristantarrant
Copy link
Member Author

Failures are unrelated

public static final AttributeDefinition<AdminOperationsHandler> ADMIN_OPERATION_HANDLER = AttributeDefinition.builder("admin-operation-handler", null, AdminOperationsHandler.class).immutable().build();
public static final AttributeDefinition<Boolean> ZERO_CAPACITY_NODE = AttributeDefinition.builder("zero-capacity-node", false).immutable().build();

// The default value can be overridden so it is the responsibility of each protocol to add it to the set
public static final AttributeDefinition<Integer> WORKER_THREADS = AttributeDefinition.builder("worker-threads", 1).immutable().build();
Copy link
Member

Choose a reason for hiding this comment

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

Should we keep the attribute definition in the base class at all? It's not very clear why the Memcached and REST servers should have only 1 worker thread, if each had its own definition it could also have a comment explaining the choice.

- Also ensure that different default worker thread defaults don't pollute the others
@tristantarrant tristantarrant force-pushed the ISPN-9422/remove_workerthreads_props branch from 9916b7d to 6d207f3 Compare July 30, 2019 19:17
@ryanemerson ryanemerson merged commit 426e14a into infinispan:master Aug 2, 2019
@tristantarrant tristantarrant deleted the ISPN-9422/remove_workerthreads_props branch January 21, 2020 07:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants