-
Notifications
You must be signed in to change notification settings - Fork 168
[#960][part-4] feat(dashboard): Fix some display bugs and optimize the display format. #1326
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
Conversation
a3f2c97 to
6c7cd3b
Compare
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #1326 +/- ##
============================================
+ Coverage 53.26% 54.13% +0.86%
- Complexity 2712 2715 +3
============================================
Files 418 398 -20
Lines 23901 21571 -2330
Branches 2042 2043 +1
============================================
- Hits 12732 11677 -1055
+ Misses 10384 9180 -1204
+ Partials 785 714 -71 ☔ View full report in Codecov by Sentry. |
6c7cd3b to
3992b5d
Compare
3992b5d to
a82bf6a
Compare
|
|
||
| @Override | ||
| public List<ServerNode> getDecommissioningServerList() { | ||
| List<ServerNode> decommissioningNodes = Lists.newArrayList(); |
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.
Can we abstract a method here, because it is very similar to getDecommissionedServerList? 🤔️ @yl09099
| serverList = clusterManager.getUnhealthyServerList(); | ||
| } else if (ServerStatus.LOST.name().equalsIgnoreCase(status)) { | ||
| serverList = clusterManager.getLostServerList(); | ||
| } else if ("EXCLUDED".equalsIgnoreCase(status)) { |
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.
"EXCLUDED" add to ServerStatus?
| stringIntegerHash.put("lostNode", clusterManager.getLostServerList().size()); | ||
| stringIntegerHash.put("unhealthyNode", clusterManager.getUnhealthyServerList().size()); | ||
| stringIntegerHash.put( | ||
| "activeNode", clusterManager.getServerList(Collections.emptySet()).size()); |
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.
getServerList is not only return active nodes.
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.
Why do you use the earlier logic?
#1053 (comment)
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.
Why do you use the earlier logic? #1053 (comment)
@yl09099 Are you miss this thread?
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.
Why do you use the earlier logic? #1053 (comment)
@yl09099 Are you miss this thread?
Have been modified.
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.
I mean why do we need to modify this part of the logic? As we discuss in #1053 (comment), If we add status in the future, we need to modify this method.
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.
I mean why do we need to modify this part of the logic? As we discuss in #1053 (comment), If we add status in the future, we need to modify this method.
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.
I mean why do we need to modify this part of the logic? As we discuss in #1053 (comment), If we add status in the future, we need to modify this method.
The layout of the status page also has to be changed, it doesn't have to be that way.
coordinator/src/main/java/org/apache/uniffle/coordinator/web/vo/ServerNodeVO.java
Outdated
Show resolved
Hide resolved
coordinator/src/main/java/org/apache/uniffle/coordinator/web/vo/ServerNodeVO.java
Outdated
Show resolved
Hide resolved
dashboard/src/main/webapp/src/components/shufflecomponent/ActiveNodeListPage.vue
Outdated
Show resolved
Hide resolved
a82bf6a to
20d9dd4
Compare
34d85ed to
2758abc
Compare
| if (getApplicationManager().getQuotaManager() != null) { | ||
| appTotalityMap.put( | ||
| "appTotality", | ||
| getApplicationManager().getQuotaManager().getAppIdToUser().keySet().size()); |
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.
Is getApplicationManager().getAppIds().size() better?
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.
I think all interfaces of ApplicationResource have the same problems.
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.
The following code have the same problem. @yl09099
https://github.com/apache/incubator-uniffle/blob/800bf159479e96c6f1911f827e818d3de71e8b51/coordinator/src/main/java/org/apache/uniffle/coordinator/web/resource/ApplicationResource.java#L62
https://github.com/apache/incubator-uniffle/blob/800bf159479e96c6f1911f827e818d3de71e8b51/coordinator/src/main/java/org/apache/uniffle/coordinator/web/resource/ApplicationResource.java#L81-L83
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.
The following code have the same problem. @yl09099
Have been modified.
e7bc258 to
e3ab43f
Compare
e5c614f to
800bf15
Compare
dashboard/src/main/webapp/src/components/shufflecomponent/ActiveNodeListPage.vue
Outdated
Show resolved
Hide resolved
dashboard/src/main/webapp/src/components/shufflecomponent/DecommissionednodeListPage.vue
Outdated
Show resolved
Hide resolved
dashboard/src/main/webapp/src/components/shufflecomponent/DecommissioningNodeListPage.vue
Outdated
Show resolved
Hide resolved
dashboard/src/main/webapp/src/components/shufflecomponent/DecommissioningNodeListPage.vue
Outdated
Show resolved
Hide resolved
dashboard/src/main/webapp/src/components/shufflecomponent/LostNodeList.vue
Outdated
Show resolved
Hide resolved
dashboard/src/main/webapp/src/components/shufflecomponent/LostNodeList.vue
Outdated
Show resolved
Hide resolved
dashboard/src/main/webapp/src/components/shufflecomponent/UnhealthyNodeListPage.vue
Outdated
Show resolved
Hide resolved
dashboard/src/main/webapp/src/components/shufflecomponent/UnhealthyNodeListPage.vue
Outdated
Show resolved
Hide resolved
coordinator/src/main/java/org/apache/uniffle/coordinator/web/resource/ServerResource.java
Outdated
Show resolved
Hide resolved
| clusterManager.list(), | ||
| clusterManager.getLostServerList(), | ||
| excludeNodes, | ||
| clusterManager.getUnhealthyServerList()) |
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.
clusterManager.list() contains all of unhealthy nodes and part of the excluded nodes, so, we may need use distinct()
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.
clusterManager.list()contains all of unhealthy nodes and part of the excluded nodes, so, we may need usedistinct()
Have been modified.
2bfb764 to
69c07be
Compare
|
@yl09099 Could you address the left comments? |
| Set<String> appIds = getApplicationManager().getAppIds(); | ||
| Map<String, Integer> appTotalityMap = new HashMap<>(); | ||
| appTotalityMap.put("appTotality", appIds.size()); | ||
| if (getApplicationManager().getQuotaManager() != null) { |
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.
| if (getApplicationManager().getQuotaManager() != null) { |
| () -> { | ||
| List<AppInfoVO> userToAppList = new ArrayList<>(); | ||
| Map<String, Map<String, Long>> currentUserAndApp = new HashMap<>(); | ||
| if (getApplicationManager().getQuotaManager() != null) { |
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.
| if (getApplicationManager().getQuotaManager() != null) { |
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.
Have been modified.
…ize the display format.
69c07be to
88c0a84
Compare
xianjingfeng
left a comment
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.
LGTM
…ize the display format. (apache#1326) ### What changes were proposed in this pull request? 1.Fixed a bug that returned data from some interface calls. 2.Modify some memory to be represented in tape units. ### Why are the changes needed? The dashboard page cannot display some indicators. Fix: apache#960 ### Does this PR introduce any user-facing change? No. ### How was this patch tested? Existing UT.

What changes were proposed in this pull request?
1.Fixed a bug that returned data from some interface calls.
2.Modify some memory to be represented in tape units.
Why are the changes needed?
The dashboard page cannot display some indicators.
Fix: #960
Does this PR introduce any user-facing change?
No.
How was this patch tested?
Existing UT.