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

mysqldump: racing condition in STDERR+STDOUT output

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Not a Bug
    • Affects Version/s: 10.3.8
    • Fix Version/s: N/A
    • Component/s: Tests
    • Labels:
      None

      Description

      There can be test failure when mysqldump is executed like this:

      --exec $MYSQL_DUMP ... 2>&1
      

      STDERR is joined to STDOUT while STDOUT buffer is in undetermined state.

      Fix

      Call fflush(md_result_file) before each fprintf(stderr, ...). Better ensure that md_result_file is STDOUT, otherwise flush is not needed.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              midenok Aleksey Midenkov
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Git Integration