You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by GitBox <gi...@apache.org> on 2022/11/25 04:27:44 UTC

[GitHub] [skywalking] wankai123 opened a new pull request, #10026: Fix Elasticsearch storage: In `No-Sharding Mode`, add specific analyzer to the template before index creation to avoid update index error.

wankai123 opened a new pull request, #10026:
URL: https://github.com/apache/skywalking/pull/10026

    In the `No-Sharding Mode`:
    https://skywalking.apache.org/docs/main/next/en/faq/new-elasticsearch-storage-option-explanation-in-9.2.0/
   The merged models required analyzer or not are shared the same index.
   When adding a new model(with an analyzer) into an existed index by update will be failed, if the index is without analyzer settings.
   To avoid this, we should add the analyzer settings to the template before index creation.
   
   - [ ] If this pull request closes/resolves/fixes an existing issue, replace the issue number. Closes #<issue number>.
   - [X] Update the [`CHANGES` log](https://github.com/apache/skywalking/blob/master/docs/en/changes/changes.md).
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [skywalking] wu-sheng commented on a diff in pull request #10026: Fix Elasticsearch storage: In `No-Sharding Mode`, add specific analyzer to the template before index creation to avoid update index error.

Posted by GitBox <gi...@apache.org>.
wu-sheng commented on code in PR #10026:
URL: https://github.com/apache/skywalking/pull/10026#discussion_r1032019272


##########
oap-server/server-storage-plugin/storage-elasticsearch-plugin/src/main/java/org/apache/skywalking/oap/server/storage/plugin/elasticsearch/base/StorageEsInstaller.java:
##########
@@ -264,8 +264,25 @@ protected Map<String, Object> createSetting(Model model) throws StorageException
         return setting;
     }
 
-    private Map getAnalyzerSetting(List<ModelColumn> analyzerTypes) throws StorageException {
+    //In the `No-Sharding Mode`:
+    //https://skywalking.apache.org/docs/main/next/en/faq/new-elasticsearch-storage-option-explanation-in-9.2.0/
+    //The merged models required analyzer or not are shared the same index.
+    //When adding a new model(with an analyzer) into an existed index by update will be failed, if the index is without analyzer settings.
+    //To avoid this, we should add the analyzer settings to the template before index creation.

Review Comment:
   ```suggestion
       //https://skywalking.apache.org/docs/main/next/en/faq/new-elasticsearch-storage-option-explanation-in-9.2.0/
       //Some of models require a analyzer to run match query, some others are not.
       //They are merged into the one physical index(metrics-all or record-all)
       //When adding a new model(with an analyzer) into an existed index by update will be failed, if the index is without analyzer settings.
       //To avoid this, add the analyzer settings to the template before index creation.
   ```
   



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [skywalking] wu-sheng merged pull request #10026: Fix Elasticsearch storage: In `No-Sharding Mode`, add specific analyzer to the template before index creation to avoid update index error.

Posted by GitBox <gi...@apache.org>.
wu-sheng merged PR #10026:
URL: https://github.com/apache/skywalking/pull/10026


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org