Commit Graph

23 Commits

Author SHA1 Message Date
Michal Schorm
fd05b59be6 [2/2] FMT - Use pre-downloaded bundle of FMT sources 2024-01-25 15:00:24 +01:00
Michal Schorm
67b63081d3 [1/2] FMT - FMT isn't available in RHEL 2024-01-24 12:14:24 +01:00
Michal Schorm
670c3889f6 [2/2] Rebase to 10.11.6 - start using upstream logrotate file
Explanation for removed notes follow:

| * Enable creation of the log file by logrotate (needed since
|   /var/log/ isn't writable by mysql user); and set the same 640
|   permissions we normally use.

This is an ancient artefact.
It originates in this commit from 2012 in the 'mysql' package in Fedora:
  https://src.fedoraproject.org/rpms/mysql/c/d3bdaa4a?branch=rawhide
That was at the time, when the DB log resided directly in '/var/log/', rather than '/var/log/some-dir-specific-for-the-DB/'.
Since that is no longer the case, the 'create 600 mysql mysql' directive is no longer necessary.

| * Comment out the actual rotation commands, so that user must edit
|   the file to enable rotation.  This is unfortunate, but the fact
|   that the script will probably fail without manual configuration
|   (to set a root password) means that we can't really have it turned
|   on by default.  Fortunately, in most configurations the log file
|   is low-volume and so rotation is not critical functionality.

This is no longer true.
Since MariaDB 10.4, which introduced authentication via the UNIX socket,
the 'root' and 'mysql' users can authenticate without login and password.

So we can go back to using 'mysqladmin', or 'mariadb-admin' in this case, to flush logs

| See discussions at RH bugs 799735, 547007
| * Note they are from Fedora 15 / 16

I found no more useful information there. Only information already mentioned in other notes here.

| Update 3/2017
| * it would be big unexpected change for anyone upgrading, if we start shipping it now.
|  Maybe it is good candidate for shipping with MariaDB 10.2 ?

Introduction of MariaDB 10.11 is the perfect time.

| * the 'mysqladmin flush logs' doesn´t guarantee, no entries are lost
|   during flushing, the operation is not atomic.
|   We should not ship it in that state

True, however, no one likely cares about that, in reality, since those logs don't hold any journal-like entries.
Explained here:
  https://github.com/MariaDB/server/pull/1556#issuecomment-941886220

| Update 6/2018
| * the SIGHUP causes server to flush all logs. No password admin needed, the only constraint is
|   beeing able to send the SIGHUP to the process and read the mysqld pid file, which root can.
| * Submited as PR: https://github.com/MariaDB/server/pull/807

It has been dicussed on the upstream thoroughly and was found far from ideal.
Now, that we can use 'mysqladmin', or 'mariadb-admin' in this case, safely again,
there's no argument to keep using the PID file for flushing logs.

| Update 02/2021
| * Enhance the script as proposed in:
|   https://mariadb.com/kb/en/rotating-logs-on-unix-and-linux/

Enhanced again now. Significantly this time, however with a vision that the values will become an OS-independent defaults.

|  * Discussion continues in:
|   https://jira.mariadb.org/browse/MDEV-16621

Discussion finished.
Better start a new one, if needed.
2024-01-24 12:13:53 +01:00
Michal Schorm
6f385ec682 [1/2] Rebase to 10.11.6 - rebase 2024-01-24 12:13:34 +01:00
Michal Schorm
ea7e915917 Rebase to 10.10.7 2024-01-24 12:13:25 +01:00
Michal Schorm
574857f9fe Rebase to 10.9.8 2024-01-24 12:13:14 +01:00
Michal Schorm
7d55bb1fa2 Rebase to 10.8.8 2024-01-24 12:12:51 +01:00
Michal Schorm
6506876238 Rebase to 10.7.8 2024-01-24 12:12:44 +01:00
Michal Schorm
c6dc9cf006 [3/3] Rebase to 10.6.16
update sources to the 10.6.16
2024-01-24 12:12:33 +01:00
Michal Schorm
c86b2db614 [2/3] Rebase to 10.6.16
Revert "Introduce the script for generating sources tarball without a code under a license which was not yet approved for Fedora or RHEL"
This reverts commit 7f8a0e15a6.

Note: MariaDB upstream removed TokuDB SE sources in 10.6.0
2024-01-24 12:11:53 +01:00
Michal Schorm
7ed60829d3 [1/3] Rebase to 10.6.16
new sources are intentionally omitted from this commit
2024-01-24 12:07:48 +01:00
Lukas Javorsky
8b8c7565d1 Testsuite verification for 10.5.22 version on CentOS Stream 8
Related: RHEL-8419
2023-10-03 08:22:11 +00:00
Michal Schorm
ea10bbbeef [1/2] Rebase to version 10.5.22
Fedora commit: a0c21fd5cf

Upstream Release notes:
https://mariadb.com/kb/en/mariadb-10-5-22-release-notes/

Related: RHEL-8419
2023-10-03 08:22:11 +00:00
Michal Schorm
b2a0bce900 Rebase to 10.5.21
Fedora commit: e04eb650af

Related: RHEL-8419
2023-10-03 08:22:11 +00:00
Michal Schorm
ba83f76d87 Testsuite verification for 10.5.20 version
Fedora commit: a6a41d44d0

- skipped test lists format fixed
- code for applying skipped tests list added to the SPIDER suites

Related: RHEL-8419
2023-10-03 08:22:11 +00:00
Michal Schorm
8de870fe00 Save SPIDER tests data on disk, rather than to memory
Fedora commit: be7c99651a

I've encountered this strange behaviour, staring with MariaDB 10.5.20.
The SPIDER tests, and only them, started to fail in 100% cases on all arches
with wide range of "no space left on device" like errors.

This is interesting, as simmilar issues occured before
only on specific arches or build systems.

I've thought that maybe the full suite, which run before the spider tests,
have left over some data in the memory which would leave less space for the
spider tests.
However swapping order - running the spider test first and the full suite
later didn't help anyhow. The spider tests failed rightaway.

Also, it's interesting that running just the main suite in memory is possible.
This observation should rule out changes in the build system (lowering the
memory limits for builders), as I'd expect that the main suite woould have much
bigger memory need than the spider tests.

--

This leads to a possibility that there is actually a bug in the spider engine
or tests, which cause the unexpected larger memory consumption.
This should be examined further. Sadly I don't have capacity for it now.

Related: RHEL-8419
2023-10-03 08:22:11 +00:00
Lukas Javorsky
bf226e4d45 Pcre2 bundled version bump and changed GitHub project name
Fedora commit: 40d8f32182

Pcre2 version bumped to 10.42.
Also pcre2 github project name has been changed to PCRE2Project.

Related: RHEL-8419
2023-10-03 08:22:11 +00:00
Siddhesh Poyarekar
fbadaf5b92 Use _fortify_level to disable fortification in debug builds
Fedora commit: cb41bf05f1

Related: RHEL-8419
2023-10-03 08:22:11 +00:00
Lukas Javorsky
f6b2adba64 Rebase to version 10.5.20
Fedora commit: b6ec88a877

Resolves: RHEL-5476
2023-10-03 08:22:04 +00:00
Michal Schorm
ace2c9d764 Rebase to 10.5.18
Fedora commit: 9f12d914a4

Resolves: RHEL-8419 RHEL-5466
2023-09-29 11:56:46 +00:00
Brian Stinson
86f9a28632 resync
Signed-off-by: Brian Stinson <bstinson@redhat.com>
2023-04-27 17:58:07 -05:00
James Antill
b859670e4c Import rpm: d1343aa77b7c215b0b93ea3394854ea321fd8e77 2023-02-23 20:16:42 -05:00
James Antill
52089c9b4c Import rpm: d1343aa77b7c215b0b93ea3394854ea321fd8e77 2023-02-20 01:58:35 -05:00