Skip to content

Conversation

@yl09099
Copy link
Contributor

@yl09099 yl09099 commented Nov 23, 2023

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.

@yl09099 yl09099 force-pushed the uniffle-960-4 branch 3 times, most recently from a3f2c97 to 6c7cd3b Compare November 23, 2023 04:58
@codecov-commenter
Copy link

codecov-commenter commented Nov 23, 2023

Codecov Report

Attention: 24 lines in your changes are missing coverage. Please review.

Comparison is base (eef0134) 53.26% compared to head (88c0a84) 54.13%.
Report is 8 commits behind head on master.

Files Patch % Lines
...iffle/coordinator/web/resource/ServerResource.java 0.00% 16 Missing ⚠️
.../coordinator/web/resource/ApplicationResource.java 0.00% 5 Missing ⚠️
...ava/org/apache/uniffle/coordinator/ServerNode.java 0.00% 2 Missing ⚠️
...apache/uniffle/coordinator/ApplicationManager.java 0.00% 1 Missing ⚠️
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.
📢 Have feedback on the report? Share it here.


@Override
public List<ServerNode> getDecommissioningServerList() {
List<ServerNode> decommissioningNodes = Lists.newArrayList();
Copy link
Contributor

@smallzhongfeng smallzhongfeng Nov 23, 2023

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)) {
Copy link
Contributor

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());
Copy link
Member

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.

Copy link
Member

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)

Copy link
Member

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?

Copy link
Contributor Author

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.

Copy link
Member

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.

Copy link
Contributor Author

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.

image
Provide a display of the number of servernode states here.

Copy link
Contributor Author

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.

@yl09099 yl09099 force-pushed the uniffle-960-4 branch 4 times, most recently from 34d85ed to 2758abc Compare November 29, 2023 07:53
if (getApplicationManager().getQuotaManager() != null) {
appTotalityMap.put(
"appTotality",
getApplicationManager().getQuotaManager().getAppIdToUser().keySet().size());
Copy link
Member

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?

Copy link
Member

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.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@yl09099 yl09099 force-pushed the uniffle-960-4 branch 3 times, most recently from e7bc258 to e3ab43f Compare November 29, 2023 08:45
@yl09099 yl09099 force-pushed the uniffle-960-4 branch 2 times, most recently from e5c614f to 800bf15 Compare November 30, 2023 03:08
@yl09099 yl09099 requested a review from xianjingfeng November 30, 2023 03:50
clusterManager.list(),
clusterManager.getLostServerList(),
excludeNodes,
clusterManager.getUnhealthyServerList())
Copy link
Member

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()

Copy link
Contributor Author

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()

Have been modified.

@yl09099 yl09099 force-pushed the uniffle-960-4 branch 5 times, most recently from 2bfb764 to 69c07be Compare December 5, 2023 08:17
@yl09099 yl09099 requested a review from xianjingfeng December 5, 2023 08:23
@yl09099 yl09099 changed the title [#960][part-4] feat(dashboard): Fix some display bugs and optimize the display format. [#960] fix(dashboard): simplify dependency and correct the startup script.. Dec 5, 2023
@yl09099 yl09099 changed the title [#960] fix(dashboard): simplify dependency and correct the startup script.. [#960][part-4] feat(dashboard): Fix some display bugs and optimize the display format. Dec 5, 2023
@jerqi
Copy link
Contributor

jerqi commented Dec 8, 2023

@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) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if (getApplicationManager().getQuotaManager() != null) {

() -> {
List<AppInfoVO> userToAppList = new ArrayList<>();
Map<String, Map<String, Long>> currentUserAndApp = new HashMap<>();
if (getApplicationManager().getQuotaManager() != null) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if (getApplicationManager().getQuotaManager() != null) {

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have been modified.

Copy link
Member

@xianjingfeng xianjingfeng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@xianjingfeng xianjingfeng merged commit ecbf2e7 into apache:master Dec 11, 2023
@xianjingfeng
Copy link
Member

Merged. Thanks @yl09099 @jerqi

zuston pushed a commit to zuston/incubator-uniffle that referenced this pull request Jan 18, 2024
…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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Umbrella] Uniffle needs to add a WebUI page

5 participants