Remove log-error mysqld_safe option
According to [1], if file name has no extension,
the server adds an extension of ".err".
It causes two different issues.
The first one is impossibility to create /dev/stdout.err file
in newer versions of mysql (5.6.35 at least).
The second one is a potential OOM in case of intensive stderr flow from mysql.
Because the /dev mount point is a devtmpfs which is in-memory pseudo file system.
[1] https://dev.mysql.com/doc/refman/5.6/en/server-options.html#option_mysqld_log-error
Related-Bug: #1657707
Change-Id: I430d8dd085433e8cb84fdf0595b8357758d9ea75
(cherry picked from commit f1de309d58
)
This commit is contained in:
parent
5fe47abd52
commit
1185924083
|
@ -284,8 +284,8 @@ update_node_gtid() {
|
|||
-e "SHOW STATUS LIKE 'wsrep_last_committed'" | awk '{print $NF}')
|
||||
GTID="$CLUSTER_ID:$COMMIT_ID"
|
||||
else
|
||||
GTID=$(${OCF_RESKEY_binary} --wsrep-recover \
|
||||
--log-error=/dev/stdout 2>&1 | grep -e 'Recovered position' -e 'wsrep_start_position' | grep -Eo "${UUID_REGEX}")
|
||||
GTID=$(${OCF_RESKEY_binary} --wsrep-recover 2>&1 | \
|
||||
grep -e 'Recovered position' -e 'wsrep_start_position' | grep -Eo "${UUID_REGEX}")
|
||||
[ -z "${GTID}" ] && GTID=$(cat ${OCF_RESKEY_datadir}/grastate.dat \
|
||||
| awk '/uuid/ { uuid = $NF} /seqno/ { seqno = $NF} END {print uuid":"seqno}')
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue