SET failed (wsrep_provider_options)

Bug #1040007 reported by johan
This bug report is a duplicate of:  Bug #1260283: Issues with re-setting the provider. Edit Remove
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
MySQL patches by Codership
New
Undecided
Unassigned
Percona XtraDB Cluster moved to https://jira.percona.com/projects/PXC
Status tracked in 5.6
5.5
New
Undecided
Unassigned
5.6
New
Undecided
Unassigned

Bug Description

mysql> set global wsrep_provider='none';
Query OK, 0 rows affected (2.04 sec)

mysql>  SET GLOBAL wsrep_provider='/usr/lib/galera/libgalera_smm.so' ;
Query OK, 0 rows affected (2.06 sec)

mysql>  SET GLOBAL wsrep_provider_options="base_host = 10.176.131.164; base_port = 4567; evs.debug_log_mask = 0x1; evs.inactive_check_period = PT0.5S; evs.inactive_timeout = PT15S; evs.info_log_mask = 0; evs.install_timeout = PT15S; evs.join_retrans_period = PT0.3S; evs.keepalive_period = PT1S; evs.max_install_timeouts = 1; evs.send_window = 4; evs.stats_report_period = PT1M; evs.suspect_timeout = PT5S; evs.use_aggregate = true; evs.user_send_window = 2; evs.version = 0; evs.view_forget_timeout = PT5M; gcache.dir = /var/lib/mysql/; gcache.keep_pages_size = 0; gcache.mem_size = 0; gcache.name = /var/lib/mysql//galera.cache; gcache.page_size = 128M; gcache.size = 128M; gcs.fc_debug = 0; gcs.fc_factor = 0.5; gcs.fc_limit = 16; gcs.fc_master_slave = NO; gcs.max_packet_size = 64500; gcs.max_throttle = 0.25; gcs.recv_q_hard_limit = 9223372036854775807; gcs.recv_q_soft_limit = 0.25; gcs.sync_donor = NO; gmcast.listen_addr = tcp://0.0.0.0:4567; gmcast.mcast_addr = ; gmcast.mcast_ttl = 1; gmcast.peer_timeout = PT3S; gmcast.time_wait = PT5S; gmcast.version = 0; ist.recv_addr = 10.176.131.164; pc.checksum = true; pc.ignore_quorum = false; pc.ignore_sb = false; pc.linger = PT2S; pc.npvo = false; pc.version = 0; protonet.backend = asio; protonet.version = 0; replicator.causal_read_timeout = PT30S; replicator.commit_order = 3 ;socket.ssl_cert='/etc/mysql/cert.pem';socket.ssl_key='/etc/mysql/key.pem'";
ERROR 1210 (HY000): Incorrect arguments to SET
mysql>

120822 10:00:22 [Note] /usr/local/mysql/bin/mysqld: ready for connections.
Version: '5.5.23'  socket: '/var/run/mysqld/mysqld.sock'  port: 3306  Source distribution, wsrep_23.6.r3755
120822 10:00:39 [Note] WSREP: Stop replication
120822 10:00:41 [Note] WSREP: dtor state: CLOSED
120822 10:00:41 [Note] WSREP: apply mon: entered 0
120822 10:00:41 [Note] WSREP: apply mon: entered 0
120822 10:00:41 [Note] WSREP: apply mon: entered 0
120822 10:00:41 [Note] WSREP: cert index usage at exit 0
120822 10:00:41 [Note] WSREP: cert trx map usage at exit 0
120822 10:00:41 [Note] WSREP: deps set usage at exit 0
120822 10:00:41 [Note] WSREP: avg deps dist 0
120822 10:00:41 [Note] WSREP: wsdb trx map usage 0 conn query map usage 0
120822 10:00:41 [Note] WSREP: Flushing memory map to disk...
120822 10:00:41 [Note] WSREP: Initial position: ec930567-e6c2-11e1-0800-80baf769a481:98836342
120822 10:00:41 [Note] WSREP: wsrep_load(): loading provider library 'none'
120822 10:00:41 [ERROR] WSREP: Failed to get provider options
120822 10:00:58 [Note] WSREP: Stop replication
120822 10:01:00 [Note] WSREP: Initial position: ec930567-e6c2-11e1-0800-80baf769a481:98836342
120822 10:01:00 [Note] WSREP: wsrep_load(): loading provider library '/usr/lib/galera/libgalera_smm.so'
120822 10:01:00 [Note] WSREP: wsrep_load(): Galera 23.2.1(r129) by Codership Oy <email address hidden> loaded succesfully.
120822 10:01:00 [Note] WSREP: Found saved state: ec930567-e6c2-11e1-0800-80baf769a481:-1
120822 10:01:00 [Note] WSREP: Reusing existing '/var/lib/mysql//galera.cache'.
120822 10:01:00 [Note] WSREP: Passing config to GCS: base_host = 10.176.131.164; gcache.dir = /var/lib/mysql/; gcache.keep_pages_size = 0; gcache.mem_size = 0; gcache.name = /var/lib/mysql//galera.cache; gcache.page_size = 128M; gcache.size = 128M; gcs.fc_debug = 0; gcs.fc_factor = 0.5; gcs.fc_limit = 16; gcs.fc_master_slave = NO; gcs.max_packet_size = 64500; gcs.max_throttle = 0.25; gcs.recv_q_hard_limit = 9223372036854775807; gcs.recv_q_soft_limit = 0.25; gcs.sync_donor = NO; replicator.causal_read_timeout = PT30S; replicator.commit_order = 3
120822 10:01:00 [Note] WSREP: Assign initial position for certification: 98836342, protocol version: -1
120822 10:01:03 [Warning] WSREP: Unknown parameter 'base_port'
120822 10:01:03 [ERROR] WSREP: Set options returned 6

