RockteMQ-AI commented on issue #4573:
URL: 
https://github.com/apache/rocketmq-dashboard/issues/4573#issuecomment-5747789331

   **Issue Evaluation**
   
   Category: `bug` | Status: **Confirmed**
   
   The reported issue has been verified against the current codebase (commit 
`d50ffecc`).
   
   **Root Cause:** `server/src/main/resources/db/schema.sql` defines 
`last_seen_at DATETIME` (and `expires_at`, `revoked_at`) without 
fractional-second precision. MySQL `DATETIME` without precision stores only 
whole seconds. The integration test `AuthServiceSessionOverviewIntegrationTest` 
uses `LocalDateTime.now(ZoneOffset.UTC)` which has nanosecond precision. When 
the test reads the session back from H2/MySQL, the sub-second part is 
truncated, making `lastSeenAt` earlier than the original `now` — causing 
`isAfterOrEqualTo(now)` to fail.
   
   **Impact:** Test-only — `AuthServiceSessionOverviewIntegrationTest` is 
flaky, failing intermittently depending on when within the second the test runs.
   
   **Severity:** low (test reliability, not production behavior)
   
   An automated fix proposal can be generated. Reply `/approve` to proceed with 
PR generation.
   
   ---
   *Automated evaluation by RockteMQ-AI*


-- 
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]

Reply via email to