Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-18074

SET GLOBAL wsrep_provider_options does not work for debug and cert.log_conflicts options

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: In Progress (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 10.1.34, 10.1.37, 10.2.19
    • Fix Version/s: 10.1, 10.2
    • Component/s: Galera, Variables, wsrep
    • Labels:
      None

      Description

      Manuals (https://mariadb.com/kb/en/library/wsrep_provider_options/#debug or http://galeracluster.com/documentation-webpages/galeraparameters.html#cert-log-conflicts) state that debug and cert.log_conflicts options are dynamic:

      Dynamic: Yes
      Default: no

      For some reason setting them one by one or together dynamically does not work as expected in different MariaDB versions:

      MariaDB [(none)]> set global wsrep_provider_options='debug=ON';
      Query OK, 0 rows affected (0.00 sec)
       
      MariaDB [(none)]> show global variables like 'wsrep_provider_options'\G
      *************************** 1. row ***************************
      Variable_name: wsrep_provider_options
              Value: base_dir = /home/openxs/galera/node1/; base_host = 192.168.1.85; base_port = 4567; cert.log_conflicts = ON; debug = no; evs.auto_evict = 0; evs.causal_keepalive_period = PT1S; evs.debug_log_mask = 0x1; evs.delay_margin = PT1S; evs.delayed_keep_period = PT30S; evs.inactive_check_period = PT0.5S; evs.inactive_timeout = PT15S; evs.info_log_mask = 0; evs.install_timeout = PT7.5S; evs.join_retrans_period = PT1S; evs.keepalive_period = PT1S; evs.max_install_timeouts = 3; 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 = P1D; gcache.dir = /home/openxs/galera/node1/; gcache.keep_pages_size = 0; gcache.mem_size = 0; gcache.name = /home/openxs/galera/node1//galera.cache; gcache.page_size = 128M; gcache.recover = no; gcache.size = 128M; gcomm.thread_prio = ; gcs.fc_debug = 0; gcs.fc_factor = 1.0; 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.segment = 0; gmcast.time_wait = PT5S; gmcast.version = 0; ist.recv_addr = 192.168.1.85; pc.announce_timeout = PT3S; pc.checksum = false; pc.ignore_quorum = false; pc.ignore_sb = false; pc.linger = PT20S; pc.npvo = false; pc.recovery = true; pc.version = 0; pc.wait_prim = true; pc.wait_prim_timeout = PT30S; pc.weight = 1; protonet.backend = asio; protonet.version = 0; repl.causal_read_timeout = PT30S; repl.commit_order = 3; repl.key_format = FLAT8; repl.max_ws_size = 2147483647; repl.proto_max = 9; socket.checksum = 2; socket.recv_buf_size = 212992;
      1 row in set (0.00 sec)
       
      MariaDB [(none)]> set global wsrep_provider_options='debug=ON;cert.log_conflicts=ON;repl.max_ws_size =2000000';
      Query OK, 0 rows affected (0.00 sec)
       
      MariaDB [(none)]> show global variables like 'wsrep_provider_options'\G         *************************** 1. row ***************************
      Variable_name: wsrep_provider_options
              Value: base_dir = /home/openxs/galera/node1/; base_host = 192.168.1.85; base_port = 4567; cert.log_conflicts = ON; debug = no; evs.auto_evict = 0; evs.causal_keepalive_period = PT1S; evs.debug_log_mask = 0x1; evs.delay_margin = PT1S; evs.delayed_keep_period = PT30S; evs.inactive_check_period = PT0.5S; evs.inactive_timeout = PT15S; evs.info_log_mask = 0; evs.install_timeout = PT7.5S; evs.join_retrans_period = PT1S; evs.keepalive_period = PT1S; evs.max_install_timeouts = 3; 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 = P1D; gcache.dir = /home/openxs/galera/node1/; gcache.keep_pages_size = 0; gcache.mem_size = 0; gcache.name = /home/openxs/galera/node1//galera.cache; gcache.page_size = 128M; gcache.recover = no; gcache.size = 128M; gcomm.thread_prio = ; gcs.fc_debug = 0; gcs.fc_factor = 1.0; 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.segment = 0; gmcast.time_wait = PT5S; gmcast.version = 0; ist.recv_addr = 192.168.1.85; pc.announce_timeout = PT3S; pc.checksum = false; pc.ignore_quorum = false; pc.ignore_sb = false; pc.linger = PT20S; pc.npvo = false; pc.recovery = true; pc.version = 0; pc.wait_prim = true; pc.wait_prim_timeout = PT30S; pc.weight = 1; protonet.backend = asio; protonet.version = 0; repl.causal_read_timeout = PT30S; repl.commit_order = 3; repl.key_format = FLAT8; repl.max_ws_size = 2000000; repl.proto_max = 9; socket.checksum = 2; socket.recv_buf_size = 212992;
      1 row in set (0.00 sec)
       
      MariaDB [(none)]> show variables like '%version%';
      +-------------------------+----------------------------------+
      | Variable_name           | Value                            |
      +-------------------------+----------------------------------+
      | innodb_version          | 5.7.23                           |
      | protocol_version        | 10                               |
      | slave_type_conversions  |                                  |
      | version                 | 10.2.19-MariaDB-log              |
      | version_comment         | Source distribution              |
      | version_compile_machine | x86_64                           |
      | version_compile_os      | Linux                            |
      | version_malloc_library  | system                           |
      | version_ssl_library     | OpenSSL 1.1.0i-fips  14 Aug 2018 |
      | wsrep_patch_version     | wsrep_25.23                      |
      +-------------------------+----------------------------------+
      10 rows in set (0.01 sec)
       
      MariaDB [(none)]> set global wsrep_provider_options='debug=ON;cert.log_conflicts=NO;repl.max_ws_size =2000000';
      Query OK, 0 rows affected (0.00 sec)
       
      MariaDB [(none)]> show global variables like 'wsrep_provider_options'\G         *************************** 1. row ***************************
      Variable_name: wsrep_provider_options
              Value: base_dir = /home/openxs/galera/node1/; base_host = 192.168.1.85; base_port = 4567; cert.log_conflicts = ON; debug = no; evs.auto_evict = 0; evs.causal_keepalive_period = PT1S; evs.debug_log_mask = 0x1; evs.delay_margin = PT1S; evs.delayed_keep_period = PT30S; evs.inactive_check_period = PT0.5S; evs.inactive_timeout = PT15S; evs.info_log_mask = 0; evs.install_timeout = PT7.5S; evs.join_retrans_period = PT1S; evs.keepalive_period = PT1S; evs.max_install_timeouts = 3; 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 = P1D; gcache.dir = /home/openxs/galera/node1/; gcache.keep_pages_size = 0; gcache.mem_size = 0; gcache.name = /home/openxs/galera/node1//galera.cache; gcache.page_size = 128M; gcache.recover = no; gcache.size = 128M; gcomm.thread_prio = ; gcs.fc_debug = 0; gcs.fc_factor = 1.0; 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.segment = 0; gmcast.time_wait = PT5S; gmcast.version = 0; ist.recv_addr = 192.168.1.85; pc.announce_timeout = PT3S; pc.checksum = false; pc.ignore_quorum = false; pc.ignore_sb = false; pc.linger = PT20S; pc.npvo = false; pc.recovery = true; pc.version = 0; pc.wait_prim = true; pc.wait_prim_timeout = PT30S; pc.weight = 1; protonet.backend = asio; protonet.version = 0; repl.causal_read_timeout = PT30S; repl.commit_order = 3; repl.key_format = FLAT8; repl.max_ws_size = 2000000; repl.proto_max = 9; socket.checksum = 2; socket.recv_buf_size = 212992;
      1 row in set (0.00 sec)
       
      MariaDB [(none)]> set global wsrep_provider_options='debug=OFF;cert.log_conflicts=YES;repl.max_ws_size =2000000';
      Query OK, 0 rows affected (0.00 sec)
       
      MariaDB [(none)]> show global variables like 'wsrep_provider_options'\G         *************************** 1. row ***************************
      Variable_name: wsrep_provider_options
              Value: base_dir = /home/openxs/galera/node1/; base_host = 192.168.1.85; base_port = 4567; cert.log_conflicts = ON; debug = no; evs.auto_evict = 0; evs.causal_keepalive_period = PT1S; evs.debug_log_mask = 0x1; evs.delay_margin = PT1S; evs.delayed_keep_period = PT30S; evs.inactive_check_period = PT0.5S; evs.inactive_timeout = PT15S; evs.info_log_mask = 0; evs.install_timeout = PT7.5S; evs.join_retrans_period = PT1S; evs.keepalive_period = PT1S; evs.max_install_timeouts = 3; 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 = P1D; gcache.dir = /home/openxs/galera/node1/; gcache.keep_pages_size = 0; gcache.mem_size = 0; gcache.name = /home/openxs/galera/node1//galera.cache; gcache.page_size = 128M; gcache.recover = no; gcache.size = 128M; gcomm.thread_prio = ; gcs.fc_debug = 0; gcs.fc_factor = 1.0; 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.segment = 0; gmcast.time_wait = PT5S; gmcast.version = 0; ist.recv_addr = 192.168.1.85; pc.announce_timeout = PT3S; pc.checksum = false; pc.ignore_quorum = false; pc.ignore_sb = false; pc.linger = PT20S; pc.npvo = false; pc.recovery = true; pc.version = 0; pc.wait_prim = true; pc.wait_prim_timeout = PT30S; pc.weight = 1; protonet.backend = asio; protonet.version = 0; repl.causal_read_timeout = PT30S; repl.commit_order = 3; repl.key_format = FLAT8; repl.max_ws_size = 2000000; repl.proto_max = 9; socket.checksum = 2; socket.recv_buf_size = 212992;
      1 row in set (0.00 sec)
       
      MariaDB [(none)]> set global wsrep_provider_options='debug=1;cert.log_conflicts=0;repl.max_ws_size =3000000';
      Query OK, 0 rows affected (0.00 sec)
       
      MariaDB [(none)]> show global variables like 'wsrep_provider_options'\G         *************************** 1. row ***************************
      Variable_name: wsrep_provider_options
              Value: base_dir = /home/openxs/galera/node1/; base_host = 192.168.1.85; base_port = 4567; cert.log_conflicts = ON; debug = no; evs.auto_evict = 0; evs.causal_keepalive_period = PT1S; evs.debug_log_mask = 0x1; evs.delay_margin = PT1S; evs.delayed_keep_period = PT30S; evs.inactive_check_period = PT0.5S; evs.inactive_timeout = PT15S; evs.info_log_mask = 0; evs.install_timeout = PT7.5S; evs.join_retrans_period = PT1S; evs.keepalive_period = PT1S; evs.max_install_timeouts = 3; 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 = P1D; gcache.dir = /home/openxs/galera/node1/; gcache.keep_pages_size = 0; gcache.mem_size = 0; gcache.name = /home/openxs/galera/node1//galera.cache; gcache.page_size = 128M; gcache.recover = no; gcache.size = 128M; gcomm.thread_prio = ; gcs.fc_debug = 0; gcs.fc_factor = 1.0; 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.segment = 0; gmcast.time_wait = PT5S; gmcast.version = 0; ist.recv_addr = 192.168.1.85; pc.announce_timeout = PT3S; pc.checksum = false; pc.ignore_quorum = false; pc.ignore_sb = false; pc.linger = PT20S; pc.npvo = false; pc.recovery = true; pc.version = 0; pc.wait_prim = true; pc.wait_prim_timeout = PT30S; pc.weight = 1; protonet.backend = asio; protonet.version = 0; repl.causal_read_timeout = PT30S; repl.commit_order = 3; repl.key_format = FLAT8; repl.max_ws_size = 3000000; repl.proto_max = 9; socket.checksum = 2; socket.recv_buf_size = 212992;
      1 row in set (0.00 sec)
      

      Setting in my.cnf:

      wsrep_provider_options="cert.log_conflicts=ON"

      works as expected.

        Attachments

          Activity

            People

            Assignee:
            teemu.ollakka Teemu Ollakka
            Reporter:
            valerii Valerii Kravchuk
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: