qiangyuntao2010 / Mysql_Note

0 stars 0 forks source link

Non-Archived MySQL Router (8.0.16) crash while doing nmap port scanning with error getpeername() failed, errno: 1 #4

Closed qiangyuntao2010 closed 4 years ago

qiangyuntao2010 commented 4 years ago

symptom

Version: Mysql Routor 8.0.15

Q: 2019-11-14 10:51:44 metadata_cache DEBUG [7fd4dc28e700] Replicaset 'default' has 1 members in metadata, 1 in status table 2019-11-14 10:51:44 metadata_cache DEBUG [7fd4dc28e700] End updating replicaset for 'default' 2019-11-14 10:51:45 routing DEBUG [7fd4d6c87700] [routing:Cls_default_rw] fd=2009 connection accepted at 0.0.0.0:6446 2019-11-14 10:51:45 routing ERROR [7fd4d6c87700] routing:Cls_default_rw: getpeername() failed, errno: 107 2019-11-14 10:51:45 main ERROR [7fd4d6c87700] plugin 'routing:Cls_default_rw' start failed: routing:Cls_default_rw: getpeername() failed, errno: 107 2019-11-14 10:51:45 main INFO [7fd4dc292880] Shutting down. Stopping all plugins. 2019-11-14 10:51:45 main DEBUG [7fd4dc292880] plugin 'logger:' doesn't implement stop() 2019-11-14 10:51:45 main DEBUG [7fd4dc292880] plugin 'metadata_cache:Cls' doesn't implement stop() 2019-11-14 10:51:45 main DEBUG [7fd4dc292880] plugin 'routing:Cls_default_ro' doesn't implement stop() 2019-11-14 10:51:45 main DEBUG [7fd4dc292880] plugin 'routing:Cls_default_rw' doesn't implement stop() 2019-11-14 10:51:45 main DEBUG [7fd4dc292880] plugin 'routing:Cls_default_x_ro' doesn't implement stop() 2019-11-14 10:51:45 main DEBUG [7fd4dc292880] plugin 'routing:Cls_default_x_rw' doesn't implement stop() 2019-11-14 11:12:49 main DEBUG [7f5596190880] plugin 'logger' init exit ok 2019-11-14 11:12:49 main INFO [7f5596190880] plugin 'metadata_cache' initializing 2019-11-14 11:12:49 main DEBUG [7f5596190880] plugin 'metadata_cache' init exit ok 2019-11-14 11:12:49 main INFO [7f5596190880] plugin 'routing' initializing 2019-11-14 11:12:49 main DEBUG [7f5596190880] plugin 'routing' init exit ok

Steps to reproduce in 8.0.16

  1. do nmap port scanning as non privilege account (other than root) nmap -PN -p 6446
  2. check the router service/status. it should be down

Solution Bug 29382585

So you would need to upgrade to router version 8.0.17 or higher to get a fix for this issue.

qiangyuntao2010 commented 4 years ago

duplicate