Revision history for this message
Slava (volga629-d) wrote :
Download full text (4.4 KiB)

Here what I my case

mysql> SET GLOBAL wsrep_provider_options='/usr/lib64/galera/libgalera_smm.so';
ERROR 1210 (HY000): Incorrect arguments to SET

31209 5:27:30 [Note] WSREP: Initial position: 16943531-605f-11e3-82ee-972076c0eb77:1
131209 5:27:30 [Note] WSREP: wsrep_load(): loading provider library '/usr/lib64/galera/libgalera_smm.so'
131209 5:27:30 [Note] WSREP: wsrep_load(): Galera 3.2(rXXXX) by Codership Oy <email address hidden> loaded successfully.
131209 5:27:30 [Note] WSREP: CRC-32C: using hardware acceleration.
131209 5:27:30 [ERROR] WSREP: Key without value: '/usr/lib64/galera/libgalera_smm.so' at position '0' in parameter list.: 22 (Invalid argument)
  at galerautils/src/gu_config.cpp:parse():41
131209 5:27:30 [ERROR] WSREP: wsrep::init() failed: 7, must shutdown
04:27:30 UTC - mysqld got signal 11 ;
This could be because you hit a bug. It is also possible that this binary
or one of the libraries it was linked against is corrupt, improperly built,
or misconfigured. This error can also be caused by malfunctioning hardware.
We will try our best to scrape up some info that will hopefully help
diagnose the problem, but since we have already crashed,
something is definitely wrong and this may fail.

key_buffer_size=8388608
read_buffer_size=131072
max_used_connections=1
max_threads=151
thread_count=1
connection_count=1
It is possible that mysqld could use up to
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 338576 K bytes of memory
Hope that's ok; if not, decrease some variables in the equation.

Thread pointer: 0x2312be0
Attempting backtrace. You can use the following information to find out
where mysqld died. If you see no messages after this, something went
terribly wrong...
stack_bottom = 7f025ed9ae48 thread_stack 0x40000
/usr/libexec/mysqld(my_print_stacktrace+0x35)[0x7cf8c5]
/usr/libexec/mysqld(handle_fatal_signal+0x4a4)[0x6a57f4]
/lib64/libpthread.so.0(+0xf500)[0x7f027e41b500]
/usr/libexec/mysqld[0x662c34]
/usr/libexec/mysqld(_Z21wsrep_provider_updateP7sys_varP3THD13enum_var_type+0x159)[0x663829]
/usr/libexec/mysqld(_ZN7sys_var6updateEP3THDP7set_var+0x8a)[0x52c72a]
/usr/libexec/mysqld(_ZN7set_var6updateEP3THD+0x17)[0x52d8b7]
/usr/libexec/mysqld(_Z17sql_set_variablesP3THDP4ListI12set_var_baseE+0x89)[0x52cd29]
/usr/libexec/mysqld(_Z21mysql_execute_commandP3THD+0x1590)[0x5921c0]
/usr/libexec/mysqld(_Z11mysql_parseP3THDPcjP12Parser_state+0x188)[0x596658]
/usr/libexec/mysqld[0x596742]
/usr/libexec/mysqld(_Z16dispatch_command19enum_server_commandP3THDPcj+0x22cc)[0x59997c]
/usr/libexec/mysqld(_Z10do_commandP3THD+0x127)[0x59a5e7]
/usr/libexec/mysqld(_Z24do_handle_one_connectionP3THD+0x13f)[0x634b0f]
/usr/libexec/mysqld(handle_one_connection+0x51)[0x634cb1]
/lib64/libpthread.so.0(+0x7851)[0x7f027e413851]
/lib64/libc.so.6(clone+0x6d)[0x7f027d69994d]

Trying to get some variables.
Some pointers may be invalid and cause the dump to abort.
Query (7f0250008f40): is an invalid pointer
Connection ID (thread ID): 3
Status: NOT_KILLED

The manual page at http://dev.mysql.com/doc/mysql/en/crashing.html contains
information that should help you find out what is causing the crash.
131209 05:27:30 mysqld_safe Number of pr...

Read more...

Revision history for this message
Slava (volga629-d) wrote :

After crash

mysql> SET GLOBAL wsrep_provider='/usr/lib64/galera/libgalera_smm.so';
Query OK, 0 rows affected (2.07 sec)

And from init script on RHEl can' t start mysql with WSREP enabled in my.cnf

Revision history for this message
Raghavendra D Prabhu (raghavendra-prabhu) wrote :

Also discussed here https://bugs.launchpad.net/codership-mysql/+bug/1208493, especially https://bugs.launchpad.net/codership-mysql/+bug/1208493/comments/9

@Slava,
I guess you started with wsrep_provider, then set it to none and
set it to provider again?

Revision history for this message
Alex Yurchenko (ayurchen) wrote :

Slava, you must be confusing wsrep_provider and wsrep_provider_options variables.

Revision history for this message
Raghavendra D Prabhu (raghavendra-prabhu) wrote :

Marking this a duplicate of lp:1260283 (which is also related to lp:1260290)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.