zmuxuny opened a new pull request, #7390:
URL: https://github.com/apache/rocketmq-dashboard/pull/7390

   ### Which Issue(s) This PR Fixes
   
   Fixes #7152. Replaces stale-closed #7153, preserving its existing 
contribution and current-base merge.
   
   ### Brief Description
   
   Compute the next conversation turn before checking for an active run. A 
delayed idle snapshot must retain the same turn claim as an admission that 
raced with it, so the existing `(conversation_id, turn)` uniqueness check 
rejects the loser with 409 instead of admitting two active runs on different 
turns.
   
   The change is limited to `AiRunService` and its regression test (2 files, 
+67/-3). It adds no lock, transaction, migration, dependency or API change. Run 
replay and conversation deletion remain separate work. Current 
`rocketmq-studio` is `7abf8adaf660d75f2d686bbe8741be76c3a5ddd3`; the tested 
preserved branch head is `dd899d8bae05d7cf79d9674ae0c85e3b88f0c785`.
   
   ### How Did You Test This Change?
   
   Fresh local verification on November 4, 2026, with Temurin 21.0.13 and Maven 
3.9.9:
   
   - `mvn -B -ntp -Dtest=AiRunServiceTest test`: 36/36 passed, zero 
failures/errors/skips.
   - Negative control: kept the new parameterized regression but replaced only 
`AiRunService.java` with current upstream. 
`racingAdmissionMustKeepTheTurnClaimFromBeforeTheIdleCheckTest` had one 
expected assertion failure and one passing control. The `activeLookup` 
interleaving admitted two QUEUED rows at turns 1 and 2; the `timelineSeed` 
same-turn uniqueness control remained passing.
   - Restored the exact candidate source and ran all 16 test classes in the 
conversation package via `mvn -B -ntp -Dtest=<all conversation test classes> 
test`: 244/244 passed, zero failures/errors/skips. This includes the 36 service 
tests, 9 H2 persistence integration tests and 4 schema migration tests.
   - RAT and Checkstyle passed in the normal Maven lifecycle; `git diff 
--check` and the final clean-tree check passed.
   
   The existing Mockito 5.23.0 agent was supplied through a local 
`-DargLine=-javaagent:<Mockito JAR>` because dynamic attachment is unavailable 
in this test environment. No POM, dependency, timeout or assertion was weakened.
   
   The regression runs the real admission/event-sink/registry logic with 
controlled repository and executor boundaries. It is not a multi-connection 
MySQL isolation demonstration or a live-provider test. H2 persistence/migration 
coverage is separate. The complete backend aggregate and frontend were not 
rerun locally; the old PR's historical frontend CI failure is not claimed to be 
resolved by these tests. New full CI results will be recorded here.
   
   AI assistance was used for investigation and validation. The source, 
repository-query ordering and existing unique constraint were reviewed 
independently.
   


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