This is an automated email from the ASF dual-hosted git repository.
jackie pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pinot.git
The following commit(s) were added to refs/heads/master by this push:
new 566a64402a 12435: fix Cluster Manager error (#12632)
566a64402a is described below
commit 566a64402aa6bbe14b81fae4909a75a6542f47a3
Author: Karthick Venkatesan <[email protected]>
AuthorDate: Thu Mar 21 05:33:46 2024 +0530
12435: fix Cluster Manager error (#12632)
---
.../src/main/resources/app/components/AsyncInstanceTable.tsx | 9 +++++++++
pinot-controller/src/main/resources/app/pages/HomePage.tsx | 1 -
2 files changed, 9 insertions(+), 1 deletion(-)
diff --git
a/pinot-controller/src/main/resources/app/components/AsyncInstanceTable.tsx
b/pinot-controller/src/main/resources/app/components/AsyncInstanceTable.tsx
index d899ead430..67a0a08841 100644
--- a/pinot-controller/src/main/resources/app/components/AsyncInstanceTable.tsx
+++ b/pinot-controller/src/main/resources/app/components/AsyncInstanceTable.tsx
@@ -23,6 +23,7 @@ import { InstanceType, TableData } from 'Models';
import CustomizedTables from './Table';
import PinotMethodUtils from '../utils/PinotMethodUtils';
import Utils from '../utils/Utils';
+import Loading from './Loading';
type BaseProps = {
instanceType: InstanceType;
@@ -99,6 +100,14 @@ export const AsyncInstanceTable = ({
instanceDetails.then((instanceDetailsData) => {
setInstanceData(instanceDetailsData);
});
+ } else if (showInstanceDetails && cluster.length == 0) {
+ instances.then((instancesData) => {
+ const defaultLoadingArray = Array(4).fill(Loading);
+ setInstanceData({
+ columns: instanceColumns,
+ records: [[instancesData[0], ...defaultLoadingArray ]],
+ });
+ });
} else {
instances.then((instancesData) => {
setInstanceData({
diff --git a/pinot-controller/src/main/resources/app/pages/HomePage.tsx
b/pinot-controller/src/main/resources/app/pages/HomePage.tsx
index 472fa01c7e..73f16342cf 100644
--- a/pinot-controller/src/main/resources/app/pages/HomePage.tsx
+++ b/pinot-controller/src/main/resources/app/pages/HomePage.tsx
@@ -204,7 +204,6 @@ const HomePage = () => {
<Box mb={3} />
<TenantsListing />
<Instances clusterName={clusterName} />
-
{taskTypesTable}
<ClusterConfig />
</Grid>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]