Skip to content

skip cluster-scoped follower commands#129

Merged
sdseaton merged 2 commits intomainfrom
feature/follower_fix
Dec 16, 2025
Merged

skip cluster-scoped follower commands#129
sdseaton merged 2 commits intomainfrom
feature/follower_fix

Conversation

@sdseaton
Copy link
Copy Markdown
Contributor

@sdseaton sdseaton commented Dec 16, 2025

Adds support for disabling cluster-scoped follower commands by setting env var "DISABLE_FOLLOWER_COMMANDS=true".

Copilot AI review requested due to automatic review settings December 16, 2025 15:23
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR introduces a feature gate to skip cluster-scoped follower database commands during the rollout process. The change adds a guard condition that prevents GenerateFollowerChanges from executing any follower database change logic when follower cluster commands are not supported in the current context.

Key Changes:

  • Added early return in GenerateFollowerChanges method to skip follower change generation when not supported
  • Introduced SupportsFollowerClusterCommands() helper method that currently returns false
  • Added debug logging to indicate when follower changes are being skipped

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread KustoSchemaTools/Changes/DatabaseChanges.cs Outdated
Comment thread KustoSchemaTools/Changes/DatabaseChanges.cs
Comment thread KustoSchemaTools/Changes/DatabaseChanges.cs
Copy link
Copy Markdown
Contributor

@ikewalker ikewalker left a comment

Choose a reason for hiding this comment

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

LGTM!

@sdseaton sdseaton merged commit d252781 into main Dec 16, 2025
5 checks passed
@sdseaton sdseaton deleted the feature/follower_fix branch December 16, 2025 15:46
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.

3 participants