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 2021/09/15 09:12:47 UTC
[GitHub] [skywalking] wu-sheng commented on a change in pull request #7719: Fix ser/deserializers of ES 7.8, search query, aggregation, order, terms
wu-sheng commented on a change in pull request #7719:
URL: https://github.com/apache/skywalking/pull/7719#discussion_r708996783
##########
File path: oap-server/server-storage-plugin/storage-elasticsearch-plugin/src/main/java/org/apache/skywalking/oap/server/storage/plugin/elasticsearch/base/StorageEsInstaller.java
##########
@@ -73,7 +73,12 @@ protected boolean isExists(Model model) throws StorageException {
boolean exist = esClient.isExistsTemplate(tableName)
&& esClient.isExistsIndex(TimeSeriesUtils.latestWriteIndexName(model));
final Optional<IndexTemplate> template = esClient.getTemplate(tableName);
- if (exist && template.isPresent() && IndexController.INSTANCE.isMetricModel(model)) {
+
+ if ((exist && !template.isPresent()) || (!exist && template.isPresent())) {
+ throw new Error("Bug!!! ElasticSearch client query template result is not consistent");
Review comment:
```suggestion
throw new Error("[Bug warning]ElasticSearch client query template result is not consistent. Please file an issue to Apache SkyWalking.(https://github.com/apache/skywalking/issues)");
```
--
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