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

Delayed SST when running on unprivileged containers on RHEL9

    XMLWordPrintable

Details

    • Bug
    • Status: In Progress (View Workflow)
    • Critical
    • Resolution: Unresolved
    • 10.5.25
    • 10.5, 10.6, 10.11
    • Galera SST
    • None

    Description

      When running with drop privileges on a RHEL9 host, mariadb WSREP reliance on `lsof` may cause SST to take a while before starting. The culprit is wsrep scripts preference for lsof. While ss works alright on these containers, lsof hangs forever, until the timeout defined here:

      https://github.com/MariaDB/server/blob/44b23bb18476b9f2f3d88fabab41f206f3531f98/scripts/wsrep_sst_mariabackup.sh#L802-L819

      is complete.

      Given logic exists to use `lsof`, `sockstat` or `ss`

      https://github.com/MariaDB/server/blob/44974a0788c80ba6b309fc0c05f68f101a40293a/scripts/wsrep_sst_common.sh#L1210-L1228

      CMAKE should be adjusted to list `lsof` as a soft dependency.

      Attachments

        1. docker-compose.yml
          2 kB
        2. joiner.log
          23 kB
        3. sst_logs_with_lsof.log
          24 kB
        4. sst_logs_without_lsof.log
          26 kB

        Activity

          People

            sysprg Julius Goryavsky
            trixpan Andre F de M
            Votes:
            0 Vote for this issue
            Watchers:
            4 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.