Skip to content

log project in isReadyForHistoryBasedReindex() #4774

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

Merged
merged 1 commit into from
May 22, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -500,19 +500,25 @@ private boolean isReadyForHistoryBasedReindex() {

// History needs to be enabled for the history cache to work (see the comment below).
if (!project.isHistoryEnabled()) {
LOGGER.log(Level.FINEST, "history is disabled, will be indexed by directory traversal.");
LOGGER.log(Level.FINEST,
"history is disabled for project {0}, will be indexed by directory traversal.",
project);
return false;
}

// History cache is necessary to get the last indexed revision for given repository.
if (!env.isHistoryCache()) {
LOGGER.log(Level.FINEST, "history cache is disabled, will be indexed by directory traversal.");
LOGGER.log(Level.FINEST,
"history cache is disabled for project {0}, will be indexed by directory traversal.",
project);
return false;
}

// Per project tunable can override the global tunable, therefore env.isHistoryBasedReindex() is not checked.
if (!project.isHistoryBasedReindex()) {
LOGGER.log(Level.FINEST, "history-based reindex is disabled, will be indexed by directory traversal.");
LOGGER.log(Level.FINEST,
"history-based reindex is disabled for project {0}, will be indexed by directory traversal.",
project);
return false;
}