[pgpool-general: 4140] Re: pgpool_status write errors ignored??

Tatsuo Ishii ishii at postgresql.org
Sat Oct 24 10:43:00 JST 2015


> It seems from the source code that write errors to pgpool_status (i.e.
> the return codes from write_status_file()) are simply explicitly
> ignored.  This is very dangerous as it can silently lose HA state.
> Pgpool should exit if it cannot write the status file.  Is there a
> reason this is not done?

If we fail in fsync(), there will be nothing we can do to recover from
it because it suggests that there's a permanent failure with the disk
drive. Thus pgpool-II just logs the fact and proceeds the
operation. Other option would be letting pgpool-II suicide. Do we want
this?

Best regards,
--
Tatsuo Ishii
SRA OSS, Inc. Japan
English: http://www.sraoss.co.jp/index_en.php
Japanese:http://www.sraoss.co.jp


More information about the pgpool-general mailing list