This is an automated email from the ASF dual-hosted git repository.
GWphua pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/druid.git
The following commit(s) were added to refs/heads/master by this push:
new 5938d27a3db fix: invalid ISO 8601 start_time placeholder in services
view fallback (#19488)
5938d27a3db is described below
commit 5938d27a3dbb46a9c68491c7c8602e118b9eb3ca
Author: nuyb <[email protected]>
AuthorDate: Thu May 21 15:12:44 2026 +0900
fix: invalid ISO 8601 start_time placeholder in services view fallback
(#19488)
The non-SQL fallback in `ServicesView` builds rows from
`/druid/coordinator/v1/servers?simple`, which does not return
`start_time`, so the column is set to a hardcoded epoch placeholder:
start_time: '1970:01:01T00:00:00Z',
The date portion uses `:` separators instead of `-`, which makes the
literal an invalid ISO 8601 string — `new Date('1970:01:01T00:00:00Z')`
returns `Invalid Date`. The `Start time` column's `formatDate` cell
hands the value to `dayjs(...).toISOString()`, which throws on an
invalid input; the surrounding `try/catch` then falls through and
returns the original string as-is. As a result, clusters where the
console talks to the coordinator without SQL render every row's
`Start time` cell as the literal text `1970:01:01T00:00:00Z` rather
than a parsed date.
Replace the separators with dashes so the placeholder is a valid ISO
8601 epoch timestamp, matching every other ISO 8601 string literal in
the web console (e.g. `doctor-checks.tsx`, `sampler.mock.ts`).
---
web-console/src/views/services-view/services-view.tsx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/web-console/src/views/services-view/services-view.tsx
b/web-console/src/views/services-view/services-view.tsx
index 4b080e58733..e46d4443f62 100644
--- a/web-console/src/views/services-view/services-view.tsx
+++ b/web-console/src/views/services-view/services-view.tsx
@@ -485,7 +485,7 @@ ORDER BY
max_size: s.maxSize,
storage_size: s.maxSize,
effective_size: s.maxSize,
- start_time: '1970:01:01T00:00:00Z',
+ start_time: '1970-01-01T00:00:00Z',
is_leader: 0,
version: '',
build_revision: '',
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]