未验证 提交 88999300 编写于 作者: S songzhe 提交者: GitHub

fix influx query error #6056 (#6057)

* fix influx query error
* use InfluxConstants.NAME
上级 0950c1ad
......@@ -35,6 +35,7 @@ Release Notes.
* Fix H2 in-memory database table missing issues
* Add component ID for Python pyramid plugin server.
* Add component ID for NodeJS Axios plugin.
* Fix searchService method error in storage-influxdb-plugin.
#### UI
* Fix un-removed tags in trace query.
......
......@@ -125,7 +125,7 @@ public class MetadataQuery implements IMetadataQueryDAO {
final WhereQueryImpl<SelectQueryImpl> whereQuery = select(ID_COLUMN, NAME, ServiceTraffic.GROUP)
.from(client.getDatabase(), ServiceTraffic.INDEX_NAME)
.where(eq(TagName.NODE_TYPE, String.valueOf(NodeType.Normal.value())));
whereQuery.and(eq(ServiceTraffic.NAME, serviceCode));
whereQuery.and(eq(InfluxConstants.NAME, serviceCode));
return buildServices(whereQuery).get(0);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册