You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@uniffle.apache.org by "yl09099 (via GitHub)" <gi...@apache.org> on 2024/01/14 15:42:00 UTC
[PR] [#1401][part-1] The dashboard supports multiple Coordinator links. [incubator-uniffle]
yl09099 opened a new pull request, #1449:
URL: https://github.com/apache/incubator-uniffle/pull/1449
### What changes were proposed in this pull request?
After multiple coordinators are deployed, a dashboard is added to link multiple coordinators.
### Why are the changes needed?
Fix: #1401
### Does this PR introduce _any_ user-facing change?
No.
### How was this patch tested?
No.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For additional commands, e-mail: issues-help@uniffle.apache.org
Re: [PR] [#1401][part-1] The dashboard supports multiple Coordinator links. [incubator-uniffle]
Posted by "rickyma (via GitHub)" <gi...@apache.org>.
rickyma commented on code in PR #1449:
URL: https://github.com/apache/incubator-uniffle/pull/1449#discussion_r1634671006
##########
dashboard/src/main/java/org/apache/uniffle/dashboard/web/resource/BaseResource.java:
##########
@@ -0,0 +1,30 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.uniffle.dashboard.web.resource;
+
+import java.util.concurrent.Callable;
+
+public abstract class BaseResource {
+ protected <T> Response<T> execute(Callable<T> callable) {
+ try {
+ return Response.success(callable.call());
+ } catch (Throwable e) {
Review Comment:
`e.getMessage()`: Some exceptions stack trace will be lost. Can we log the full stack trace here?
##########
dashboard/src/main/java/org/apache/uniffle/dashboard/web/utils/DashboardUtils.java:
##########
@@ -0,0 +1,45 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.uniffle.dashboard.web.utils;
+
+import java.net.MalformedURLException;
+import java.net.URL;
+import java.util.HashMap;
+import java.util.Map;
+
+import com.google.common.collect.Maps;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+public class DashboardUtils {
+ private static final Logger log = LoggerFactory.getLogger(DashboardUtils.class);
+
+ public static Map<String, String> convertToMap(String coordinatorStr) {
Review Comment:
coordinatorStr -> coordinatorAddressesStr
or
coordinatorStr -> addressesStr
if it could be other addresses, e.g. dashboard addresses/server address and so on.
##########
dashboard/src/main/java/org/apache/uniffle/dashboard/web/utils/DashboardUtils.java:
##########
@@ -0,0 +1,45 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.uniffle.dashboard.web.utils;
+
+import java.net.MalformedURLException;
+import java.net.URL;
+import java.util.HashMap;
+import java.util.Map;
+
+import com.google.common.collect.Maps;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+public class DashboardUtils {
+ private static final Logger log = LoggerFactory.getLogger(DashboardUtils.class);
Review Comment:
`log` -> `LOG`
Constants are usually modified with static final and named in uppercase.
##########
dashboard/src/main/java/org/apache/uniffle/dashboard/web/resource/CoordinatorResource.java:
##########
@@ -0,0 +1,47 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.uniffle.dashboard.web.resource;
+
+import java.util.Map;
+import javax.servlet.ServletContext;
+
+import org.apache.hbase.thirdparty.javax.ws.rs.GET;
+import org.apache.hbase.thirdparty.javax.ws.rs.Path;
+import org.apache.hbase.thirdparty.javax.ws.rs.Produces;
+import org.apache.hbase.thirdparty.javax.ws.rs.core.Context;
+import org.apache.hbase.thirdparty.javax.ws.rs.core.MediaType;
+
+@Produces({MediaType.APPLICATION_JSON})
+public class CoordinatorResource extends BaseResource {
+
+ @Context protected ServletContext servletContext;
+
+ @GET
+ @Path("/coordinatorList")
Review Comment:
`/coordinators` is more in line with the RESTful style.
##########
dashboard/src/main/java/org/apache/uniffle/dashboard/web/utils/DashboardUtils.java:
##########
@@ -0,0 +1,45 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.uniffle.dashboard.web.utils;
+
+import java.net.MalformedURLException;
+import java.net.URL;
+import java.util.HashMap;
+import java.util.Map;
+
+import com.google.common.collect.Maps;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+public class DashboardUtils {
+ private static final Logger log = LoggerFactory.getLogger(DashboardUtils.class);
+
+ public static Map<String, String> convertToMap(String coordinatorStr) {
Review Comment:
`convertToMap` -> `convertAddressesStrToMap`
easier to be understood
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For additional commands, e-mail: issues-help@uniffle.apache.org
Re: [PR] [#1401][part-1] The dashboard supports multiple Coordinator links. [incubator-uniffle]
Posted by "xianjingfeng (via GitHub)" <gi...@apache.org>.
xianjingfeng commented on code in PR #1449:
URL: https://github.com/apache/incubator-uniffle/pull/1449#discussion_r1567429532
##########
dashboard/src/main/webapp/package.json:
##########
@@ -32,6 +32,7 @@
"core-js": "^3.8.3",
"element-plus": "^2.3.6",
"moment": "^2.29.4",
+ "pinia": "^2.1.7",
Review Comment:
I suggest remove `pinia`, we can just use `localStorage`. @yl09099 @zuston @rickyma PTAL
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For additional commands, e-mail: issues-help@uniffle.apache.org
Re: [PR] [#1401][part-1] The dashboard supports multiple Coordinator links. [incubator-uniffle]
Posted by "xianjingfeng (via GitHub)" <gi...@apache.org>.
xianjingfeng commented on code in PR #1449:
URL: https://github.com/apache/incubator-uniffle/pull/1449#discussion_r1567427663
##########
dashboard/src/main/webapp/src/pages/CoordinatorServerPage.vue:
##########
@@ -94,17 +95,27 @@ export default {
serverInfo: {}
}
);
- async function getCoordinatorServerConfPage() {
- const res = await getCoordinatorConf();
+ async function getCoordinatorServerConfPage(headers) {
+ const res = await getCoordinatorConf({},headers)
pageData.tableData = res.data.data
}
- async function getCoorServerInfo() {
- const res = await getCoordinatorServerInfo();
+ async function getCoorServerInfo(headers) {
+ const res = await getCoordinatorServerInfo({},headers)
pageData.serverInfo = res.data.data
}
+
+ //The system obtains data from global variables and requests the interface to obtain new data after data changes.
+ const currentServerStore= useCurrentServerStore()
+ currentServerStore.$subscribe((mutable,state)=>{
+ const headrs={"targetAddress":state.currentServer}
Review Comment:
@yl09099 @zuston @rickyma PTAL
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For additional commands, e-mail: issues-help@uniffle.apache.org
Re: [PR] [#1401][part-1] The dashboard supports multiple Coordinator links. [incubator-uniffle]
Posted by "xianjingfeng (via GitHub)" <gi...@apache.org>.
xianjingfeng commented on code in PR #1449:
URL: https://github.com/apache/incubator-uniffle/pull/1449#discussion_r1452085935
##########
dashboard/src/main/webapp/src/pages/CoordinatorServerPage.vue:
##########
@@ -94,17 +95,27 @@ export default {
serverInfo: {}
}
);
- async function getCoordinatorServerConfPage() {
- const res = await getCoordinatorConf();
+ async function getCoordinatorServerConfPage(headers) {
+ const res = await getCoordinatorConf({},headers)
pageData.tableData = res.data.data
}
- async function getCoorServerInfo() {
- const res = await getCoordinatorServerInfo();
+ async function getCoorServerInfo(headers) {
+ const res = await getCoordinatorServerInfo({},headers)
pageData.serverInfo = res.data.data
}
+
+ //The system obtains data from global variables and requests the interface to obtain new data after data changes.
+ const currentServerStore= useCurrentServerStore()
+ currentServerStore.$subscribe((mutable,state)=>{
+ const headrs={"targetAddress":state.currentServer}
Review Comment:
I think store `targetAddress` to `session` is better.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For additional commands, e-mail: issues-help@uniffle.apache.org
Re: [PR] [#1401][part-1] The dashboard supports multiple Coordinator links. [incubator-uniffle]
Posted by "xianjingfeng (via GitHub)" <gi...@apache.org>.
xianjingfeng commented on code in PR #1449:
URL: https://github.com/apache/incubator-uniffle/pull/1449#discussion_r1464344873
##########
dashboard/src/main/webapp/src/pages/CoordinatorServerPage.vue:
##########
@@ -94,17 +95,27 @@ export default {
serverInfo: {}
}
);
- async function getCoordinatorServerConfPage() {
- const res = await getCoordinatorConf();
+ async function getCoordinatorServerConfPage(headers) {
+ const res = await getCoordinatorConf({},headers)
pageData.tableData = res.data.data
}
- async function getCoorServerInfo() {
- const res = await getCoordinatorServerInfo();
+ async function getCoorServerInfo(headers) {
+ const res = await getCoordinatorServerInfo({},headers)
pageData.serverInfo = res.data.data
}
+
+ //The system obtains data from global variables and requests the interface to obtain new data after data changes.
+ const currentServerStore= useCurrentServerStore()
+ currentServerStore.$subscribe((mutable,state)=>{
+ const headrs={"targetAddress":state.currentServer}
Review Comment:
Or maybe you can use local storage and get `targetAddress` from the local storage before invoking the http interfaces
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For additional commands, e-mail: issues-help@uniffle.apache.org
Re: [PR] [#1401][part-1] The dashboard supports multiple Coordinator links. [incubator-uniffle]
Posted by "yl09099 (via GitHub)" <gi...@apache.org>.
yl09099 commented on code in PR #1449:
URL: https://github.com/apache/incubator-uniffle/pull/1449#discussion_r1634626208
##########
dashboard/src/main/java/org/apache/uniffle/dashboard/web/resource/Response.java:
##########
@@ -0,0 +1,70 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.uniffle.dashboard.web.resource;
+
+public class Response<T> {
Review Comment:
> > Could we move it to the common module? And the same class in the coordinator module.
>
> This Response is in the Coordinator module. The Coordinator module is introduced into the dashboard here, which feels a bit awkward. Just like you said, it needs to be migrated to the common module, but I don't think it should be done in this PR.
I changed it when I introduced the previous code check.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For additional commands, e-mail: issues-help@uniffle.apache.org
Re: [PR] [#1401][part-1] The dashboard supports multiple Coordinator links. [incubator-uniffle]
Posted by "xianjingfeng (via GitHub)" <gi...@apache.org>.
xianjingfeng commented on code in PR #1449:
URL: https://github.com/apache/incubator-uniffle/pull/1449#discussion_r1567449587
##########
dashboard/src/main/java/org/apache/uniffle/dashboard/web/resource/GainCoordinatorsResource.java:
##########
@@ -0,0 +1,49 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.uniffle.dashboard.web.resource;
+
+import java.util.Map;
+import javax.servlet.ServletContext;
+
+import com.google.gson.Gson;
+import org.apache.hbase.thirdparty.javax.ws.rs.GET;
+import org.apache.hbase.thirdparty.javax.ws.rs.Path;
+import org.apache.hbase.thirdparty.javax.ws.rs.Produces;
+import org.apache.hbase.thirdparty.javax.ws.rs.core.Context;
+import org.apache.hbase.thirdparty.javax.ws.rs.core.MediaType;
+
+@Produces({MediaType.APPLICATION_JSON})
+public class GainCoordinatorsResource extends BaseResource {
Review Comment:
I think `CoordinatorsResource` is better.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For additional commands, e-mail: issues-help@uniffle.apache.org
Re: [PR] [#1401][part-1] The dashboard supports multiple Coordinator links. [incubator-uniffle]
Posted by "yl09099 (via GitHub)" <gi...@apache.org>.
yl09099 commented on code in PR #1449:
URL: https://github.com/apache/incubator-uniffle/pull/1449#discussion_r1460738727
##########
dashboard/src/main/java/org/apache/uniffle/dashboard/web/views/GainCoordinatorsServlet.java:
##########
@@ -0,0 +1,43 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.uniffle.dashboard.web.views;
+
+import java.io.IOException;
+import java.util.Map;
+import javax.servlet.http.HttpServlet;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+
+import com.google.gson.Gson;
+
+public class GainCoordinatorsServlet extends HttpServlet {
Review Comment:
> Could we use jersey?
Have changed.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For additional commands, e-mail: issues-help@uniffle.apache.org
Re: [PR] [#1401][part-1] The dashboard supports multiple Coordinator links. [incubator-uniffle]
Posted by "xianjingfeng (via GitHub)" <gi...@apache.org>.
xianjingfeng commented on code in PR #1449:
URL: https://github.com/apache/incubator-uniffle/pull/1449#discussion_r1452077332
##########
dashboard/src/main/webapp/src/router/index.js:
##########
@@ -16,15 +16,15 @@
*/
import {createRouter, createWebHashHistory} from "vue-router"
-import ApplicationPage from '@/components/ApplicationPage'
-import CoordinatorServerPage from '@/components/CoordinatorServerPage'
-import ShuffleServerPage from '@/components/ShuffleServerPage'
-import ActiveNodeListPage from '@/components/shufflecomponent/ActiveNodeListPage'
-import DecommissioningNodeListPage from '@/components/shufflecomponent/DecommissioningNodeListPage'
-import DecommissionednodeListPage from '@/components/shufflecomponent/DecommissionednodeListPage'
-import LostNodeList from '@/components/shufflecomponent/LostNodeList'
-import UnhealthyNodeListPage from '@/components/shufflecomponent/UnhealthyNodeListPage'
-import ExcludeNodeList from '@/components/shufflecomponent/ExcludeNodeList'
+import ApplicationPage from '@/pages/ApplicationPage.vue'
+import CoordinatorServerPage from '@/pages/CoordinatorServerPage.vue'
+import ShuffleServerPage from '@/pages/ShuffleServerPage.vue'
+import ActiveNodeListPage from '@/pages/serverstatus/ActiveNodeListPage'
Review Comment:
Has the `pages` directory been commited?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For additional commands, e-mail: issues-help@uniffle.apache.org
Re: [PR] [#1401][part-1] The dashboard supports multiple Coordinator links. [incubator-uniffle]
Posted by "xianjingfeng (via GitHub)" <gi...@apache.org>.
xianjingfeng commented on code in PR #1449:
URL: https://github.com/apache/incubator-uniffle/pull/1449#discussion_r1452077332
##########
dashboard/src/main/webapp/src/router/index.js:
##########
@@ -16,15 +16,15 @@
*/
import {createRouter, createWebHashHistory} from "vue-router"
-import ApplicationPage from '@/components/ApplicationPage'
-import CoordinatorServerPage from '@/components/CoordinatorServerPage'
-import ShuffleServerPage from '@/components/ShuffleServerPage'
-import ActiveNodeListPage from '@/components/shufflecomponent/ActiveNodeListPage'
-import DecommissioningNodeListPage from '@/components/shufflecomponent/DecommissioningNodeListPage'
-import DecommissionednodeListPage from '@/components/shufflecomponent/DecommissionednodeListPage'
-import LostNodeList from '@/components/shufflecomponent/LostNodeList'
-import UnhealthyNodeListPage from '@/components/shufflecomponent/UnhealthyNodeListPage'
-import ExcludeNodeList from '@/components/shufflecomponent/ExcludeNodeList'
+import ApplicationPage from '@/pages/ApplicationPage.vue'
+import CoordinatorServerPage from '@/pages/CoordinatorServerPage.vue'
+import ShuffleServerPage from '@/pages/ShuffleServerPage.vue'
+import ActiveNodeListPage from '@/pages/serverstatus/ActiveNodeListPage'
Review Comment:
Has the `pages` directory been commited?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For additional commands, e-mail: issues-help@uniffle.apache.org
Re: [PR] [#1401][part-1] The dashboard supports multiple Coordinator links. [incubator-uniffle]
Posted by "xianjingfeng (via GitHub)" <gi...@apache.org>.
xianjingfeng commented on code in PR #1449:
URL: https://github.com/apache/incubator-uniffle/pull/1449#discussion_r1464336822
##########
dashboard/src/main/webapp/src/pages/CoordinatorServerPage.vue:
##########
@@ -94,17 +95,27 @@ export default {
serverInfo: {}
}
);
- async function getCoordinatorServerConfPage() {
- const res = await getCoordinatorConf();
+ async function getCoordinatorServerConfPage(headers) {
+ const res = await getCoordinatorConf({},headers)
pageData.tableData = res.data.data
}
- async function getCoorServerInfo() {
- const res = await getCoordinatorServerInfo();
+ async function getCoorServerInfo(headers) {
+ const res = await getCoordinatorServerInfo({},headers)
pageData.serverInfo = res.data.data
}
+
+ //The system obtains data from global variables and requests the interface to obtain new data after data changes.
+ const currentServerStore= useCurrentServerStore()
+ currentServerStore.$subscribe((mutable,state)=>{
+ const headrs={"targetAddress":state.currentServer}
Review Comment:
It is not graceful to set the header before each request. Some code is redundant.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For additional commands, e-mail: issues-help@uniffle.apache.org
Re: [PR] [#1401][part-1] The dashboard supports multiple Coordinator links. [incubator-uniffle]
Posted by "xianjingfeng (via GitHub)" <gi...@apache.org>.
xianjingfeng commented on code in PR #1449:
URL: https://github.com/apache/incubator-uniffle/pull/1449#discussion_r1452064472
##########
dashboard/src/main/java/org/apache/uniffle/dashboard/web/proxy/WebProxyServlet.java:
##########
@@ -28,21 +29,24 @@
public class WebProxyServlet extends ProxyServlet {
- private String targetAddress;
-
private static final Logger LOG = LoggerFactory.getLogger(WebProxyServlet.class);
- public WebProxyServlet(String targetAddress) {
- this.targetAddress = targetAddress;
+ private Map<String, String> serverAddressesMap;
+
+ public WebProxyServlet(Map<String, String> serverAddressesMap) {
+ this.serverAddressesMap = serverAddressesMap;
}
@Override
protected String rewriteTarget(HttpServletRequest clientRequest) {
if (!validateDestination(clientRequest.getServerName(), clientRequest.getServerPort())) {
return null;
}
+ String targetAddress = serverAddressesMap.get(clientRequest.getHeader("targetAddress"));
+ if (targetAddress == null) {
+ targetAddress = "http://localhost:19997/";
Review Comment:
I don't think we should handle this unexpected situation. because the protocol, host and port are not fixed.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For additional commands, e-mail: issues-help@uniffle.apache.org
Re: [PR] [#1401][part-1] The dashboard supports multiple Coordinator links. [incubator-uniffle]
Posted by "xianjingfeng (via GitHub)" <gi...@apache.org>.
xianjingfeng commented on code in PR #1449:
URL: https://github.com/apache/incubator-uniffle/pull/1449#discussion_r1452079700
##########
dashboard/src/main/webapp/src/api/api.js:
##########
@@ -16,63 +16,67 @@
*/
import http from "@/utils/http";
-
// Create a Coordinator information interface
-export function getCoordinatorServerInfo(params){
- return http.get('/coordinator/info', params,{})
+export function getCoordinatorServerInfo(params,headers) {
+ return http.get('/coordinator/info', params, headers, 0)
}
// Create a coordinator configuration file interface
-export function getCoordinatorConf(params){
- return http.get('/coordinator/conf', params,{})
+export function getCoordinatorConf(params,headers) {
+ return http.get('/coordinator/conf', params, headers, 0)
}
// Create an interface for the total number of nodes
-export function getShufflegetStatusTotal(params){
- return http.get('/server/nodes/summary', params,{})
+export function getShufflegetStatusTotal(params,headers) {
+ return http.get('/server/nodes/summary', params, headers, 0)
}
// Create an interface for activeNodes
-export function getShuffleActiveNodes(params){
- return http.get('/server/nodes?status=active', params,{})
+export function getShuffleActiveNodes(params,headers) {
+ return http.get('/server/nodes?status=active', params, headers, 0)
}
// Create an interface for lostNodes
-export function getShuffleLostList(params){
- return http.get('/server/nodes?status=lost', params,{})
+export function getShuffleLostList(params,headers) {
+ return http.get('/server/nodes?status=lost', params, headers, 0)
}
// Create an interface for unhealthyNodes
-export function getShuffleUnhealthyList(params){
- return http.get('/server/nodes?status=unhealthy', params,{})
+export function getShuffleUnhealthyList(params,headers) {
+ return http.get('/server/nodes?status=unhealthy', params, headers, 0)
}
// Create an interface for decommissioningNodes
-export function getShuffleDecommissioningList(params){
- return http.get('/server/nodes?status=decommissioning', params,{})
+export function getShuffleDecommissioningList(params,headers) {
+ return http.get('/server/nodes?status=decommissioning', params, headers, 0)
}
// Create an interface for decommissionedNodes
-export function getShuffleDecommissionedList(params){
- return http.get('/server/nodes?status=decommissioned', params,{})
+export function getShuffleDecommissionedList(params,headers) {
+ return http.get('/server/nodes?status=decommissioned', params, headers, 0)
}
// Create an interface for excludeNodes
-export function getShuffleExcludeNodes(params){
- return http.get('/server/nodes?status=excluded', params,{})
+export function getShuffleExcludeNodes(params,headers) {
+ return http.get('/server/nodes?status=excluded', params, headers, 0)
}
// Total number of interfaces for new App
-export function getAppTotal(params){
- return http.get('/app/total', params,{})
+export function getAppTotal(params,headers) {
+ return http.get('/app/total', params, headers, 0)
}
// Create an interface for the app basic information list
-export function getApplicationInfoList(params){
- return http.get('/app/appInfos', params,{})
+export function getApplicationInfoList(params,headers) {
+ return http.get('/app/appInfos', params, headers, 0)
}
// Create an interface for the number of apps for a user
-export function getTotalForUser(params){
- return http.get('/app/userTotal', params,{})
+export function getTotalForUser(params,headers) {
+ return http.get('/app/userTotal', params, headers, 0)
+}
+
+// Obtain the configured coordinator server list
+export function getAllCoordinatorAddrees(params) {
+ return http.get('/coordinatorList', params, {}, 1)
Review Comment:
Has this interface been committed?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For additional commands, e-mail: issues-help@uniffle.apache.org
Re: [PR] [#1401][part-1] The dashboard supports multiple Coordinator links. [incubator-uniffle]
Posted by "rickyma (via GitHub)" <gi...@apache.org>.
rickyma commented on PR #1449:
URL: https://github.com/apache/incubator-uniffle/pull/1449#issuecomment-2160736377
LGTM. @xianjingfeng We can merge this.
cc @zuston @jerqi
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For additional commands, e-mail: issues-help@uniffle.apache.org
Re: [PR] [#1401][part-1] The dashboard supports multiple Coordinator links. [incubator-uniffle]
Posted by "xianjingfeng (via GitHub)" <gi...@apache.org>.
xianjingfeng merged PR #1449:
URL: https://github.com/apache/incubator-uniffle/pull/1449
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For additional commands, e-mail: issues-help@uniffle.apache.org
Re: [PR] [#1401][part-1] The dashboard supports multiple Coordinator links. [incubator-uniffle]
Posted by "xianjingfeng (via GitHub)" <gi...@apache.org>.
xianjingfeng commented on code in PR #1449:
URL: https://github.com/apache/incubator-uniffle/pull/1449#discussion_r1452068876
##########
dashboard/src/main/java/org/apache/uniffle/dashboard/web/utils/DashboardUtils.java:
##########
@@ -0,0 +1,36 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.uniffle.dashboard.web.utils;
+
+import java.util.HashMap;
+import java.util.Map;
+
+import com.google.common.collect.Maps;
+
+public class DashboardUtils {
+ public static Map<String, String> convertToMap(String coordinatorStr) {
+ HashMap<String, String> stringMap = Maps.newHashMap();
+ String[] coordinators = coordinatorStr.split(",");
+ for (String coordinator : coordinators) {
+ String[] split = coordinator.split("//");
Review Comment:
How about
```
URL coordinatorURL = new URL(coordinator);
String host = coordinatorURL.getHost();
...
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For additional commands, e-mail: issues-help@uniffle.apache.org
Re: [PR] [#1401][part-1] The dashboard supports multiple Coordinator links. [incubator-uniffle]
Posted by "yl09099 (via GitHub)" <gi...@apache.org>.
yl09099 commented on code in PR #1449:
URL: https://github.com/apache/incubator-uniffle/pull/1449#discussion_r1460738951
##########
dashboard/src/main/java/org/apache/uniffle/dashboard/web/proxy/WebProxyServlet.java:
##########
@@ -28,21 +29,24 @@
public class WebProxyServlet extends ProxyServlet {
- private String targetAddress;
-
private static final Logger LOG = LoggerFactory.getLogger(WebProxyServlet.class);
- public WebProxyServlet(String targetAddress) {
- this.targetAddress = targetAddress;
+ private Map<String, String> serverAddressesMap;
+
+ public WebProxyServlet(Map<String, String> serverAddressesMap) {
+ this.serverAddressesMap = serverAddressesMap;
}
@Override
protected String rewriteTarget(HttpServletRequest clientRequest) {
if (!validateDestination(clientRequest.getServerName(), clientRequest.getServerPort())) {
return null;
}
+ String targetAddress = serverAddressesMap.get(clientRequest.getHeader("targetAddress"));
+ if (targetAddress == null) {
+ targetAddress = "http://localhost:19997/";
Review Comment:
> I don't think we should handle this unexpected situation. because the protocol, host and port are not fixed.
Have deleted.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For additional commands, e-mail: issues-help@uniffle.apache.org
Re: [PR] [#1401][part-1] The dashboard supports multiple Coordinator links. [incubator-uniffle]
Posted by "xianjingfeng (via GitHub)" <gi...@apache.org>.
xianjingfeng commented on code in PR #1449:
URL: https://github.com/apache/incubator-uniffle/pull/1449#discussion_r1464350349
##########
dashboard/src/main/webapp/src/utils/http.js:
##########
@@ -16,24 +16,21 @@
*/
import request from "@/utils/request";
+
const http = {
- get(url, params, headers) {
- const config = {
- method: 'GET',
- url: url,
- params: params,
- headers: headers
+ get(url, params, headers, fontBackFlag) {
+ if (fontBackFlag == 0) {
+ return request.getBackEndAxiosInstance().get(url,{params,headers});
+ } else {
+ return request.getFontEndAxiosInstance().get(url,{params,headers});
}
- return request(config);
},
- post(url, data, headers) {
- const config = {
- method: 'POST',
- url: url,
- data: data,
- headers: headers
+ post(url, data, headers, fontBackFlag) {
+ if (fontBackFlag == 0) {
+ return request.getBackEndAxiosInstance().post(url,data,headers);
+ } else {
+ return request.getFontEndAxiosInstance().post(url,data,headers);
Review Comment:
```suggestion
return request.getFrontEndAxiosInstance().post(url,data,headers);
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For additional commands, e-mail: issues-help@uniffle.apache.org
Re: [PR] [#1401][part-1] The dashboard supports multiple Coordinator links. [incubator-uniffle]
Posted by "yl09099 (via GitHub)" <gi...@apache.org>.
yl09099 commented on code in PR #1449:
URL: https://github.com/apache/incubator-uniffle/pull/1449#discussion_r1634617037
##########
dashboard/src/main/java/org/apache/uniffle/dashboard/web/resource/Response.java:
##########
@@ -0,0 +1,70 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.uniffle.dashboard.web.resource;
+
+public class Response<T> {
Review Comment:
> Could we move it to the common module? And the same class in the coordinator module.
This Response is in the Coordinator module. The Coordinator module is introduced into the dashboard here, which feels a bit awkward. Just like you said, it needs to be migrated to the common module, but I don't think it should be done in this PR.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For additional commands, e-mail: issues-help@uniffle.apache.org
Re: [PR] [#1401][part-1] The dashboard supports multiple Coordinator links. [incubator-uniffle]
Posted by "yl09099 (via GitHub)" <gi...@apache.org>.
yl09099 commented on code in PR #1449:
URL: https://github.com/apache/incubator-uniffle/pull/1449#discussion_r1634734733
##########
dashboard/src/main/webapp/src/api/api.js:
##########
@@ -77,6 +77,6 @@ export function getTotalForUser(params,headers) {
}
// Obtain the configured coordinator server list
-export function getAllCoordinatorAddrees(params) {
- return http.get('/coordinator/coordinatorList', params, {}, 1)
+export function getAllCoordinatorAddrees(params,headers) {
+ return http.get('/coordinator/coordinators', params, headers, 1)
Review Comment:
> This is a little bit weird.
>
> The RESTful style should be something like: /plural noun /plural noun/id
>
> e.g. /coordinators /coordinators/1
>
> You can refer to https://blog.restcase.com/5-basic-rest-api-design-guidelines/. I don't know if it is convenient for you to refactor this.
The other interfaces did not follow the restful structure, and there was a PR in the front that I wanted to use the restful structure was rejected.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For additional commands, e-mail: issues-help@uniffle.apache.org
Re: [PR] [#1401][part-1] The dashboard supports multiple Coordinator links. [incubator-uniffle]
Posted by "yl09099 (via GitHub)" <gi...@apache.org>.
yl09099 commented on code in PR #1449:
URL: https://github.com/apache/incubator-uniffle/pull/1449#discussion_r1634217061
##########
dashboard/src/main/webapp/src/router/index.js:
##########
@@ -59,6 +59,12 @@ const routes = [
name: 'applicationpage',
component: ApplicationPage,
},
+ {
+ path: '/nullpage',
Review Comment:
> Is this necessary?
This is a must to prevent clicking on the drop-down box to jump to the road with links.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For additional commands, e-mail: issues-help@uniffle.apache.org
Re: [PR] [#1401][part-1] The dashboard supports multiple Coordinator links. [incubator-uniffle]
Posted by "xianjingfeng (via GitHub)" <gi...@apache.org>.
xianjingfeng commented on code in PR #1449:
URL: https://github.com/apache/incubator-uniffle/pull/1449#discussion_r1634592908
##########
dashboard/src/main/java/org/apache/uniffle/dashboard/web/utils/DashboardUtils.java:
##########
@@ -0,0 +1,45 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.uniffle.dashboard.web.utils;
+
+import java.net.MalformedURLException;
+import java.net.URL;
+import java.util.HashMap;
+import java.util.Map;
+
+import com.google.common.collect.Maps;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+public class DashboardUtils {
+ private static final Logger log = LoggerFactory.getLogger(DashboardUtils.class);
+
+ public static Map<String, String> convertToMap(String coordinatorStr) {
+ HashMap<String, String> stringMap = Maps.newHashMap();
Review Comment:
```suggestion
HashMap<String, String> coordinatorAddressMap = Maps.newHashMap();
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For additional commands, e-mail: issues-help@uniffle.apache.org
Re: [PR] [#1401][part-1] The dashboard supports multiple Coordinator links. [incubator-uniffle]
Posted by "xianjingfeng (via GitHub)" <gi...@apache.org>.
xianjingfeng commented on code in PR #1449:
URL: https://github.com/apache/incubator-uniffle/pull/1449#discussion_r1634594833
##########
dashboard/src/test/java/org/apache/uniffle/dashboard/web/utils/DashboardUtilsTest.java:
##########
@@ -0,0 +1,34 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.uniffle.dashboard.web.utils;
+
+import java.util.Map;
+
+import org.junit.jupiter.api.Test;
+
+import static org.junit.jupiter.api.Assertions.assertEquals;
+
+public class DashboardUtilsTest {
+ @Test
+ public void testConvertToMap() {
+ String coordinatorStr =
+ "http://coordinator.hostname00:19998/,http://coordinator.hostname01:19998/,http://coordinator.hostname02:19998/,http://coordinator.hostname03:19998/";
+ Map<String, String> stringStringMap = DashboardUtils.convertToMap(coordinatorStr);
Review Comment:
```suggestion
Map<String, String> coordinatorAddressMap = DashboardUtils.convertToMap(coordinatorStr);
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For additional commands, e-mail: issues-help@uniffle.apache.org
Re: [PR] [#1401][part-1] The dashboard supports multiple Coordinator links. [incubator-uniffle]
Posted by "rickyma (via GitHub)" <gi...@apache.org>.
rickyma commented on code in PR #1449:
URL: https://github.com/apache/incubator-uniffle/pull/1449#discussion_r1634745032
##########
dashboard/src/main/webapp/src/api/api.js:
##########
@@ -77,6 +77,6 @@ export function getTotalForUser(params,headers) {
}
// Obtain the configured coordinator server list
-export function getAllCoordinatorAddrees(params) {
- return http.get('/coordinator/coordinatorList', params, {}, 1)
+export function getAllCoordinatorAddrees(params,headers) {
+ return http.get('/coordinator/coordinators', params, headers, 1)
Review Comment:
`/coordinator/coordinators` is indeed weird. Can you try to find a solution?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For additional commands, e-mail: issues-help@uniffle.apache.org
Re: [PR] [#1401][part-1] The dashboard supports multiple Coordinator links. [incubator-uniffle]
Posted by "yl09099 (via GitHub)" <gi...@apache.org>.
yl09099 commented on code in PR #1449:
URL: https://github.com/apache/incubator-uniffle/pull/1449#discussion_r1627674851
##########
dashboard/src/main/java/org/apache/uniffle/dashboard/web/resource/WebResource.java:
##########
@@ -0,0 +1,31 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.uniffle.dashboard.web.resource;
+
+import org.apache.hbase.thirdparty.javax.ws.rs.Path;
+import org.apache.hbase.thirdparty.javax.ws.rs.Produces;
+import org.apache.hbase.thirdparty.javax.ws.rs.core.MediaType;
+
+@Path("web")
Review Comment:
> I'm not sure if this path is correct. Is the url will be like '/web/coordinator/...'?
In this case, you need to determine whether to perform reverse proxy based on the address prefix.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For additional commands, e-mail: issues-help@uniffle.apache.org
Re: [PR] [#1401][part-1] The dashboard supports multiple Coordinator links. [incubator-uniffle]
Posted by "rickyma (via GitHub)" <gi...@apache.org>.
rickyma commented on PR #1449:
URL: https://github.com/apache/incubator-uniffle/pull/1449#issuecomment-2058943907
ping @xianjingfeng
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For additional commands, e-mail: issues-help@uniffle.apache.org
Re: [PR] [#1401][part-1] The dashboard supports multiple Coordinator links. [incubator-uniffle]
Posted by "xianjingfeng (via GitHub)" <gi...@apache.org>.
xianjingfeng commented on code in PR #1449:
URL: https://github.com/apache/incubator-uniffle/pull/1449#discussion_r1567432220
##########
dashboard/src/main/webapp/vue.config.js:
##########
@@ -16,4 +16,16 @@
*/
module.exports ={
+ // 可以通过配置 vue.config.js 文件来设置代理,以将请求代理到后端服务器。
Review Comment:
Could you translate this sentence into english?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For additional commands, e-mail: issues-help@uniffle.apache.org
Re: [PR] [#1401][part-1] The dashboard supports multiple Coordinator links. [incubator-uniffle]
Posted by "rickyma (via GitHub)" <gi...@apache.org>.
rickyma commented on PR #1449:
URL: https://github.com/apache/incubator-uniffle/pull/1449#issuecomment-2037705235
> > No progress for this? I think we need a more powerful dashboard.
>
> Do you have thought on this? feel free to discuss more here
I believe the dashboard should be updated regularly, as it provides the most intuitive experience for users. And it facilitates the management and operation of the RSS cluster for dev and ops.
I think it could be improved by:
1. https://github.com/apache/incubator-uniffle/issues/1401
2. https://github.com/apache/incubator-uniffle/issues/1618
3. https://github.com/apache/incubator-uniffle/issues/1622
4. https://github.com/apache/incubator-uniffle/issues/1623
5. ... and so on?
@zuston
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For additional commands, e-mail: issues-help@uniffle.apache.org
Re: [PR] [#1401][part-1] The dashboard supports multiple Coordinator links. [incubator-uniffle]
Posted by "rickyma (via GitHub)" <gi...@apache.org>.
rickyma commented on PR #1449:
URL: https://github.com/apache/incubator-uniffle/pull/1449#issuecomment-1892155930
Can we also fix the following spelling issues in this PR?
My suggesion will be:
ResigerTime -> RegistrationTime
in files:
dashboard/src/main/webapp/src/components/shufflecomponent/ActiveNodeListPage.vue
dashboard/src/main/webapp/src/components/shufflecomponent/DecommissionednodeListPage.vue
dashboard/src/main/webapp/src/components/shufflecomponent/DecommissioningNodeListPage.vue
dashboard/src/main/webapp/src/components/shufflecomponent/LostNodeList.vue
dashboard/src/main/webapp/src/components/shufflecomponent/UnhealthyNodeListPage.vue
@yl09099
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For additional commands, e-mail: issues-help@uniffle.apache.org
Re: [PR] [#1401][part-1] The dashboard supports multiple Coordinator links. [incubator-uniffle]
Posted by "yl09099 (via GitHub)" <gi...@apache.org>.
yl09099 commented on code in PR #1449:
URL: https://github.com/apache/incubator-uniffle/pull/1449#discussion_r1460738852
##########
dashboard/src/main/webapp/src/api/api.js:
##########
@@ -16,63 +16,67 @@
*/
import http from "@/utils/http";
-
// Create a Coordinator information interface
-export function getCoordinatorServerInfo(params){
- return http.get('/coordinator/info', params,{})
+export function getCoordinatorServerInfo(params,headers) {
+ return http.get('/coordinator/info', params, headers, 0)
}
// Create a coordinator configuration file interface
-export function getCoordinatorConf(params){
- return http.get('/coordinator/conf', params,{})
+export function getCoordinatorConf(params,headers) {
+ return http.get('/coordinator/conf', params, headers, 0)
}
// Create an interface for the total number of nodes
-export function getShufflegetStatusTotal(params){
- return http.get('/server/nodes/summary', params,{})
+export function getShufflegetStatusTotal(params,headers) {
+ return http.get('/server/nodes/summary', params, headers, 0)
}
// Create an interface for activeNodes
-export function getShuffleActiveNodes(params){
- return http.get('/server/nodes?status=active', params,{})
+export function getShuffleActiveNodes(params,headers) {
+ return http.get('/server/nodes?status=active', params, headers, 0)
}
// Create an interface for lostNodes
-export function getShuffleLostList(params){
- return http.get('/server/nodes?status=lost', params,{})
+export function getShuffleLostList(params,headers) {
+ return http.get('/server/nodes?status=lost', params, headers, 0)
}
// Create an interface for unhealthyNodes
-export function getShuffleUnhealthyList(params){
- return http.get('/server/nodes?status=unhealthy', params,{})
+export function getShuffleUnhealthyList(params,headers) {
+ return http.get('/server/nodes?status=unhealthy', params, headers, 0)
}
// Create an interface for decommissioningNodes
-export function getShuffleDecommissioningList(params){
- return http.get('/server/nodes?status=decommissioning', params,{})
+export function getShuffleDecommissioningList(params,headers) {
+ return http.get('/server/nodes?status=decommissioning', params, headers, 0)
}
// Create an interface for decommissionedNodes
-export function getShuffleDecommissionedList(params){
- return http.get('/server/nodes?status=decommissioned', params,{})
+export function getShuffleDecommissionedList(params,headers) {
+ return http.get('/server/nodes?status=decommissioned', params, headers, 0)
}
// Create an interface for excludeNodes
-export function getShuffleExcludeNodes(params){
- return http.get('/server/nodes?status=excluded', params,{})
+export function getShuffleExcludeNodes(params,headers) {
+ return http.get('/server/nodes?status=excluded', params, headers, 0)
}
// Total number of interfaces for new App
-export function getAppTotal(params){
- return http.get('/app/total', params,{})
+export function getAppTotal(params,headers) {
+ return http.get('/app/total', params, headers, 0)
}
// Create an interface for the app basic information list
-export function getApplicationInfoList(params){
- return http.get('/app/appInfos', params,{})
+export function getApplicationInfoList(params,headers) {
+ return http.get('/app/appInfos', params, headers, 0)
}
// Create an interface for the number of apps for a user
-export function getTotalForUser(params){
- return http.get('/app/userTotal', params,{})
+export function getTotalForUser(params,headers) {
+ return http.get('/app/userTotal', params, headers, 0)
+}
+
+// Obtain the configured coordinator server list
+export function getAllCoordinatorAddrees(params) {
+ return http.get('/coordinatorList', params, {}, 1)
Review Comment:
> Has this interface been committed?
This is the new interface. Get the drop-down list.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For additional commands, e-mail: issues-help@uniffle.apache.org
Re: [PR] [#1401][part-1] The dashboard supports multiple Coordinator links. [incubator-uniffle]
Posted by "yl09099 (via GitHub)" <gi...@apache.org>.
yl09099 commented on code in PR #1449:
URL: https://github.com/apache/incubator-uniffle/pull/1449#discussion_r1634626208
##########
dashboard/src/main/java/org/apache/uniffle/dashboard/web/resource/Response.java:
##########
@@ -0,0 +1,70 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.uniffle.dashboard.web.resource;
+
+public class Response<T> {
Review Comment:
> > Could we move it to the common module? And the same class in the coordinator module.
>
> This Response is in the Coordinator module. The Coordinator module is introduced into the dashboard here, which feels a bit awkward. Just like you said, it needs to be migrated to the common module, but I don't think it should be done in this PR.
I changed it when I introduced the previous code check.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For additional commands, e-mail: issues-help@uniffle.apache.org
Re: [PR] [#1401][part-1] The dashboard supports multiple Coordinator links. [incubator-uniffle]
Posted by "yl09099 (via GitHub)" <gi...@apache.org>.
yl09099 commented on PR #1449:
URL: https://github.com/apache/incubator-uniffle/pull/1449#issuecomment-2160547352
> Left some minor comments. Once done, we can merge this
All done.Thanks!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For additional commands, e-mail: issues-help@uniffle.apache.org
Re: [PR] [#1401][part-1] The dashboard supports multiple Coordinator links. [incubator-uniffle]
Posted by "yl09099 (via GitHub)" <gi...@apache.org>.
yl09099 commented on code in PR #1449:
URL: https://github.com/apache/incubator-uniffle/pull/1449#discussion_r1627672767
##########
dashboard/src/main/webapp/vue.config.js:
##########
@@ -16,4 +16,16 @@
*/
module.exports ={
+ // 可以通过配置 vue.config.js 文件来设置代理,以将请求代理到后端服务器。
Review Comment:
> Could you translate this sentence into english?
done.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For additional commands, e-mail: issues-help@uniffle.apache.org
Re: [PR] [#1401][part-1] The dashboard supports multiple Coordinator links. [incubator-uniffle]
Posted by "zuston (via GitHub)" <gi...@apache.org>.
zuston commented on PR #1449:
URL: https://github.com/apache/incubator-uniffle/pull/1449#issuecomment-2058123539
@xianjingfeng Could you help review this? @xianjingfeng
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For additional commands, e-mail: issues-help@uniffle.apache.org
Re: [PR] [#1401][part-1] The dashboard supports multiple Coordinator links. [incubator-uniffle]
Posted by "xianjingfeng (via GitHub)" <gi...@apache.org>.
xianjingfeng commented on code in PR #1449:
URL: https://github.com/apache/incubator-uniffle/pull/1449#discussion_r1634592057
##########
dashboard/src/main/java/org/apache/uniffle/dashboard/web/resource/Response.java:
##########
@@ -0,0 +1,70 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.uniffle.dashboard.web.resource;
+
+public class Response<T> {
Review Comment:
Could we move it to the common module? And the same class in the coordinator module.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For additional commands, e-mail: issues-help@uniffle.apache.org
Re: [PR] [#1401][part-1] The dashboard supports multiple Coordinator links. [incubator-uniffle]
Posted by "xianjingfeng (via GitHub)" <gi...@apache.org>.
xianjingfeng commented on PR #1449:
URL: https://github.com/apache/incubator-uniffle/pull/1449#issuecomment-2160384163
LGTM except some minor comments. Please take another look @rickyma
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For additional commands, e-mail: issues-help@uniffle.apache.org
Re: [PR] [#1401][part-1] The dashboard supports multiple Coordinator links. [incubator-uniffle]
Posted by "rickyma (via GitHub)" <gi...@apache.org>.
rickyma commented on PR #1449:
URL: https://github.com/apache/incubator-uniffle/pull/1449#issuecomment-2160516016
Left some minor comments.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For additional commands, e-mail: issues-help@uniffle.apache.org
Re: [PR] [#1401][part-1] The dashboard supports multiple Coordinator links. [incubator-uniffle]
Posted by "codecov-commenter (via GitHub)" <gi...@apache.org>.
codecov-commenter commented on PR #1449:
URL: https://github.com/apache/incubator-uniffle/pull/1449#issuecomment-1890989875
## [Codecov](https://app.codecov.io/gh/apache/incubator-uniffle/pull/1449?src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) Report
Attention: `38 lines` in your changes are missing coverage. Please review.
> Comparison is base [(`b43bbd8`)](https://app.codecov.io/gh/apache/incubator-uniffle/commit/b43bbd86349c66e8384a093c3b70293f37689e33?el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) 54.15% compared to head [(`27ab7c7`)](https://app.codecov.io/gh/apache/incubator-uniffle/pull/1449?src=pr&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) 54.15%.
| [Files](https://app.codecov.io/gh/apache/incubator-uniffle/pull/1449?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | Patch % | Lines |
|---|---|---|
| [...g/apache/uniffle/dashboard/web/views/Response.java](https://app.codecov.io/gh/apache/incubator-uniffle/pull/1449?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#diff-ZGFzaGJvYXJkL3NyYy9tYWluL2phdmEvb3JnL2FwYWNoZS91bmlmZmxlL2Rhc2hib2FyZC93ZWIvdmlld3MvUmVzcG9uc2UuamF2YQ==) | 0.00% | [18 Missing :warning: ](https://app.codecov.io/gh/apache/incubator-uniffle/pull/1449?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
| [...e/dashboard/web/views/GainCoordinatorsServlet.java](https://app.codecov.io/gh/apache/incubator-uniffle/pull/1449?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#diff-ZGFzaGJvYXJkL3NyYy9tYWluL2phdmEvb3JnL2FwYWNoZS91bmlmZmxlL2Rhc2hib2FyZC93ZWIvdmlld3MvR2FpbkNvb3JkaW5hdG9yc1NlcnZsZXQuamF2YQ==) | 0.00% | [8 Missing :warning: ](https://app.codecov.io/gh/apache/incubator-uniffle/pull/1449?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
| [...e/uniffle/dashboard/web/proxy/WebProxyServlet.java](https://app.codecov.io/gh/apache/incubator-uniffle/pull/1449?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#diff-ZGFzaGJvYXJkL3NyYy9tYWluL2phdmEvb3JnL2FwYWNoZS91bmlmZmxlL2Rhc2hib2FyZC93ZWIvcHJveHkvV2ViUHJveHlTZXJ2bGV0LmphdmE=) | 0.00% | [6 Missing :warning: ](https://app.codecov.io/gh/apache/incubator-uniffle/pull/1449?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
| [...apache/uniffle/dashboard/web/JettyServerFront.java](https://app.codecov.io/gh/apache/incubator-uniffle/pull/1449?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#diff-ZGFzaGJvYXJkL3NyYy9tYWluL2phdmEvb3JnL2FwYWNoZS91bmlmZmxlL2Rhc2hib2FyZC93ZWIvSmV0dHlTZXJ2ZXJGcm9udC5qYXZh) | 0.00% | [5 Missing :warning: ](https://app.codecov.io/gh/apache/incubator-uniffle/pull/1449?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
| [...he/uniffle/dashboard/web/utils/DashboardUtils.java](https://app.codecov.io/gh/apache/incubator-uniffle/pull/1449?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#diff-ZGFzaGJvYXJkL3NyYy9tYWluL2phdmEvb3JnL2FwYWNoZS91bmlmZmxlL2Rhc2hib2FyZC93ZWIvdXRpbHMvRGFzaGJvYXJkVXRpbHMuamF2YQ==) | 87.50% | [1 Missing :warning: ](https://app.codecov.io/gh/apache/incubator-uniffle/pull/1449?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
<details><summary>Additional details and impacted files</summary>
```diff
@@ Coverage Diff @@
## master #1449 +/- ##
============================================
- Coverage 54.15% 54.15% -0.01%
+ Complexity 2773 2241 -532
============================================
Files 423 352 -71
Lines 24178 15736 -8442
Branches 2057 1432 -625
============================================
- Hits 13094 8522 -4572
+ Misses 10275 6741 -3534
+ Partials 809 473 -336
```
</details>
[:umbrella: View full report in Codecov by Sentry](https://app.codecov.io/gh/apache/incubator-uniffle/pull/1449?src=pr&el=continue&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).
:loudspeaker: Have feedback on the report? [Share it here](https://about.codecov.io/codecov-pr-comment-feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For additional commands, e-mail: issues-help@uniffle.apache.org
Re: [PR] [#1401][part-1] The dashboard supports multiple Coordinator links. [incubator-uniffle]
Posted by "xianjingfeng (via GitHub)" <gi...@apache.org>.
xianjingfeng commented on code in PR #1449:
URL: https://github.com/apache/incubator-uniffle/pull/1449#discussion_r1452058504
##########
dashboard/src/main/webapp/src/pages/CoordinatorServerPage.vue:
##########
@@ -94,17 +95,27 @@ export default {
serverInfo: {}
}
);
- async function getCoordinatorServerConfPage() {
- const res = await getCoordinatorConf();
+ async function getCoordinatorServerConfPage(headers) {
+ const res = await getCoordinatorConf({},headers)
pageData.tableData = res.data.data
}
- async function getCoorServerInfo() {
- const res = await getCoordinatorServerInfo();
+ async function getCoorServerInfo(headers) {
+ const res = await getCoordinatorServerInfo({},headers)
pageData.serverInfo = res.data.data
}
+
+ //The system obtains data from global variables and requests the interface to obtain new data after data changes.
+ const currentServerStore= useCurrentServerStore()
+ currentServerStore.$subscribe((mutable,state)=>{
+ const headrs={"targetAddress":state.currentServer}
Review Comment:
Is it better that passing this parameter through cookie?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For additional commands, e-mail: issues-help@uniffle.apache.org
Re: [PR] [#1401][part-1] The dashboard supports multiple Coordinator links. [incubator-uniffle]
Posted by "xianjingfeng (via GitHub)" <gi...@apache.org>.
xianjingfeng commented on code in PR #1449:
URL: https://github.com/apache/incubator-uniffle/pull/1449#discussion_r1452073603
##########
dashboard/src/main/java/org/apache/uniffle/dashboard/web/views/GainCoordinatorsServlet.java:
##########
@@ -0,0 +1,43 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.uniffle.dashboard.web.views;
+
+import java.io.IOException;
+import java.util.Map;
+import javax.servlet.http.HttpServlet;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+
+import com.google.gson.Gson;
+
+public class GainCoordinatorsServlet extends HttpServlet {
Review Comment:
Could we use jersey?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For additional commands, e-mail: issues-help@uniffle.apache.org
Re: [PR] [#1401][part-1] The dashboard supports multiple Coordinator links. [incubator-uniffle]
Posted by "xianjingfeng (via GitHub)" <gi...@apache.org>.
xianjingfeng commented on PR #1449:
URL: https://github.com/apache/incubator-uniffle/pull/1449#issuecomment-1891536527
If we support this feature, how do we control user access permission in the future? I feel the architecture will become more complex. @yl09099 @zuston @jerqi
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For additional commands, e-mail: issues-help@uniffle.apache.org
Re: [PR] [#1401][part-1] The dashboard supports multiple Coordinator links. [incubator-uniffle]
Posted by "xianjingfeng (via GitHub)" <gi...@apache.org>.
xianjingfeng commented on code in PR #1449:
URL: https://github.com/apache/incubator-uniffle/pull/1449#discussion_r1567447544
##########
dashboard/src/main/java/org/apache/uniffle/dashboard/web/resource/GainCoordinatorsResource.java:
##########
@@ -0,0 +1,49 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.uniffle.dashboard.web.resource;
+
+import java.util.Map;
+import javax.servlet.ServletContext;
+
+import com.google.gson.Gson;
+import org.apache.hbase.thirdparty.javax.ws.rs.GET;
+import org.apache.hbase.thirdparty.javax.ws.rs.Path;
+import org.apache.hbase.thirdparty.javax.ws.rs.Produces;
+import org.apache.hbase.thirdparty.javax.ws.rs.core.Context;
+import org.apache.hbase.thirdparty.javax.ws.rs.core.MediaType;
+
+@Produces({MediaType.APPLICATION_JSON})
+public class GainCoordinatorsResource extends BaseResource {
+
+ @Context protected ServletContext servletContext;
+
+ @GET
+ @Path("/coordinatorList")
+ public Response getCoordinatorServers() {
Review Comment:
```suggestion
public Response<Map<String, String>> getCoordinatorServers() {
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For additional commands, e-mail: issues-help@uniffle.apache.org
Re: [PR] [#1401][part-1] The dashboard supports multiple Coordinator links. [incubator-uniffle]
Posted by "xianjingfeng (via GitHub)" <gi...@apache.org>.
xianjingfeng commented on code in PR #1449:
URL: https://github.com/apache/incubator-uniffle/pull/1449#discussion_r1567457279
##########
dashboard/src/main/java/org/apache/uniffle/dashboard/web/resource/WebResource.java:
##########
@@ -0,0 +1,31 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.uniffle.dashboard.web.resource;
+
+import org.apache.hbase.thirdparty.javax.ws.rs.Path;
+import org.apache.hbase.thirdparty.javax.ws.rs.Produces;
+import org.apache.hbase.thirdparty.javax.ws.rs.core.MediaType;
+
+@Path("web")
Review Comment:
I'm not sure if this path is correct. Is the url will be like '/web/coordinator/...'?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For additional commands, e-mail: issues-help@uniffle.apache.org
Re: [PR] [#1401][part-1] The dashboard supports multiple Coordinator links. [incubator-uniffle]
Posted by "xianjingfeng (via GitHub)" <gi...@apache.org>.
xianjingfeng commented on code in PR #1449:
URL: https://github.com/apache/incubator-uniffle/pull/1449#discussion_r1634588285
##########
dashboard/src/main/java/org/apache/uniffle/dashboard/web/resource/WebResource.java:
##########
@@ -0,0 +1,31 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.uniffle.dashboard.web.resource;
+
+import org.apache.hbase.thirdparty.javax.ws.rs.Path;
+import org.apache.hbase.thirdparty.javax.ws.rs.Produces;
+import org.apache.hbase.thirdparty.javax.ws.rs.core.MediaType;
+
+@Path("web")
+@Produces({MediaType.APPLICATION_JSON})
+public class WebResource {
+ @Path("coordinator")
+ public Class<CoordinatorsResource> getGainCoordinatorsResource() {
Review Comment:
```suggestion
public Class<CoordinatorsResource> getCoordinatorResource() {
```
##########
dashboard/src/main/java/org/apache/uniffle/dashboard/web/resource/CoordinatorsResource.java:
##########
@@ -0,0 +1,47 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.uniffle.dashboard.web.resource;
+
+import java.util.Map;
+import javax.servlet.ServletContext;
+
+import org.apache.hbase.thirdparty.javax.ws.rs.GET;
+import org.apache.hbase.thirdparty.javax.ws.rs.Path;
+import org.apache.hbase.thirdparty.javax.ws.rs.Produces;
+import org.apache.hbase.thirdparty.javax.ws.rs.core.Context;
+import org.apache.hbase.thirdparty.javax.ws.rs.core.MediaType;
+
+@Produces({MediaType.APPLICATION_JSON})
+public class CoordinatorsResource extends BaseResource {
Review Comment:
```suggestion
public class CoordinatorResource extends BaseResource {
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For additional commands, e-mail: issues-help@uniffle.apache.org
Re: [PR] [#1401][part-1] The dashboard supports multiple Coordinator links. [incubator-uniffle]
Posted by "yl09099 (via GitHub)" <gi...@apache.org>.
yl09099 commented on code in PR #1449:
URL: https://github.com/apache/incubator-uniffle/pull/1449#discussion_r1627672331
##########
dashboard/src/main/webapp/package.json:
##########
@@ -32,6 +32,7 @@
"core-js": "^3.8.3",
"element-plus": "^2.3.6",
"moment": "^2.29.4",
+ "pinia": "^2.1.7",
Review Comment:
> I suggest remove `pinia`, we can just use `localStorage`. @yl09099 @zuston @rickyma PTAL
In this case, a global store is required to monitor the address change of the entire page, and localStorage cannot be used, which cannot monitor the change of the requested address.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For additional commands, e-mail: issues-help@uniffle.apache.org
Re: [PR] [#1401][part-1] The dashboard supports multiple Coordinator links. [incubator-uniffle]
Posted by "xianjingfeng (via GitHub)" <gi...@apache.org>.
xianjingfeng commented on code in PR #1449:
URL: https://github.com/apache/incubator-uniffle/pull/1449#discussion_r1464350488
##########
dashboard/src/main/webapp/src/utils/request.js:
##########
@@ -17,21 +17,54 @@
import axios from 'axios'
-const axiosInstance = axios.create({
+/**
+ * The root directory, starting with web, is handled by the dashboard server's servlet
+ * @type {axios.AxiosInstance}
+ */
+const fontEndAxiosInstance = axios.create({
Review Comment:
```suggestion
const frontEndAxiosInstance = axios.create({
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For additional commands, e-mail: issues-help@uniffle.apache.org
Re: [PR] [#1401][part-1] The dashboard supports multiple Coordinator links. [incubator-uniffle]
Posted by "xianjingfeng (via GitHub)" <gi...@apache.org>.
xianjingfeng commented on code in PR #1449:
URL: https://github.com/apache/incubator-uniffle/pull/1449#discussion_r1464359269
##########
dashboard/src/main/webapp/package.json:
##########
@@ -32,6 +32,7 @@
"core-js": "^3.8.3",
"element-plus": "^2.3.6",
"moment": "^2.29.4",
+ "pinia": "^2.1.7",
Review Comment:
I just learned about pinia. Can the data in the store be shared between tabs of a browser?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For additional commands, e-mail: issues-help@uniffle.apache.org
Re: [PR] [#1401][part-1] The dashboard supports multiple Coordinator links. [incubator-uniffle]
Posted by "zuston (via GitHub)" <gi...@apache.org>.
zuston commented on PR #1449:
URL: https://github.com/apache/incubator-uniffle/pull/1449#issuecomment-2034873860
> No progress for this? I think we need a more powerful dashboard.
Do you have thought on this? feel free to discuss more here
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For additional commands, e-mail: issues-help@uniffle.apache.org
Re: [PR] [#1401][part-1] The dashboard supports multiple Coordinator links. [incubator-uniffle]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #1449:
URL: https://github.com/apache/incubator-uniffle/pull/1449#issuecomment-2054013142
## Test Results
2 358 files - 5 2 358 suites - 5 4h 28m 12s :stopwatch: - 2m 14s
913 tests +1 911 :white_check_mark: ±0 1 :zzz: ±0 0 :x: ±0 1 :fire: +1
10 580 runs - 5 10 565 :white_check_mark: - 6 14 :zzz: ±0 0 :x: ±0 1 :fire: +1
For more details on these errors, see [this check](https://github.com/apache/incubator-uniffle/runs/23798426331).
Results for commit b4142f6e. ± Comparison against base commit 6ea43002.
[test-results]:data:application/gzip;base64,H4sIAB+6G2YC/03Myw6DIBCF4VcxrLvgMk60L9MgDAmplwZhZfruBSPU5fkY/oM5P9POnp1U/fDo2J58vG+bgo5+W7MI5KPMlN9juRiFquu1J2NOEn96+0/51cBpP2fgDSiELVwnIa2lKXg/8GvWaDbsm11VqHCrnvseNduy+JgHm0CAdEgcUWprtVHWKZBkJxhxQBIWiIAD+/4AyohKrRIBAAA=
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For additional commands, e-mail: issues-help@uniffle.apache.org
Re: [PR] [#1401][part-1] The dashboard supports multiple Coordinator links. [incubator-uniffle]
Posted by "xianjingfeng (via GitHub)" <gi...@apache.org>.
xianjingfeng commented on code in PR #1449:
URL: https://github.com/apache/incubator-uniffle/pull/1449#discussion_r1452085935
##########
dashboard/src/main/webapp/src/pages/CoordinatorServerPage.vue:
##########
@@ -94,17 +95,27 @@ export default {
serverInfo: {}
}
);
- async function getCoordinatorServerConfPage() {
- const res = await getCoordinatorConf();
+ async function getCoordinatorServerConfPage(headers) {
+ const res = await getCoordinatorConf({},headers)
pageData.tableData = res.data.data
}
- async function getCoorServerInfo() {
- const res = await getCoordinatorServerInfo();
+ async function getCoorServerInfo(headers) {
+ const res = await getCoordinatorServerInfo({},headers)
pageData.serverInfo = res.data.data
}
+
+ //The system obtains data from global variables and requests the interface to obtain new data after data changes.
+ const currentServerStore= useCurrentServerStore()
+ currentServerStore.$subscribe((mutable,state)=>{
+ const headrs={"targetAddress":state.currentServer}
Review Comment:
I think store `targetAddress` to `session` is better.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For additional commands, e-mail: issues-help@uniffle.apache.org
Re: [PR] [#1401][part-1] The dashboard supports multiple Coordinator links. [incubator-uniffle]
Posted by "rickyma (via GitHub)" <gi...@apache.org>.
rickyma commented on PR #1449:
URL: https://github.com/apache/incubator-uniffle/pull/1449#issuecomment-2034781615
No progress for this? I think we need a more powerful dashboard.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For additional commands, e-mail: issues-help@uniffle.apache.org
Re: [PR] [#1401][part-1] The dashboard supports multiple Coordinator links. [incubator-uniffle]
Posted by "xianjingfeng (via GitHub)" <gi...@apache.org>.
xianjingfeng commented on code in PR #1449:
URL: https://github.com/apache/incubator-uniffle/pull/1449#discussion_r1567462586
##########
dashboard/src/main/webapp/src/router/index.js:
##########
@@ -59,6 +59,12 @@ const routes = [
name: 'applicationpage',
component: ApplicationPage,
},
+ {
+ path: '/nullpage',
Review Comment:
Is this necessary?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For additional commands, e-mail: issues-help@uniffle.apache.org
Re: [PR] [#1401][part-1] The dashboard supports multiple Coordinator links. [incubator-uniffle]
Posted by "rickyma (via GitHub)" <gi...@apache.org>.
rickyma commented on PR #1449:
URL: https://github.com/apache/incubator-uniffle/pull/1449#issuecomment-2056918110
This is a flaky test. We can ignore this for now. I have already created an issue for this https://github.com/apache/incubator-uniffle/issues/1628.
It is ready for review? Can anyone review this? We wanna use this on production this month. @yl09099
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For additional commands, e-mail: issues-help@uniffle.apache.org
Re: [PR] [#1401][part-1] The dashboard supports multiple Coordinator links. [incubator-uniffle]
Posted by "yl09099 (via GitHub)" <gi...@apache.org>.
yl09099 commented on code in PR #1449:
URL: https://github.com/apache/incubator-uniffle/pull/1449#discussion_r1460739140
##########
dashboard/src/main/webapp/src/pages/CoordinatorServerPage.vue:
##########
@@ -94,17 +95,27 @@ export default {
serverInfo: {}
}
);
- async function getCoordinatorServerConfPage() {
- const res = await getCoordinatorConf();
+ async function getCoordinatorServerConfPage(headers) {
+ const res = await getCoordinatorConf({},headers)
pageData.tableData = res.data.data
}
- async function getCoorServerInfo() {
- const res = await getCoordinatorServerInfo();
+ async function getCoorServerInfo(headers) {
+ const res = await getCoordinatorServerInfo({},headers)
pageData.serverInfo = res.data.data
}
+
+ //The system obtains data from global variables and requests the interface to obtain new data after data changes.
+ const currentServerStore= useCurrentServerStore()
+ currentServerStore.$subscribe((mutable,state)=>{
+ const headrs={"targetAddress":state.currentServer}
Review Comment:
> Is it better that passing this parameter through cookie?
This is global. The role of cookies is not well understood.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For additional commands, e-mail: issues-help@uniffle.apache.org
Re: [PR] [#1401][part-1] The dashboard supports multiple Coordinator links. [incubator-uniffle]
Posted by "yl09099 (via GitHub)" <gi...@apache.org>.
yl09099 commented on PR #1449:
URL: https://github.com/apache/incubator-uniffle/pull/1449#issuecomment-1902540411
> Can we also fix the following spelling issues in this PR?
>
> My suggesion will be: ResigerTime -> RegistrationTime in files: dashboard/src/main/webapp/src/components/shufflecomponent/ActiveNodeListPage.vue dashboard/src/main/webapp/src/components/shufflecomponent/DecommissionednodeListPage.vue dashboard/src/main/webapp/src/components/shufflecomponent/DecommissioningNodeListPage.vue dashboard/src/main/webapp/src/components/shufflecomponent/LostNodeList.vue dashboard/src/main/webapp/src/components/shufflecomponent/UnhealthyNodeListPage.vue
>
> @yl09099
Have changed.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For additional commands, e-mail: issues-help@uniffle.apache.org
Re: [PR] [#1401][part-1] The dashboard supports multiple Coordinator links. [incubator-uniffle]
Posted by "zuston (via GitHub)" <gi...@apache.org>.
zuston commented on PR #1449:
URL: https://github.com/apache/incubator-uniffle/pull/1449#issuecomment-1891254849
Could you help review this? @xianjingfeng
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For additional commands, e-mail: issues-help@uniffle.apache.org
Re: [PR] [#1401][part-1] The dashboard supports multiple Coordinator links. [incubator-uniffle]
Posted by "rickyma (via GitHub)" <gi...@apache.org>.
rickyma commented on code in PR #1449:
URL: https://github.com/apache/incubator-uniffle/pull/1449#discussion_r1634727835
##########
dashboard/src/main/webapp/src/api/api.js:
##########
@@ -77,6 +77,6 @@ export function getTotalForUser(params,headers) {
}
// Obtain the configured coordinator server list
-export function getAllCoordinatorAddrees(params) {
- return http.get('/coordinator/coordinatorList', params, {}, 1)
+export function getAllCoordinatorAddrees(params,headers) {
+ return http.get('/coordinator/coordinators', params, headers, 1)
Review Comment:
This is a little bit weird.
The RESTful style should be something like:
/plural noun
/plural noun/id
e.g.
/coordinators
/coordinators/1
You can refer to https://blog.restcase.com/5-basic-rest-api-design-guidelines/.
I don't know if it is convenient for you to refactor this.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For additional commands, e-mail: issues-help@uniffle.apache.org
Re: [PR] [#1401][part-1] The dashboard supports multiple Coordinator links. [incubator-uniffle]
Posted by "yl09099 (via GitHub)" <gi...@apache.org>.
yl09099 commented on code in PR #1449:
URL: https://github.com/apache/incubator-uniffle/pull/1449#discussion_r1634628080
##########
dashboard/src/main/java/org/apache/uniffle/dashboard/web/resource/Response.java:
##########
@@ -0,0 +1,70 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.uniffle.dashboard.web.resource;
+
+public class Response<T> {
Review Comment:
> > Could we move it to the common module? And the same class in the coordinator module.
>
> This Response is in the Coordinator module. The Coordinator module is introduced into the dashboard here, which feels a bit awkward. Just like you said, it needs to be migrated to the common module, but I don't think it should be done in this PR.
I'm introducing front-end code inspection to change this.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For additional commands, e-mail: issues-help@uniffle.apache.org
Re: [PR] [#1401][part-1] The dashboard supports multiple Coordinator links. [incubator-uniffle]
Posted by "xianjingfeng (via GitHub)" <gi...@apache.org>.
xianjingfeng commented on code in PR #1449:
URL: https://github.com/apache/incubator-uniffle/pull/1449#discussion_r1634585593
##########
dashboard/src/main/java/org/apache/uniffle/dashboard/web/JettyServerFront.java:
##########
@@ -89,7 +92,9 @@ private void setRootServletHandler() {
HandlerList handlers = new HandlerList();
ResourceHandler resourceHandler = addResourceHandler();
String coordinatorWebAddress = conf.getString(DashboardConf.COORDINATOR_WEB_ADDRESS);
- ServletContextHandler servletContextHandler = addProxyHandler(coordinatorWebAddress);
+ Map<String, String> stringStringMap = DashboardUtils.convertToMap(coordinatorWebAddress);
Review Comment:
```suggestion
Map<String, String> coordinatorAddressMap = DashboardUtils.convertToMap(coordinatorWebAddress);
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For additional commands, e-mail: issues-help@uniffle.apache.org