Skip to content

Commit

Permalink
Merge pull request #1628 from AYue-94/fix/query_instanceMeta
Browse files Browse the repository at this point in the history
fix: When use redis store event, incorrect key was used to query the …
  • Loading branch information
Sherlockhan authored Sep 25, 2024
2 parents cb6d6a4 + fcd5c19 commit fb8b875
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,6 @@ public class CommonConst {
*/
public static final int DEFAULT_REDIS_PORT = 6379;

/**
* redis hash key of instance meta
*/
public static final String REDIS_HASH_KEY_OF_INSTANCE_META = "sermant_meta";

/**
* redis event key
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ public void cleanOverDueEventTimerTask() {
@Override
public QueryResultEventInfoEntity getDoNotifyEvent(Event event) {
QueryResultEventInfoEntity queryResultEventInfoEntity = new QueryResultEventInfoEntity();
String instanceMeta = redisOperation.hget(CommonConst.REDIS_HASH_KEY_OF_INSTANCE_META, event.getMetaHash());
String instanceMeta = redisOperation.get(event.getMetaHash());
if (!DbUtils.isEmpty(instanceMeta)) {
InstanceMeta agentInstanceMeta = JSONObject.parseObject(instanceMeta, InstanceMeta.class);
queryResultEventInfoEntity = DbUtils.aggregationEvent(event, agentInstanceMeta);
Expand Down

0 comments on commit fb8b875

Please sign in to comment.