Details
-
Bug
-
Status: Closed (View Workflow)
-
Critical
-
Resolution: Fixed
-
10.2.10
-
None
-
10.2.11
Description
To verify the problem patch mysqld_safe like following:
@@ -969,8 +961,6 @@
|
have_sleep=1
|
|
# close stdout and stderr, everything goes to $logging now
|
+log_error this is error message before closing descriptors
|
+log_notice this is notice message before closing descriptos
|
if expr "${-}" : '.*x' > /dev/null
|
then
|
:
|
@@ -979,9 +969,6 @@
|
exec 2>&-
|
fi
|
|
+log_error this is error message after closing descriptors
|
+log_notice this is notice message after closing descriptos
|
+
|
# maximum number of wsrep restarts
|
max_wsrep_restarts=0
|
Now start mysqld_safe with --log-error and observe output like below, which is expected:
# mysqld_safe --log-error=/var/lib/mysql/test.err
|
171109 12:50:55 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
|
171109 12:50:55 mysqld_safe this is error message before closing descriptors
|
171109 12:50:55 mysqld_safe this is notice message before closing descriptos
|
Now examine error log and observe that message 'error message after closing descriptors' is missing:
# cat /var/lib/mysql/test.err
|
171109 12:50:55 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
|
171109 12:50:55 mysqld_safe this is error message before closing descriptors
|
171109 12:50:55 mysqld_safe this is notice message before closing descriptos
|
171109 12:50:55 mysqld_safe this is notice message after closing descriptos
|
2017-11-09 12:50:55 140399771674752 [Note] /usr/sbin/mysqld (mysqld 10.2.10-MariaDB) starting as process 4649 ...
|
Attachments
Issue Links
- duplicates
-
MDEV-14312 Server fails to start when parameter is unknown with no reference to the problem
- Closed
-
MDEV-14488 logging not happening on spider branch builds
- Closed
-
MDEV-14714 mysqld writes status information on HUP signal into innodb data file, breaking it
- Closed
-
MDEV-14797 MariDB 10.2.11 writing errors logs into log_bin_index file
- Closed
-
MDEV-14889 Server fails to start because of aria_log_control-file
- Closed
- is duplicated by
-
MDEV-14644 MariaDB 10.2.11 breaks binary logging after nightly log cycle
- Closed