Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-42244

multi_source.mix_semisync_async fails: Rpl_semi_sync_slave_send_ack is one lower than the result file

    XMLWordPrintable

Details

    Description

      multi_source.mix_semisync_async fails on 11.4, 11.8, 12.3, 13.1 and main with a result content mismatch: Rpl_semi_sync_slave_send_ack is one lower than the value recorded in the result file.

      Build Run Info

      Branch Builder name Date Commit Variant
      11.4 amd64-ubuntu-2404 2026-11-09T13:25:48Z 707efb615611d7d56153cee6747d060ab91bf8a3 none
      11.8 amd64-ubuntu-2204-icc 2026-11-04T03:13:29Z 0c8af88370fd4621ac06da1711d461c50fa3e450 none
      12.3 amd64-ubuntu-2204-icc 2026-11-03T11:33:24Z f74586eebfe2a186087cfdda42be2d0ba398f01c none
      13.1 amd64-ubuntu-2604 2026-11-11T21:50:16Z 19c90297d6feee0a50fde600b7e65eb07f8f777c none
      main amd64-almalinux-8-bintar 2026-11-05T08:16:46Z d4923790d55a88be585f5136d591df1cb005889f none

      Failure text

      multi_source.mix_semisync_async          w14 [ fail ]
              Test ended at 2026-11-11 20:51:46
       
      CURRENT_TEST: multi_source.mix_semisync_async
      --- /home/buildbot/amd64-ubuntu-2604/build/mysql-test/suite/multi_source/mix_semisync_async.result	2026-11-11 14:55:01.000000000 +0000
      +++ /home/buildbot/amd64-ubuntu-2604/build/mysql-test/suite/multi_source/mix_semisync_async.reject	2026-11-11 20:51:46.252476311 +0000
      @@ -78,7 +78,7 @@
       connection slave;
       SHOW STATUS LIKE 'Rpl_semi_sync_slave_send_ack';
       Variable_name	Value
      -Rpl_semi_sync_slave_send_ack	1
      +Rpl_semi_sync_slave_send_ack	0
       SET @@SESSION.default_master_connection= 'master2';
       include/stop_slave.inc
       SHOW STATUS LIKE 'Rpl_semi_sync_slave_status';
      @@ -92,7 +92,7 @@
       connection slave;
       SHOW STATUS LIKE 'Rpl_semi_sync_slave_send_ack';
       Variable_name	Value
      -Rpl_semi_sync_slave_send_ack	2
      +Rpl_semi_sync_slave_send_ack	1
       SET @@SESSION.default_master_connection= 'master1';
       include/stop_slave.inc
       # Cleanup
       
      Result content mismatch
       
       - saving '/home/buildbot/amd64-ubuntu-2604/build/mysql-test/var/14/log/multi_source.mix_semisync_async/' to '/home/buildbot/amd64-ubuntu-2604/build/mysql-test/var/log/multi_source.mix_semisync_async/'
       
      Retrying test multi_source.mix_semisync_async, attempt(2/3)...

      Row shown: 13.1, amd64-ubuntu-2604, 2026-11-11T21:50:16Z. The other rows differ in paths, timestamps and in which of the Rpl_semi_sync_slave_send_ack lines of the diff are affected (see Analysis).

      Analysis

      The test came with the MDEV-32947 fix (commit 40cae5d6ed5f, MDEV-32947 Async conflicts with semi-sync in multi-source, pull request 5615, merged into 11.4 on 2026-10-18) and exists on 11.4 and later only. Before the merge the pull request head failed 7 times between 2026-08-29 and 2026-08-31, each time with an additional Rpl_semi_sync_master_clients mismatch (0 instead of 1). After the merge the first failures are on 11.4 on 2026-10-21, 13.1 on 2026-10-31, 12.3 on 2026-11-03, main on 2026-11-03 and 11.8 on 2026-11-04. From 2026-10-21 to 2026-11-12 the report holds 90 rows, all without a variant: 13 on release branches (11.4 6, 13.1 3, main 2, 11.8 1, 12.3 1) on 11 builders and 77 on pull request and bb-* heads, 3 of which keep only the end of the output. The failing check is always SHOW STATUS LIKE 'Rpl_semi_sync_slave_send_ack' right after --sync_with_master (mix_semisync_async.inc:63 and mix_semisync_async.inc:80), and the value read is one lower than in the result file: 0 instead of 1 at result line 81 (56 rows) and 1 instead of 2 at result lines 41 (10 rows) and 95 (34 rows); 13 rows fail at both 81 and 95. Many builders are affected (29 in all), so the failure is not tied to one builder. MDEV-41014 (the counter is zeroed by START SLAVE while another connection is active) and MDEV-40958 (ACK replying stays off after one failed reply) concern the same counter and the same ACK path; whether either plays a part in these failures is not established.

      Created via the mtr-failure-create-bug skill.

      Attachments

        Issue Links

          Activity

            People

              susil.behera Susil Behera
              susil.behera Susil Behera
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.