You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@druid.apache.org by fj...@apache.org on 2019/12/24 03:32:23 UTC
[druid] branch 0.17.0-incubating updated: make supervisor
statistics dialog more robust (#9089) (#9093)
This is an automated email from the ASF dual-hosted git repository.
fjy pushed a commit to branch 0.17.0-incubating
in repository https://gitbox.apache.org/repos/asf/druid.git
The following commit(s) were added to refs/heads/0.17.0-incubating by this push:
new 2808a1e make supervisor statistics dialog more robust (#9089) (#9093)
2808a1e is described below
commit 2808a1e66b14d9aa621c2e668749f0877b80a7c7
Author: Clint Wylie <cw...@apache.org>
AuthorDate: Mon Dec 23 19:32:15 2019 -0800
make supervisor statistics dialog more robust (#9089) (#9093)
---
.../supervisor-statistics-table/supervisor-statistics-table.tsx | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/web-console/src/components/supervisor-statistics-table/supervisor-statistics-table.tsx b/web-console/src/components/supervisor-statistics-table/supervisor-statistics-table.tsx
index 67afd0a..6f0cc7d 100644
--- a/web-console/src/components/supervisor-statistics-table/supervisor-statistics-table.tsx
+++ b/web-console/src/components/supervisor-statistics-table/supervisor-statistics-table.tsx
@@ -123,9 +123,13 @@ export class SupervisorStatisticsTable extends React.PureComponent<
},
];
- if (data && data.length) {
+ const movingAveragesBuildSegments = deepGet(
+ data as any,
+ '0.summary.movingAverages.buildSegments',
+ );
+ if (movingAveragesBuildSegments) {
columns = columns.concat(
- Object.keys(deepGet(data[0], 'summary.movingAverages.buildSegments'))
+ Object.keys(movingAveragesBuildSegments)
.sort((a, b) => a.localeCompare(b, undefined, { numeric: true }))
.map(
(interval: string): Column<TableRow> => {
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org