Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Galera macos #23

Open
wants to merge 32 commits into
base: mariadb-4.x
Choose a base branch
from
Open

Galera macos #23

wants to merge 32 commits into from

Conversation

janlindstrom
Copy link

No description provided.

ayurchen and others added 30 commits January 20, 2024 17:15
added pipeline logic for 4.ee
pipeline concept to replace multijob logic
1) Hide system error numbers and messages from thrown exceptions

System error numbers and messages cause confusion when used in
contexts where system calls are not involved. Hide the system error
number and message from exception messages and create separate
ThrowSystemError class and gu_throw_system_error() macro for
contexts where the system error number is relevant.

2) Fix error and warning messages not to use strerror

Using `strerror()` with error code in contexts where the error code
does not come from a system call may cause very misleading
error messages. Replace `strerror()` use around GCS code with two functions
gcs_error_str() and gcs_state_transfer_error_str() in contexts
where printing system error might be misleading.

4) Fix gcomm error logging

Change several warning level messages into info level messages
for cases which may happen during normal operation because
of network partitionings or cluster configuration changes.
Remove redundant warning messages in cases where the error
handling is handled by caller.

5) Convert gcs warning messages to info

Convert GCS messages which don't indicate any required action
from admin (e.g. error conditions will be dealt with retrying
or are result of expected conditions like network partitioning)
into info or debug messages.

6) Propagate IST error to IST event handler

The IST error is logged when the IST event queue becomes empty
and one of the appliers read the error status. This is to avoid
duplicate error logging from several contexts.
…ructs

gcs, gcs_core, gcs_group instead of using calloc()
 - make gcs_register_params() take gu::Coonfig& and return void in line with
other such methods
@sitano
Copy link

sitano commented Aug 22, 2024

tested 78f68e9 on MBP M3Max (23.5.0 Darwin Kernel Version 23.5.0: Wed May 1 20:17:33 PDT 2024; root:xnu-10063.121.3~5/RELEASE_ARM64_T6031 arm64) (/Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk) built from https://github.com/sitano/galera/tree/ivan/galera-macos with

$ cmake .. -G Ninja -DCMAKE_C_COMPILER_LAUNCHER=sccache -DCMAKE_CXX_COMPILER_LAUNCHER=sccache -DCMAKE_BUILD_TYPE="Debug" -DCMAKE_INSTALL_PREFIX="install" -DWITH_DBUG_TRACE=OFF -DNOT_FOR_DISTRIBUTION=YES -DCMAKE_VERBOSE_MAKEFILE=ON -DMYSQL_MAINTAINER_MODE=OFF -DWITH_ZLIB=bundled -DWITH_PCRE=bundled -DOPENSSL_ROOT_DIR=$(brew --prefix)/opt/openssl@3
$ cmake --build . --parallel 16

works well!

I have managed to execute Galera node and join another node.

@grooverdan
Copy link
Member

@janlindstrom as tested, can the this be deconflicted and merged?

@grooverdan
Copy link
Member

Actually looking the the commit messages it looks like its all been merged in #32. Can you confirm?

@sitano
Copy link

sitano commented Dec 18, 2024

seems to be true - https://github.com/MariaDB/galera/blob/mariadb-4.x/gcs/src/gcs_core.cpp#L128 - gcs_core::gcs_core() now has constructor in mariadb-4.x.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

6 participants