Skip to content

Restrict topology scheduler strategies to the shipped strategies when no allowlist is configured - #8986

Open
rzo1 wants to merge 1 commit into
masterfrom
fix/scheduler-strategy-allowlist-default
Open

Restrict topology scheduler strategies to the shipped strategies when no allowlist is configured#8986
rzo1 wants to merge 1 commit into
masterfrom
fix/scheduler-strategy-allowlist-default

Conversation

@rzo1

@rzo1 rzo1 commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

nimbus.scheduler.strategy.class.whitelist had no entry in conf/defaults.yaml, and ReflectionUtils.newSchedulerStrategyInstance treated an unset list as "allow any class", so Nimbus instantiated whatever class a topology named in topology.scheduler.strategy.

Unset now means the six strategies that ship with Storm. An explicitly configured list, including an empty one, is honoured unchanged.

Behaviour change: a cluster running an out-of-tree strategy with no allowlist configured will start failing scheduling for those topologies. The exception previously carried no message at all and now names the refused class and the config key to add. Adds ReflectionUtilsTest.

@rzo1 rzo1 added this to the 3.1.0 milestone Aug 21, 2026
@rzo1 rzo1 self-assigned this Aug 21, 2026
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.

2 participants