Fix storage-influxdb-plugin serviceCode query (#5792)

* Fix storage-influxdb-plugin serviceCode query

* Update CHANGES.md

Add the changelog for the PR as I have time.

Co-authored-by: yuanguohua <yuanguohua@fin-shine.com>
Co-authored-by: 吴晟 Wu Sheng <wu.sheng@foxmail.com>
This commit is contained in:
gerry 2020-11-04 19:39:06 +08:00 committed by GitHub
parent 9042ce6fe2
commit 3a2706d104
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -27,6 +27,7 @@ Release Notes.
* Fix the excessive timeout period set by the kubernetes-client.
* Fix deadlock problem when using elasticsearch-client-7.0.0.
* Fix storage-jdbc isExists not set dbname.
* Fix `searchService` bug in the InfluxDB storage implementation.
#### UI

View File

@ -137,7 +137,7 @@ public class MetadataQuery implements IMetadataQueryDAO {
WhereQueryImpl<SelectQueryImpl> query = select(ID_COLUMN, NAME)
.from(client.getDatabase(), ServiceTraffic.INDEX_NAME)
.where(eq(InfluxConstants.TagName.NODE_TYPE, String.valueOf(NodeType.Normal.value())));
query.and(eq(ServiceTraffic.NODE_TYPE, serviceCode));
query.and(eq(ServiceTraffic.NAME, serviceCode));
return buildServices(query).get(0);
}