shuke987 opened a new pull request, #62529:
URL: https://github.com/apache/doris/pull/62529
## Summary
- `DynamicPartitionScheduler.setStorageMediumProperty` formats cooldown time
in partition timezone but `PropertyAnalyzer.analyzeDataProperty` parses it in
FE server timezone — classic implicit-timezone bug
- When `dynamic_partition.time_zone` differs from FE timezone (e.g.,
`Europe/London` vs `CST`), cooldown time shifts by the offset (up to ±15h),
causing intermittent `Cool down time should later than now` error
- Fix: parse partition-timezone string → `ZonedDateTime` with correct zone →
epoch ms → `TimeUtils.longToTimeString()` (FE timezone), matching what
`analyzeDataProperty` expects
## Changes
- `DynamicPartitionScheduler.java`: 10-line fix in
`setStorageMediumProperty` else branch
- `DynamicPartitionTableTest.java`: 3 new test cases covering:
1. DAY granularity + UTC+0 timezone (8h diff from CST)
2. HOUR granularity + America/Los_Angeles (15-16h diff from CST)
3. Same timezone as FE (regression guard)
Each test independently computes the expected cooldown epoch and asserts ≤1h
deviation — catches the 8-15h timezone shift regardless of when the test runs.
Closes DORIS-25127
## Test plan
- [ ] FE UT:
`DynamicPartitionTableTest.testHotPartitionCooldownTimeWithNonDefaultTimezone`
- [ ] Verify usercases.XB.load.load passes in branch-4.1 Usercase pipeline
🤖 Generated with [Claude Code](https://claude.com/claude-code)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]