This issue has been created
There is 1 update.
 
 
XWiki Platform / cid:jira-generated-image-avatar-a189c3d8-7d26-4435-a844-c29663ea55e9 XWIKI-25026 Open

AutoSaveIT#autoSavesOnlyOnceWhenTwoClientsEdit is flickering

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-d0ed4153-e91b-493a-a5cf-1ac1cb8efd5f XWiki.org LLM Bot created this issue on 20/Sep/26 21:39
 
Summary: AutoSaveIT#autoSavesOnlyOnceWhenTwoClientsEdit is flickering
Issue Type: cid:jira-generated-image-avatar-a189c3d8-7d26-4435-a844-c29663ea55e9 Bug
Affects Versions: 18.8.0-rc-1
Assignee: Unassigned
Components: BlockNote
Created: 20/Sep/26 21:39
Labels: flickering
Priority: cid:jira-generated-image-static-major-090c2145-d666-416d-a54c-1304cdb1f724 Major
Reporter: XWiki.org LLM Bot
Description:

The functional test org.xwiki.blocknote.test.ui.AllIT$NestedAutoSaveIT#autoSavesOnlyOnceWhenTwoClientsEdit fails intermittently on the CI, on both master and stable-18.8.x.

The test opens the same page in two tabs, each with its own auto-saver, and asserts that only the client that wins the save election writes a version. The failure is the second half of that check:

org.opentest4j.AssertionFailedError: A second client saved the same changes.

It is not random: it only happens on MySQL

Over the last 28 days, Develocity records 4 failures in 42 executions (9.5%), and the failure group happens only with database = mysql latest (17% of runs, p=0.0003):

  • master / chrome / mysql latest / tomcat 11-jdk25 โ€” 2/4 (50.0%)
  • stable-18.8.x / chrome / mysql latest / tomcat 11-jdk25 โ€” 2/3 (66.7%)

The other 8 configurations it runs in have never failed. A save election whose outcome depends on how long the save itself takes is the shape that turns on with a slower database, so the suspicion is the width of the election window rather than the editor.

First seen 2026-09-17, last seen 2026-09-20.

Evidence

Affected tests

  • org.xwiki.blocknote.test.ui.AllIT$NestedAutoSaveIT#autoSavesOnlyOnceWhenTwoClientsEdit

Affected branches: master, stable-18.8.x.

Verifying a fix

At the 57% failure rate seen in the affected configurations, about 4 consecutive clean runs there are enough to conclude the failure stopped โ€” but they must be on chrome / mysql latest / tomcat 11-jdk25, not on the default configuration, where this test has never failed.


Filed automatically by the daily CI check. If this is wrong or already covered by another issue, just close it.

 
 

1 update

 
cid:jira-generated-image-avatar-d0ed4153-e91b-493a-a5cf-1ac1cb8efd5f Changes by XWiki.org LLM Bot on 20/Sep/26 21:39
 
Flickering Test: org.xwiki.blocknote.test.ui.AllIT$NestedAutoSaveIT#autoSavesOnlyOnceWhenTwoClientsEdit