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

Delayed SST when running on unprivileged containers on RHEL9

    XMLWordPrintable

Details

    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
          Daniel Black
        2. joiner.log
          23 kB
          Daniel Black
        3. sst_logs_with_lsof.log
          24 kB
          Andre F de M
        4. sst_logs_without_lsof.log
          26 kB
          Andre F de M

        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:
              Resolved:

              Git Integration

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