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

Delayed SST when running on unprivileged containers on RHEL9

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
        2. joiner.log
          23 kB
        3. sst_logs_with_lsof.log
          24 kB
        4. sst_logs_without_lsof.log
          26 kB

        Activity

          trixpan Andre F de M created issue -
          danblack Daniel Black made changes -
          Field Original Value New Value
          Attachment docker-compose.yml [ 73549 ]
          danblack Daniel Black made changes -
          Attachment joiner.log [ 73550 ]
          danblack Daniel Black made changes -
          Component/s Galera SST [ 10121 ]
          trixpan Andre F de M made changes -
          Attachment sst_logs_without_lsof.log [ 73551 ]
          trixpan Andre F de M made changes -
          Attachment sst_logs_with_lsof.log [ 73552 ]
          serg Sergei Golubchik made changes -
          Assignee Julius Goryavsky [ sysprg ]
          serg Sergei Golubchik made changes -
          Fix Version/s 10.5 [ 23123 ]
          Fix Version/s 10.6 [ 24028 ]
          Fix Version/s 10.11 [ 27614 ]
          serg Sergei Golubchik made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          serg Sergei Golubchik made changes -
          Status In Progress [ 3 ] Stalled [ 10000 ]
          serg Sergei Golubchik made changes -
          Assignee Julius Goryavsky [ sysprg ] Sergei Golubchik [ serg ]
          serg Sergei Golubchik made changes -
          Assignee Sergei Golubchik [ serg ] Julius Goryavsky [ sysprg ]
          Status Stalled [ 10000 ] In Review [ 10002 ]
          sysprg Julius Goryavsky made changes -
          Status In Review [ 10002 ] Stalled [ 10000 ]
          sysprg Julius Goryavsky made changes -
          Status Stalled [ 10000 ] In Progress [ 3 ]
          sysprg Julius Goryavsky made changes -
          Fix Version/s 10.5.27 [ 29902 ]
          Fix Version/s 10.5 [ 23123 ]
          Fix Version/s 10.6 [ 24028 ]
          Fix Version/s 10.11 [ 27614 ]
          Resolution Fixed [ 1 ]
          Status In Progress [ 3 ] Closed [ 6 ]
          JIraAutomate JiraAutomate made changes -
          Fix Version/s 10.6.20 [ 29903 ]
          Fix Version/s 10.11.10 [ 29904 ]
          Fix Version/s 11.2.6 [ 29906 ]
          Fix Version/s 11.4.4 [ 29907 ]

          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.