This is an automated email from the ASF dual-hosted git repository.
yashmayya 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 9e22441a20f Fixed loading the zookeeper browser page is failing
(#16440)
9e22441a20f is described below
commit 9e22441a20f1f6e9cbd9381af1cea512920dae46
Author: Himanshu Verma <[email protected]>
AuthorDate: Tue Jul 29 15:00:26 2025 +0530
Fixed loading the zookeeper browser page is failing (#16440)
---
.../src/main/resources/app/utils/PinotMethodUtils.ts | 19 ++++++++++++++-----
1 file changed, 14 insertions(+), 5 deletions(-)
diff --git a/pinot-controller/src/main/resources/app/utils/PinotMethodUtils.ts
b/pinot-controller/src/main/resources/app/utils/PinotMethodUtils.ts
index 8f27aab0fae..e29ffff3583 100644
--- a/pinot-controller/src/main/resources/app/utils/PinotMethodUtils.ts
+++ b/pinot-controller/src/main/resources/app/utils/PinotMethodUtils.ts
@@ -737,16 +737,25 @@ const getZookeeperData = (path, count) => {
isLeafNode: false,
hasChildRendered: true
}];
- return getNodeData(path).then((obj)=>{
+
+ return getNodeData(path).then((obj) => {
const { currentNodeData, currentNodeMetadata, currentNodeListStat } = obj;
- const pathNames = Object.keys(currentNodeListStat);
- pathNames.map((pathName)=>{
+ const pathNames = Object.keys(currentNodeListStat || {});
+
+ pathNames.forEach((pathName) => {
+ const nodeStat = currentNodeListStat[pathName];
+
+ // Skip if nodeStat is null or undefined
+ if (!nodeStat) {
+ console.warn(`Skipping null node for path: ${pathName}`);
+ return;
+ }
newTreeData[0].child.push({
nodeId: `${counter++}`,
label: pathName,
- fullPath: path === '/' ? path+pathName : `${path}/${pathName}`,
+ fullPath: path === '/' ? path + pathName : `${path}/${pathName}`,
child: [],
- isLeafNode: currentNodeListStat[pathName].numChildren === 0,
+ isLeafNode: nodeStat.numChildren === 0,
hasChildRendered: false
});
});
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]