Skip to content

Commit 6552cff

Browse files
committed
[#12434] Remove unnecessary agent interpolation
1 parent 48d600e commit 6552cff

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

web/src/main/java/com/navercorp/pinpoint/web/applicationmap/appender/server/StatisticsServerGroupListFactory.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@
3737
public class StatisticsServerGroupListFactory implements ServerGroupListFactory {
3838
private final ServerGroupListDataSource serverGroupListDataSource;
3939

40+
private final boolean agentInfoInterpolation = false;
41+
4042
public StatisticsServerGroupListFactory(ServerGroupListDataSource serverGroupListDataSource) {
4143
this.serverGroupListDataSource = Objects.requireNonNull(serverGroupListDataSource, "serverGroupListDataSource");
4244
}
@@ -45,8 +47,10 @@ public StatisticsServerGroupListFactory(ServerGroupListDataSource serverGroupLis
4547
public ServerGroupList createWasNodeInstanceList(Node wasNode, long timestamp) {
4648
ServerGroupList serverGroupList = createWasNodeInstanceListFromHistogram(wasNode, timestamp);
4749
if (serverGroupList.getServerGroupList().isEmpty()) {
48-
// When there is no transaction information, agentInfo information is used.
49-
serverGroupList = createWasNodeInstanceListFromAgentInfo(wasNode, timestamp);
50+
if (agentInfoInterpolation) {
51+
// When there is no transaction information, agentInfo information is used.
52+
serverGroupList = createWasNodeInstanceListFromAgentInfo(wasNode, timestamp);
53+
}
5054
}
5155
return serverGroupList;
5256
}

web/src/main/java/com/navercorp/pinpoint/web/applicationmap/appender/server/datasource/AgentInfoServerGroupListDataSource.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public ServerGroupList createServerGroupList(Node node, long timestamp) {
6464
Application application = node.getApplication();
6565
Set<AgentInfo> agentInfos = agentInfoService.getAgentsByApplicationNameWithoutStatus(application.getName(), timestamp);
6666
if (CollectionUtils.isEmpty(agentInfos)) {
67-
logger.warn("agentInfo not found. application:{}", application);
67+
logger.info("agentInfo not found. application:{}", application);
6868
return ServerGroupList.empty();
6969
}
7070

0 commit comments

Comments
 (0)