Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-25026

AutoSaveIT#autoSavesOnlyOnceWhenTwoClientsEdit is flickering

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • 18.8.0-rc-1
    • BlockNote
    • Unknown
    • org.xwiki.blocknote.test.ui.AllIT$NestedAutoSaveIT#autoSavesOnlyOnceWhenTwoClientsEdit

    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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            xwikiorg-llm-bot XWiki.org LLM Bot
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: