View Issue Details

IDProjectCategoryView StatusLast Update
0000579Pgpool-IIBugpublic2020-01-28 11:29
ReportergiminniAssigned Topengbo 
PrioritynormalSeveritymajorReproducibilityalways
Status feedbackResolutionopen 
PlatformLinuxOSAlpine LinuxOS Version3.11.3
Product Version4.1.0 
Target Version4.1.1Fixed in Version 
Summary0000579: 4.1: BUG: Follow_master_command parameter mismatch
DescriptionIn chapter 8.3.5.2. Failover configuration

Looking at the code I found mismatched parameter at 5th, 6th and 7th position

failover_command = '/etc/pgpool-II/failover.sh %d %h %p %D %m %H %M %P %r %R %N %S'
follow_master_command = '/etc/pgpool-II/follow_master.sh %d %h %p %D %m %M %H %P %r %R'

Please change to:
follow_master_command = '/etc/pgpool-II/follow_master.sh %d %h %p %D %m %H %M %P %r %R %N %S'
TagsNo tags attached.

Activities

pengbo

2020-01-28 11:29

developer   ~0003091

Thank you for reporting this issue.
It is not a bug.

In follow_master.sh it is the correct parameters passed by "follow_master_command = '/etc/pgpool-II/follow_master.sh %d %h %p %D %m %M %H %P %r %R".
...
OLD_MASTER_NODE_ID="$6"
NEW_MASTER_NODE_HOST="$7"
...

Because it is better to use the same parameter position with "failover_command",
I have changed the docs and sample scripts.

https://git.postgresql.org/gitweb/?p=pgpool2.git;a=commit;h=b5db9b42478c455bc2c6784a5bd70b752c4e99bd
https://git.postgresql.org/gitweb/?p=pgpool2.git;a=commit;h=3e92e5bf76ed0b07915afa369a8ea9700162c1c6

Issue History

Date Modified Username Field Change
2020-01-28 02:16 giminni New Issue
2020-01-28 11:29 pengbo Note Added: 0003091
2020-01-28 11:29 pengbo Assigned To => pengbo
2020-01-28 11:29 pengbo Status new => feedback
2020-01-28 11:29 pengbo Target Version => 4.1.1