MariaDB server is a community developed fork of MySQL server. Started by core members of the original MySQL team, MariaDB actively works with outside developers to deliver the most featureful, stable, and sanely licensed open SQL server in the industry.
Find a file
Brandon Nesterenko 46c3e7e353 MDEV-20215: binlog.show_concurrent_rotate failed in buildbot with wrong result
Problem:
=======
There are two issues that are addressed in this patch:
 1) SHOW BINARY LOGS uses caching to store the binary logs that exist
in the log directory; however, if new events are written to the logs,
the caching strategy is unaware. This is okay for users, as it is
okay for SHOW to return slightly old data. The test, however, can
result in inconsistent data. It runs two connections concurrently,
where one shows the logs, and the other adds a new file. The output
of SHOW BINARY LOGS then depends on when the cache is built, with
respect to the time that the second connection rotates the logs.
 2) There is a race condition between RESET MASTER and SHOW BINARY
LOGS. More specifically, where they both need the binary log lock to
begin, SHOW BINARY LOGS only needs the lock to build its cache. If
RESET MASTER is issued after SHOW BINARY LOGS has built its cache and
before it has returned the results, the presented data may be
incorrect.

Solution:
========
 1) As it is okay for users to see stale data, to make the test
consistent, use DEBUG_SYNC to force the race condition (problem 2) to
make SHOW BINARY LOGS build a cache before RESET MASTER is called.
Then, use additional logic from the next part of the solution to
rebuild the cache.
 2) Use an Atomic_counter to keep track of the number of times RESET
MASTER has been called. If the value of the counter changes after
building the cache, the cache should be rebuilt and the analysis
should be restarted.

