Repository navigation
Report locked indexes and index rebuilds at start-up - #6036
Draft
ramonsmits wants to merge 1 commit into
Draft
ramonsmits wants to merge 1 commit into
ramonsmits wants to merge 1 commit into
Conversation
ramonsmits
added this pull request to stack #6037
October 20, 2026 15:00
ramonsmits
force-pushed
the
search-engine-locked-index-reporting
branch
from
October 20, 2026 15:02
532637c to
48c4a37
Compare
| } | ||
| else | ||
| { | ||
| Logger.LogWarning("Index {IndexName} is locked ({LockMode}). Definition changes from new versions are not applied until the index is unlocked", index.IndexName, existing.LockMode); |
Member
There was a problem hiding this comment.
As is, this message could raise support questions for no good reason. What about:
Suggested change
| Logger.LogWarning("Index {IndexName} is locked ({LockMode}). Definition changes from new versions are not applied until the index is unlocked", index.IndexName, existing.LockMode); | |
| Logger.LogWarning("Index {IndexName} is locked ({LockMode}). This version of ServiceControl doesn't contain index changes. Definition changes from new versions are not applied until the index is unlocked", index.IndexName, existing.LockMode); |
Member
Author
There was a problem hiding this comment.
Agreed, however, I would try to make it shorter...
Something like "Index XX is locked but definition is full compatible"?
ramonsmits
commented
Oct 21, 2026
| { | ||
| if (changed) | ||
| { | ||
| Logger.LogError("Index {IndexName} is locked ({LockMode}) and its definition changed ({Changes}). The change is not applied until the index is unlocked", index.IndexName, existing.LockMode, changes); |
Member
Author
There was a problem hiding this comment.
@mauroservienti and I have discussed that maybe it is even better to throw an exception here as some part of application depends on this change. If this part is not critical then maybe its not that important to throw but we align on that we should throw here.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Partially addresses:
IndexDeploymentnow logs what it decides at start-up:Not included, left for #6015: the number of documents the rebuild covers, a setting that refuses a rebuild at start-up, and the same information in ServiceControl Management before the upgrade.