[MDEV-13758] Galera with rsync on FreeBSD broken Created: 2017-09-07 Updated: 2017-09-11 Resolved: 2017-09-11 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Galera, Galera SST, Platform FreeBSD |
| Affects Version/s: | 10.2.7 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Major |
| Reporter: | Vincent Milum Jr | Assignee: | Andrii Nikitin (Inactive) |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Environment: |
FreeBSD 10.3-STABLE, MariaDB running inside of a dedicated jail with no other changes/packages |
||
| Issue Links: |
|
||||||||
| Description |
|
The FreeBSD specific patch for rsync Galera SST doesn't work.
netstat -p on FreeBSD is for protocol, not port number or program/PID. This command always results in the following error message being sent to /dev/null
From man:
Additionally, specifying both -4 and -6 at the same time doesn't work. The latter will overwrite the former. If it is specified as netstat -46, only IPv6 is used. If it is specified as netstat -64, only IPv4 is used. One other note: there is no mention in the FreeBSD man page of netstat being able to return PID at all, which is the whole point of this call to begin with. Searching around online, everyone is suggesting using lsof to get this information, which is exactly what was happening BEFORE this broken OS specific patch was applied. |
| Comments |
| Comment by Bernard Spil [ 2017-09-11 ] |
|
There's an error in the script I supplied. It should be ` sockstat`, not `netstat` https://www.freebsd.org/cgi/man.cgi?query=sockstat |
| Comment by Andrii Nikitin (Inactive) [ 2017-09-11 ] |
|
The issue was addressed in last comment at https://github.com/MariaDB/server/pull/205 , but somehow the fix escaped final patch. |
| Comment by Andrii Nikitin (Inactive) [ 2017-09-11 ] |
|
Actually I do see sockstat in So you may need this commit as well So I will close this as 'cannot reproduce' |