Skip to content

OAK-12143 - Fix AsyncLaneSwitcher not switching lanes when async-previous pre-set#2812

Open
antonhosgood wants to merge 1 commit intoapache:OAK-12143from
antonhosgood:OAK-12143
Open

OAK-12143 - Fix AsyncLaneSwitcher not switching lanes when async-previous pre-set#2812
antonhosgood wants to merge 1 commit intoapache:OAK-12143from
antonhosgood:OAK-12143

Conversation

@antonhosgood
Copy link
Contributor

Currently, switchLane returns early whenever async-previous is set, assuming the lane has already been switched. However, async-previous can legitimately appear in user-provided index definitions (e.g. copied from a running system), causing the switch to be skipped incorrectly and the index to be silently dropped from reindexing.

The fix tightens the early-return check: only skip if async-previous is present and async already equals the target lane. If async-previous is present but async does not match the target lane, the property is treated as stale, discarded, and the switch proceeds normally.

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.

1 participant