Skip to content

Fix Elasticsearch storage installer: ignore check index settings for updating in no-init running mode#9954

Merged
wu-sheng merged 4 commits intoapache:masterfrom
wankai123:no-init-ignore-setting-check
Nov 12, 2022
Merged

Fix Elasticsearch storage installer: ignore check index settings for updating in no-init running mode#9954
wu-sheng merged 4 commits intoapache:masterfrom
wankai123:no-init-ignore-setting-check

Conversation

@wankai123
Copy link
Member

@wankai123 wankai123 added bug Something isn't working and you are sure it's a bug! backend OAP backend related. labels Nov 12, 2022
@wankai123 wankai123 added this to the 9.3.0 milestone Nov 12, 2022
Comment on lines +115 to +123
boolean containsMapping = structures.containsMapping(tableName, createMapping(model));
boolean compareIndexSetting = structures.compareIndexSetting(tableName, createSetting(model));
// "no-init mode" no needs to check index settings for updating,
// to avoid conflicts between "init mode and no-init mode" index settings configurations
if (RunningMode.isNoInitMode()) {
exist = containsMapping;
} else {
exist = containsMapping && compareIndexSetting;
}
Copy link
Member

Choose a reason for hiding this comment

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

A similar suggestion as above.

…src/main/java/org/apache/skywalking/oap/server/storage/plugin/elasticsearch/base/StorageEsInstaller.java

Co-authored-by: 吴晟 Wu Sheng <wu.sheng@foxmail.com>
@wu-sheng
Copy link
Member

@wankai123 I didn't change it locally, so don't know whether it is 100% correct.

…src/main/java/org/apache/skywalking/oap/server/storage/plugin/elasticsearch/base/StorageEsInstaller.java
@kezhenxu94
Copy link
Member

The changes LGTM

@wu-sheng wu-sheng merged commit 4b88d85 into apache:master Nov 12, 2022
@wankai123 wankai123 deleted the no-init-ignore-setting-check branch June 9, 2023 01:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backend OAP backend related. bug Something isn't working and you are sure it's a bug!

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] OAP server is blocked from booting in no-init mode(9.3 dev only) in certain cases.

3 participants