[SERVER-28095] Clearing the dmesg buffer should not errexit in evergreen.yml Created: 24/Feb/17  Updated: 07/Sep/18  Resolved: 08/Mar/17

Status: Closed
Project: Core Server
Component/s: Testing Infrastructure
Affects Version/s: None
Fix Version/s: 3.4.18, 3.5.5

Type: Bug Priority: Minor - P4
Reporter: Jonathan Abrahams Assignee: Jonathan Abrahams
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v3.4
Sprint: TIG 2017-03-27
Participants:

 Description   

The following code to clear the dmesg buffer exits on error and will not print out the message it was unable to clear the dmesg ring buffer:

        set -o errexit
        set -o verbose
 
        ulimit -a
        # Clear the dmesg ring buffer. The "post" phase will check dmesg for OOM messages.
        ${set_sudo}
        $sudo dmesg -c > /dev/null 2>&1
        if [ $? -eq 0 ]; then
          echo "Cleared the dmesg ring buffer"
        else
          echo "Could not clear the dmesg ring buffer"
        fi

Remove the set -o errexit & set -o verbose lines (verbosity is not required).



 Comments   
Comment by Githook User [ 07/Sep/18 ]

Author:

{'name': 'Jonathan Abrahams', 'email': 'jonathan@mongodb.com', 'username': 'hptabster'}

Message: SERVER-28095 Clearing the dmesg buffer should not errexit in evergreen.yml

(cherry picked from commit 54f3fff857ac66be0cdca5a4ddce9f87a0d80e6a)
Branch: v3.4
https://github.com/mongodb/mongo/commit/2024773ad57afae51c7ee0978d42e60db3b96d6a

Comment by Githook User [ 08/Mar/17 ]

Author:

{u'username': u'hptabster', u'name': u'Jonathan Abrahams', u'email': u'jonathan@mongodb.com'}

Message: SERVER-28095 Clearing the dmesg buffer should not errexit in evergreen.yml
Branch: master
https://github.com/mongodb/mongo/commit/54f3fff857ac66be0cdca5a4ddce9f87a0d80e6a

Generated at Thu Feb 08 04:17:07 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.