未验证 提交 3a2706d1 编写于 作者: huazi_7818's avatar huazi_7818 提交者: GitHub

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: Nyuanguohua <yuanguohua@fin-shine.com>
Co-authored-by: wu-sheng's avatar吴晟 Wu Sheng <wu.sheng@foxmail.com>
上级 9042ce6f
......@@ -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
......
......@@ -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);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册