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

Peer addresses are resolved with --wsrep-new-cluster #88

Closed
ronin13 opened this issue Jul 30, 2014 · 2 comments

Comments

Projects
None yet
4 participants
@ronin13
Copy link

commented Jul 30, 2014

As you can see, getaddrinfo is used on Dock (node which is not up yet):

sudo   /pxc56/bin/mysqld --defaults-file=/pxc56/etc/my.cnf.local   --basedir=/pxc56 --user=mysql --gdb      --wsrep-new-cluster    --wsrep-debug
2014-07-30 14:12:28 0 [Warning] WSREP: wsrep_sst_receive_address is set to '127.0.0.1:4001' which makes it impossible for another host to reach this one. Please set it to the address which this node can be connected at by other cluster members.
2014-07-30 14:12:28 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2014-07-30 14:12:28 37078 [Warning] No argument was provided to --log-bin, and --log-bin-index was not used; so replication may break when this MySQL server acts as a master and has his hostname changed!! Please use '--log-bin=archie-bin' to avoid this problem.
2014-07-30 14:12:28 37078 [Note] WSREP: Setting wsrep_ready to 0
2014-07-30 14:12:28 37078 [Note] WSREP: Read nil XID from storage engines, skipping position init
2014-07-30 14:12:28 37078 [Note] WSREP: wsrep_load(): loading provider library '/pxc56/lib/libgalera_smm.so'
2014-07-30 14:12:28 37078 [Note] WSREP: wsrep_load(): Galera 3.6(rXXXX) by Codership Oy <info@codership.com> loaded successfully.
2014-07-30 14:12:28 37078 [Note] WSREP: CRC-32C: using hardware acceleration.
2014-07-30 14:12:28 37078 [Note] WSREP: Found saved state: 2ce84e62-d90f-11e3-a5ce-1384655c7dde:335231
2014-07-30 14:12:28 37078 [Note] WSREP: Passing config to GCS: base_host = 127.0.0.1; base_port = 4567; cert.log_conflicts = no; debug = no; evs.inactive_check_period = PT0.5S; evs.inactive_timeout = PT15S; evs.join_retrans_period = PT1S; evs.max_install_timeouts = 3; evs.send_window = 4; evs.stats_report_period = PT1M; evs.suspect_timeout = PT5S; evs.user_send_window = 2; evs.view_forget_timeout = PT24H; gcache.dir = /pxc56/datadir/; gcache.keep_pages_size = 0; gcache.mem_size = 0; gcache.name = /pxc56/datadir//galera.cache; gcache.page_size = 128M; gcache.size = 128M; 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://127.0.0.1:4010; gmcast.segment = 0; gmcast.version = 0; pc.announce_timeout = PT3S; pc.checksum = false; pc.ignore_quorum = false; pc.ignore_sb = false; pc.npvo = false; pc.recovery = 1; pc.version = 0; pc.wait_prim =
2014-07-30 14:12:28 37078 [Note] WSREP: Service thread queue flushed.
2014-07-30 14:12:28 37078 [Note] WSREP: Assign initial position for certification: 335231, protocol version: -1
2014-07-30 14:12:28 37078 [Note] WSREP: wsrep_sst_grab()
2014-07-30 14:12:28 37078 [Note] WSREP: Start replication
2014-07-30 14:12:28 37078 [Note] WSREP: Setting initial position to 2ce84e62-d90f-11e3-a5ce-1384655c7dde:335231
2014-07-30 14:12:28 37078 [Note] WSREP: protonet asio version 0
2014-07-30 14:12:28 37078 [Note] WSREP: Using CRC-32C (optimized) for message checksums.
2014-07-30 14:12:28 37078 [Note] WSREP: backend: asio
2014-07-30 14:12:28 37078 [Warning] WSREP: access file(gvwstate.dat) failed(No such file or directory)
2014-07-30 14:12:28 37078 [Note] WSREP: restore pc from disk failed
2014-07-30 14:12:28 37078 [Note] WSREP: GMCast version 0
2014-07-30 14:12:28 37078 [ERROR] WSREP: failed to open gcomm backend connection: 2: getaddrinfo failed with error 'Name or service not known' (-2) for tcp://Dock:4567: 2 (No such file or directory)
        at galerautils/src/gu_resolver.cpp:resolve():528
2014-07-30 14:12:28 37078 [ERROR] WSREP: gcs/src/gcs_core.cpp:long int gcs_core_open(gcs_core_t*, const char*, const char*, bool)():206: Failed to open backend connection: -2 (No such file or directory)
2014-07-30 14:12:28 37078 [ERROR] WSREP: gcs/src/gcs.cpp:long int gcs_open(gcs_conn_t*, const char*, const char*, bool)():1303: Failed to open channel 'Archie56' at 'gcomm://Dock': -2 (No such file or directory)
2014-07-30 14:12:28 37078 [ERROR] WSREP: gcs connect failed: No such file or directory
2014-07-30 14:12:28 37078 [ERROR] WSREP: wsrep::connect() failed: 7
2014-07-30 14:12:28 37078 [ERROR] Aborting

2014-07-30 14:12:28 37078 [Note] WSREP: waiting for client connections to close: 0
2014-07-30 14:12:28 37078 [Note] WSREP: Service disconnected.
2014-07-30 14:12:29 37078 [Note] WSREP: Some threads may fail to exit.
2014-07-30 14:12:29 37078 [Note] Binlog end
2014-07-30 14:12:29 37078 [Note] /pxc56/bin/mysqld: Shutdown complete

Config: http://paste.wnohang.net/3eaf33

@temeo temeo added the bug label Jul 30, 2014

@temeo temeo changed the title Peers are probed with --wsrep-new-cluster Peer addresses are resolved with --wsrep-new-cluster Aug 2, 2014

@jayjanssen

This comment has been minimized.

Copy link

commented Nov 7, 2014

Me too!

dirtysalt added a commit that referenced this issue Nov 19, 2014

Refs #88: warning when host can not be resolved.
it is ok that remote address list is empty only if bootstraps.

dirtysalt added a commit that referenced this issue Nov 19, 2014

@ronin13

This comment has been minimized.

Copy link
Author

commented Nov 20, 2014

Tested with codership/gh88, works as intended.

Log here: http://paste.wnohang.net/56fac2

It prints only the warning now

2014-11-20 14:14:26 3473 [Warning] WSREP: Failed to resolve tcp://ABCD:4567
2014-11-20 14:14:27 3473 [Warning] WSREP: Failed to resolve tcp://XYZ:4567
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.