Skip to content
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

Issue 30468 #30499

Closed
wants to merge 19 commits into from
Closed
Show file tree
Hide file tree
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
Expand Up @@ -553,9 +553,6 @@ public void addContentToIndex(final Contentlet parentContenlet,
.build()
: List.of(parentContenlet);

if (ElasticReadOnlyCommand.getInstance().isIndexOrClusterReadOnly()) {
ElasticReadOnlyCommand.getInstance().sendReadOnlyMessage();
}

if (parentContenlet.getIndexPolicy() == IndexPolicy.DEFER) {
queueApi.addContentletsReindex(contentToIndex);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5287,13 +5287,6 @@ private Contentlet internalCheckin(Contentlet contentlet,

if (!isCheckInSafe(contentRelationships)) {

if (contentlet.getBoolProperty(Contentlet.IS_TEST_MODE)) {
this.elasticReadOnlyCommand.executeCheck();
} else {
DotConcurrentFactory.getInstance().getSingleSubmitter()
.submit(() -> this.elasticReadOnlyCommand.executeCheck());
}

final String contentletIdentifier =
null != contentlet && null != contentlet.getIdentifier()
? contentlet.getIdentifier() : StringPool.NULL;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -213,8 +213,7 @@ private void runReindexLoop() {
bulkProcessor = finalizeReIndex(bulkProcessor);
}

if (!workingRecords.isEmpty() && !ElasticReadOnlyCommand.getInstance()
.isIndexOrClusterReadOnly()) {
if (!workingRecords.isEmpty()) {
Logger.debug(this,
"Found " + workingRecords + " index items to process");

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ private static void addElasticReadyOnlyMonitor (final Scheduler scheduler) {
final String triggerName = "trigger29";
final String triggerGroup = "group98";

if (Config.getBooleanProperty( "ENABLE_ELASTIC_READ_ONLY_MONITOR", true)) {
if (Config.getBooleanProperty( "ENABLE_ELASTIC_READ_ONLY_MONITOR", false)) {

final JobBuilder elasticReadOnlyMonitorJob = new JobBuilder().setJobClass(EsReadOnlyMonitorJob.class)
.setJobName(jobName)
Expand Down
Loading