-
Notifications
You must be signed in to change notification settings - Fork 3.8k
[#12434] Add Node Interpolation #12506
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -40,6 +40,7 @@ | |||||
| import com.navercorp.pinpoint.web.applicationmap.rawdata.LinkDataDuplexMap; | ||||||
| import com.navercorp.pinpoint.web.security.ServerMapDataFilter; | ||||||
| import com.navercorp.pinpoint.web.service.ServerInstanceDatasourceService; | ||||||
| import com.navercorp.pinpoint.web.vo.Application; | ||||||
| import com.navercorp.pinpoint.web.vo.SearchOption; | ||||||
| import org.apache.logging.log4j.LogManager; | ||||||
| import org.apache.logging.log4j.Logger; | ||||||
|
|
@@ -126,7 +127,7 @@ | |||||
| ApplicationMapBuilder builder = createApplicationMapBuilder(option); | ||||||
| ApplicationMap map = builder.build(linkDataDuplexMap, buildTimeoutMillis); | ||||||
| if (map.getNodes().isEmpty()) { | ||||||
| map = builder.build(option.getSourceApplication(), buildTimeoutMillis); | ||||||
| map = buildForNoRequest(option.getSourceApplication(), builder); | ||||||
|
Check warning on line 130 in web/src/main/java/com/navercorp/pinpoint/web/applicationmap/service/MapServiceImpl.java
|
||||||
| } | ||||||
| watch.stop(); | ||||||
| if (logger.isInfoEnabled()) { | ||||||
|
|
@@ -138,19 +139,25 @@ | |||||
| return map; | ||||||
| } | ||||||
|
|
||||||
| private ApplicationMap buildForNoRequest(Application source, ApplicationMapBuilder builder) { | ||||||
| // If no nodes are found, we still need to build the map with the source application. | ||||||
| builder.includeServerInfo(newServerGroupListFactory(false)); | ||||||
|
||||||
| builder.includeServerInfo(newServerGroupListFactory(false)); | |
| builder.includeServerInfo(newServerGroupListFactory(USE_STATISTICS_AGENT_STATE_FOR_NO_REQUEST)); |
Check warning on line 145 in web/src/main/java/com/navercorp/pinpoint/web/applicationmap/service/MapServiceImpl.java
Codecov / codecov/patch
web/src/main/java/com/navercorp/pinpoint/web/applicationmap/service/MapServiceImpl.java#L144-L145
Added lines #L144 - L145 were not covered by tests
Check warning on line 151 in web/src/main/java/com/navercorp/pinpoint/web/applicationmap/service/MapServiceImpl.java
Codecov / codecov/patch
web/src/main/java/com/navercorp/pinpoint/web/applicationmap/service/MapServiceImpl.java#L151
Added line #L151 was not covered by tests
Check warning on line 154 in web/src/main/java/com/navercorp/pinpoint/web/applicationmap/service/MapServiceImpl.java
Codecov / codecov/patch
web/src/main/java/com/navercorp/pinpoint/web/applicationmap/service/MapServiceImpl.java#L154
Added line #L154 was not covered by tests
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider adding a Javadoc comment to explain the purpose of
buildForNoRequestand describe its parameters, since it encapsulates special-case behavior.