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

mysqldump: racing condition in STDERR+STDOUT output

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Minor
    • Resolution: Not a Bug
    • 10.3.8
    • N/A
    • Tests
    • 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

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

              Dates

                Created:
                Updated:
                Resolved:

                Git Integration

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