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

Fixes Dynamic Configuration bug where TaskType Constraint match always failed #898

Merged
merged 2 commits into from
Oct 26, 2020

Conversation

mastermanu
Copy link
Member

@mastermanu mastermanu commented Oct 26, 2020

Our Dynamic Configuration File-based logic was comparing a value that is typically supplied as an integer / string to an enum value, which would never match. As a result, any constraint that specified TaskQueueType would never match, which means that this constraint setting never worked.

This PR fixes this issue by converting the TaskType enum filter into its String equivalent, so the user can specify "Activity" or "Workflow" (case-sensitive)

Not in scope for this PR:

  • Allowing multiple ways to specify TaskType (e.g. 1 or 2 instead of "Workflow" or "Activity") - this requires a heavier rewrite of Dynamic Config.
  • Assumed defaults for Constrained Values - this also requires a very significant change for dynamic config

Verified this test on a local development environment and via unit-tests.

The breaking change risk here is minimal. The taskType constraint never worked properly in the first place. But, if someone has tested their system with the taskType constraint set (incorrectly assuming the override was applied), when they roll out this fix, they could see a change in the number of task queue partitions for this scenario, which, while not having a functional impact, could lead to a observed difference in performance.

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.

DynamicConfig TaskQueuePartitions TaskType Constraint compares ENUM to a string/int, so it never matches
3 participants