Reviewed By:
============
Andrei Elkin: <andrei.elkin@mariadb.com>
2021-08-13 10:53:19 -06:00
BUILD Fixed that compile-pentium64-valgrind-max works 2021-06-02 18:54:49 +03:00
client Merge 10.3 into 10.4 2021-06-21 12:38:25 +03:00
cmake Merge branch '10.3' into 10.4 2021-07-31 22:59:58 +02:00
dbug Merge 10.2 into 10.3 2021-05-24 09:38:49 +03:00
debian Merge branch '10.3' into 10.4 2021-07-31 22:59:58 +02:00
Docs Merge branch '10.3' into 10.4 2019-06-14 22:10:50 +02:00
extra mariabackup - fix string format in error message 2021-08-11 11:40:56 +02:00
include Merge branch '10.3' into 10.4 2021-07-31 22:59:58 +02:00
libmariadb@0cc16f18c1 latest C/C 2021-07-27 20:44:46 +02:00
libmysqld Merge branch bb-10.3-release into bb-10.4-release 2021-05-05 23:03:01 +03:00
libservices Merge branch '10.3' into 10.4 2019-05-19 20:55:37 +02:00
man Merge 10.3 into 10.4 2021-04-21 07:58:42 +03:00
mysql-test MDEV-20215: binlog.show_concurrent_rotate failed in buildbot with wrong result 2021-08-13 10:53:19 -06:00
mysys Merge branch '10.3' into 10.4 2021-07-31 22:59:58 +02:00
mysys_ssl Merge 10.3 into 10.4 2020-10-22 13:27:18 +03:00
pcre Merge branch '10.2' into 10.3 2021-07-29 13:51:02 +02:00
plugin Merge branch '10.3' into 10.4 2021-07-31 22:59:58 +02:00
randgen/conf Group commit for maria engine. 2010-02-12 15:12:28 +02:00
scripts Merge branch '10.3' into 10.4 2021-07-31 22:59:58 +02:00
sql MDEV-20215: binlog.show_concurrent_rotate failed in buildbot with wrong result 2021-08-13 10:53:19 -06:00
sql-bench Merge 10.2 into 10.3 2020-07-02 06:17:51 +03:00
sql-common Merge branch '10.3' into 10.4 2020-09-28 17:55:39 +05:30
storage Merge branch '10.3' into 10.4 2021-08-02 16:50:28 +02:00
strings Fix all warnings given by UBSAN 2021-04-20 12:30:09 +03:00
support-files Merge branch '10.3' into 10.4 2021-07-31 22:59:58 +02:00
tests MENT-1019. 2021-08-11 23:00:37 +04:00
unittest Merge branch 'bb-10.3-release' into bb-10.4-release 2021-02-12 17:44:22 +01:00
vio Merge 10.3 into 10.4 2021-03-27 17:12:28 +02:00
win Merge 10.3 into 10.4 2021-06-08 15:02:40 +03:00
wsrep-lib@c45b1eff94 Update result files for Galera library 26.4.9 2021-07-27 10:34:45 +03:00
zlib Merge branch '10.3' into 10.4 2020-12-25 09:13:28 +01:00
.clang-format .clang-format - do not sort include files. 2019-12-03 22:22:23 +01:00
.gitattributes Merge branch '10.0' into 10.1 2018-05-05 14:01:59 +02:00
.gitignore Merge 10.3 -> 10.4 2021-06-30 18:41:46 +03:00
.gitmodules Fix github urls of submodules 2019-07-02 17:25:36 +04:00
.travis.compiler.sh travis: use galera-4 in 10.4 branch (#1226) 2019-03-14 08:20:32 +02:00
.travis.yml Merge 10.3 into 10.4 2020-09-03 15:53:38 +03:00
appveyor.yml appveyor: config backport from 10.2 2020-04-13 13:49:41 +03:00
BUILD-CMAKE Minor spelling fixes in code comments, docs and output 2018-01-12 16:49:02 +02:00
CMakeLists.txt Merge branch '10.3' into 10.4 2021-07-31 22:59:58 +02:00
config.h.cmake Merge 10.3 into 10.4 2021-03-27 17:12:28 +02:00
configure.cmake Merge branch '10.3' into 10.4 2021-07-31 22:59:58 +02:00
CONTRIBUTING.md Add CONTRIBUTING file and modify README file about live QA regarding new contributors 2018-12-04 23:15:33 +04:00
COPYING Update FSF Address 2019-05-11 21:29:06 +03:00
CREDITS Update sponsors 2021-03-12 07:02:29 +11:00
INSTALL-SOURCE Update AskMonty and Atlassian references to MariaDB 2016-03-08 15:24:01 +02:00
INSTALL-WIN-SOURCE Update AskMonty and Atlassian references to MariaDB 2016-03-08 15:24:01 +02:00
KNOWN_BUGS.txt Changed some MySQL names in messages to MariaDB 2018-12-09 20:49:05 +02:00
README.md Merge 10.3 into 10.4 2021-06-21 12:38:25 +03:00
THIRDPARTY Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
VERSION bump the VERSION 2021-08-05 09:59:21 -04:00

Code status:

  • Appveyor CI status ci.appveyor.com

MariaDB: drop-in replacement for MySQL

MariaDB is designed as a drop-in replacement of MySQL(R) with more features, new storage engines, fewer bugs, and better performance.

MariaDB is brought to you by the MariaDB Foundation and the MariaDB corporation. Please read the CREDITS file for details about the MariaDB Foundation, and who is developing MariaDB.

MariaDB is developed by many of the original developers of MySQL who now work for the MariaDB Corporation, the MariaDB Foundation and by many people in the community.

MySQL, which is the base of MariaDB, is a product and trademark of Oracle Corporation, Inc. For a list of developers and other contributors, see the Credits appendix. You can also run 'SHOW authors' to get a list of active contributors.

A description of the MariaDB project and a manual can be found at:

https://mariadb.com/kb/en/

https://mariadb.com/kb/en/mariadb-vs-mysql-features/

https://mariadb.com/kb/en/mariadb-versus-mysql-compatibility/

https://mariadb.com/kb/en/library/new-and-old-releases/

https://mariadb.org/

As MariaDB is a full replacement of MySQL, the MySQL manual at http://dev.mysql.com/doc is generally applicable.

Help

More help is available from the Maria Discuss mailing list https://launchpad.net/~maria-discuss and the #maria IRC channel on Freenode.

Live QA for beginner contributors

MariaDB has a dedicated time each week when we answer new contributor questions live on Zulip and IRC. From 8:00 to 10:00 UTC on Mondays, and 10:00 to 12:00 UTC on Thursdays, anyone can ask any questions theyd like, and a live developer will be available to assist.

New contributors can ask questions any time, but we will provide immediate feedback during that interval.

Licensing


NOTE:

MariaDB is specifically available only under version 2 of the GNU General Public License (GPLv2). (I.e. Without the "any later version" clause.) This is inherited from MySQL. Please see the README file in the MySQL distribution for more information.

License information can be found in the COPYING file. Third party license information can be found in the THIRDPARTY file.


Bug Reports

Bug and/or error reports regarding MariaDB should be submitted at: https://jira.mariadb.org

For reporting security vulnerabilities see: https://mariadb.org/about/security-policy/

Bugs in the MySQL code can also be submitted at: https://bugs.mysql.com

The code for MariaDB, including all revision history, can be found at: https://github.com/MariaDB/server