Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Add threadpool prefix and change threadpool name #56

Merged

Conversation

kaituo
Copy link
Member

@kaituo kaituo commented Mar 6, 2020

When we run AD and SQL plugin together, ES fails to start with registering a setting twice error. AD's threadpool setting prefix is null. Since SQL plugin uses null as well, we would have a register setting conflict because we cannot register setting [null.size] twice. The fix is to give our threadpool a setting name prefix instead of null

Also, this threadpool would be used by other components besides AD job. Rename it to make it not ad job specific.

Testing done:

  • run all unit and integration tests
  • ES can start with AD and SQL plugin enabled

Issue #, if available:

Description of changes:

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

When we run AD and SQL plugin together, ES fails to start with registering a setting twice error. AD's threadpool setting prefix is null. Since SQL plugin uses null as well, we would have a register setting conflict because we cannot register setting [null.size] twice. The fix is to give our threadpool a setting name prefix instead of null

Also, this threadpool would be used by other components besides AD job.  Rename it to make it not ad job specific.

Testing done:
- run all unit and integration tests
@kaituo kaituo requested review from ylwu-amzn and jngz-es March 6, 2020 05:23
@kaituo kaituo self-assigned this Mar 6, 2020
AD_JOB_THEAD_POOL_QUEUE_SIZE,
null
AD_THEAD_POOL_QUEUE_SIZE,
"opendistro.ad.ad_thread_pool"
Copy link
Contributor

Choose a reason for hiding this comment

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

How about we use "opendistro.ad."+ AD_THREAD_POOL_NAME ? So we can know exactly which threadpool it maps to.

Copy link
Member Author

Choose a reason for hiding this comment

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

good idea. Changed.

Copy link
Contributor

@ylwu-amzn ylwu-amzn left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks for the change.

@kaituo kaituo merged commit b4f3486 into opendistro-for-elasticsearch:development Mar 7, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants