Uploaded image for project: 'WiredTiger'
  1. WiredTiger
  2. WT-9949

Set core file pattern on static hosts at beginning of Evergreen tasks

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
    • 2
    • StorEng - Defined Pipeline

      Static Evergreen hosts (e.g. PPC or zSeries) aren't ephemeral, and config changes made by both our project and others will stick around between tasks.

      The "core file pattern" (/proc/sys/kernel/core_pattern) is one such config change. This file tells Linux how to dump a process's memory and generate a core file, and can either be an executable to call (e.g. systemd-coredump) or a simple file pattern that will end up in the current directory.

      Unfortunately, other tasks that run on these hosts sometimes change the core pattern. When we get a test failure, the core file will thus end up somewhere other than we expect (i.e. the current working directory). It can be manually fixed by running echo 'dump_%e.%p.core' > /proc/sys/kernel/core_pattern as root, so we should look into automatically doing this for some tasks.

      Two notes: we may not have permissions to touch that file, and it's not a problem on dynamic hosts (e.g. Ubuntu ARM or x86) since those spin up a new machine each time.

            Assignee:
            backlog-server-storage-engines [DO NOT USE] Backlog - Storage Engines Team
            Reporter:
            will.korteland@mongodb.com Will Korteland
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: