Skip to content

fix: 🐛 Validate reported Collector time zones - #85

Merged
oxspan merged 1 commit into
developfrom
feature/57-timezone
Nov 12, 2026
Merged

oxspan merged 1 commit into
developfrom
feature/57-timezone

Conversation

@oxspan

@oxspan oxspan commented Nov 12, 2026 •

Copy link
Copy Markdown
Owner

When a Collector runs in KST, declaring the same instants as a Los Angeles storage day can return an empty successful stream. doctor and collector status now expose the reported JVM time-zone ID and the CLI-derived UTC offset at the Collector's clock time, with explicit provenance. Online XLog search, capture, counter history and counter export reject differing offsets with INVALID_ARGUMENT before streams or capture writes; equivalent offsets remain accepted, including historical/DST interval checks.

The ID comes from the existing authenticated SERVER_ENV response, and the offset uses client JDK rules. Missing/unparseable metadata remains unknown. This does not certify the Collector's runtime default, TZDB or fixed-day storage calendar. Storage-date verification remains unverified, and capture schemas remain unchanged. English and Korean guides explain these limits.

Validation: the complete Gradle regression suite passes, line coverage 95.35% and branch coverage 81.11%; release-input checks pass. The 22 new packaged CLI/zone-rule cases also pass on native Windows Java 21. Regression tests fail against the previous CLI and with deliberately broken fallback/DST handling. Actual Java 8 Collector 2.21.3 KST/LA/KST queries change from 3/0/3 records to 3/error2/3; v3 profile capture bytes match the previous CLI and remain readable by its strict reader.

Refs #57

@github-actions

Copy link
Copy Markdown
Contributor

Linux CI: success · Commit 8ac9968

Test results (Linux)

Total Passed Failed Errors Skipped
289 289 0 0 0

Test coverage

Metric Covered / total Coverage Minimum Result
LINE 2277 / 2388 95.35% 90.00% PASS
BRANCH 1370 / 1689 81.11% 80.00% PASS

Includes the test JVM and CLI subprocesses. Excludes optional real-Collector smoke tests.

Workflow logs and report artifacts

Updated on each CI run. Windows checks, when required, are reported separately in the workflow.

@oxspan
oxspan merged commit 10c2019 into develop Nov 12, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant