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:
parent
9042ce6fe2
commit
3a2706d104
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue