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
Sergei Golubchik b91e77cff3 fix a 3-way deadlock in galera_sr.galera-features#56
rarely (try --repeat 1000), the following happens:

* from wsrep_bf_abort (when a thread is being killed), wsrep-lib
starts streaming_rollback that wants to
convert_streaming_client_to_applier. wsrep_create_streaming_applier
creates a new THD(). All while the other THD is being killed,
so under LOCK_thd_kill and LOCK_thd_data. In particular, THD::init()
takes LOCK_global_system_variables under LOCK_thd_kill.

* updating @@wsrep_slave_threads takes LOCK_global_system_variables
and LOCK_wsrep_cluster_config (in that order) and invokes
wsrep_slave_threads_update() that takes LOCK_wsrep_slave_threads

* wsrep_replication_process() takes LOCK_wsrep_slave_threads and
invokes wsrep_close_applier(), that does thd->set_killed() which
takes LOCK_thd_kill.

et voilà.

As a fix I copied a workaround from wsrep_cluster_address_update()
to wsrep_slave_threads_update(). It seems to be safe: without mutexes
a race condition is possible and a concurrent SET might change
wsrep_slave_threads, but wsrep_slave_threads_update() always verifies
if there's a need to do something, so it will not run twice in this case,
it'll be a no-op.
2021-02-12 18:51:25 +01:00
BUILD Fixed BUILD script to make plugin-file_key_management DYNAMIC 2020-09-25 12:44:04 +03:00
client Merge branch 'bb-10.3-release' into bb-10.4-release 2021-02-12 17:44:22 +01:00
cmake Merge 10.3 into 10.4 2021-01-11 10:35:06 +02:00
dbug Merge 10.2 into 10.3 2020-07-02 06:17:51 +03:00
debian Merge branch 'bb-10.3-release' into bb-10.4-release 2021-02-12 17:44:22 +01:00
Docs
extra MDEV-20386: Allow RDRAND, RDSEED WITH_MSAN 2021-01-02 11:56:41 +02:00
include Merge branch 'bb-10.3-release' into bb-10.4-release 2021-02-12 17:44:22 +01:00
libmariadb@e62ff462c5 last CC 3.1 2021-01-28 15:10:16 +01:00
libmysqld Merge branch 'bb-10.3-release' into bb-10.4-release 2021-02-12 17:44:22 +01:00
libservices
man Merge branch 'bb-10.3-release' into bb-10.4-release 2021-02-12 17:44:22 +01:00
mysql-test MDEV-23328 Server hang due to Galera lock conflict resolution 2021-02-12 18:17:06 +01:00
mysys Merge branch '10.3' into 10.4 2020-12-25 09:13:28 +01:00
mysys_ssl Merge 10.3 into 10.4 2020-10-22 13:27:18 +03:00
pcre
plugin Merge branch 'bb-10.3-release' into bb-10.4-release 2021-02-12 17:44:22 +01:00
randgen/conf
scripts Merge branch 'bb-10.3-release' into bb-10.4-release 2021-02-12 17:44:22 +01:00
sql fix a 3-way deadlock in galera_sr.galera-features#56 2021-02-12 18:51:25 +01: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 remove find_thread_with_thd_data_lock_callback 2021-02-12 18:17:07 +01:00
strings Merge branch 'bb-10.3-release' into bb-10.4-release 2021-02-12 17:44:22 +01:00
support-files Merge 10.3 into 10.4 2020-09-22 21:29:30 +03:00
tests Merge branch '10.3' into 10.4 2020-11-10 11:24:13 +01: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 2020-08-10 21:08:46 +03:00
win
wsrep-lib@a93955ddee Update wsrep-lib 2021-01-08 08:44:18 +02:00
zlib Merge branch '10.3' into 10.4 2020-12-25 09:13:28 +01:00
.clang-format
.gitattributes
.gitignore Merge 10.3 into 10.4 2020-10-29 13:38:38 +02:00
.gitmodules
.travis.compiler.sh
.travis.yml Merge 10.3 into 10.4 2020-09-03 15:53:38 +03:00
appveyor.yml
BUILD-CMAKE
CMakeLists.txt MDEV-24034 Policy CMP0075 is not set during compile 2020-12-15 12:27:13 +01:00
config.h.cmake Merge branch '10.3' into 10.4 2020-08-03 14:44:06 +02:00
configure.cmake Merge 10.3 into 10.4 2020-10-29 13:38:38 +02:00
CONTRIBUTING.md
COPYING
CREDITS
EXCEPTIONS-CLIENT
INSTALL-SOURCE
INSTALL-WIN-SOURCE
KNOWN_BUGS.txt
README.md
THIRDPARTY
VERSION bump the VERSION 2020-11-11 10:19:27 -05:00

Code status:

  • Travis CI status travis-ci.org (10.4 branch)
  • 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