Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Linux-HA: Dev
[patch] Improvement of log of pgsql RA
 

Index | Next | Previous | View Flat


nakahira at intellilink

Jun 18, 2009, 10:52 PM


Views: 1267
Permalink
[patch] Improvement of log of pgsql RA

Hello,

The pgsql RA includes the several confusing logs as follows
and I propose 3 patches to solve these problems.

1. When it takes time to start PostgreSQL, the "ERROR" level log
"PostgreSQL $OCF_RESKEY_pgdb isn't running" is output
though the start of pgsql RA has succeeded.
It seems that "WARN" level is more appropriate than "ERROR".

pgsql-ra-logging-1.patch is a patch that corrects No.1 problem.

2. In the start confirmation processing of pgsql RA, An unnecessary
"sleep 1" is executed though the start of PostgreSQL is confirmed
with pgsql_monitor().
3. In the stop processing of pgsql RA, An unnecessary log message
"PostgreSQL still hasn't stopped yet. Waiting..." is output to
the ha-debug though PostgreSQL has been stopped.

pgsql-ra-logging-2.patch is a patch that corrects No.2 and 3 problem.

4. When failing in the execution of the psql command and
the pg_ctl command, the execution result of the command is not
recorded in the log file.

pgsql-ra-logging-3.patch is a patch that corrects No.4 problem.

Best regards,
NAKAHIRA Kazutomo

--
----------------------------------------
NAKAHIRA Kazutomo
NTT DATA INTELLILINK CORPORATION
Open Source Business Unit
Software Services Integration Business Division
Attachments: pgsql-ra-logging-1.patch (1.07 KB)
  pgsql-ra-logging-2.patch (1.30 KB)
  pgsql-ra-logging-3.patch (3.32 KB)

Subject User Time
[patch] Improvement of log of pgsql RA nakahira at intellilink Jun 18, 2009, 10:52 PM
    Re: [patch] Improvement of log of pgsql RA sergeyfd at gmail Jun 22, 2009, 11:00 AM
    Re: [patch] Improvement of log of pgsql RA sergeyfd at gmail Jun 22, 2009, 11:24 AM
    Re: [patch] Improvement of log of pgsql RA dejanmm at fastmail Jun 22, 2009, 11:33 AM
        Re: [patch] Improvement of log of pgsql RA sergeyfd at gmail Jun 22, 2009, 12:04 PM
    Re: [patch] Improvement of log of pgsql RA dejanmm at fastmail Jun 22, 2009, 12:36 PM
        Re: [patch] Improvement of log of pgsql RA sergeyfd at gmail Jun 22, 2009, 12:54 PM
    Re: [patch] Improvement of log of pgsql RA sergeyfd at gmail Jun 22, 2009, 1:04 PM
    Re: [patch] Improvement of log of pgsql RA dejanmm at fastmail Jun 22, 2009, 2:52 PM
    Re: [patch] Improvement of log of pgsql RA dejanmm at fastmail Jun 22, 2009, 2:54 PM
        Re: [patch] Improvement of log of pgsql RA sergeyfd at gmail Jun 22, 2009, 3:04 PM
    Re: [patch] Improvement of log of pgsql RA nakahira at intellilink Jun 22, 2009, 11:36 PM
        Re: [patch] Improvement of log of pgsql RA sergeyfd at gmail Jun 29, 2009, 10:15 AM
    Re: [patch] Improvement of log of pgsql RA dejanmm at fastmail Jun 30, 2009, 3:03 AM

  Index | Next | Previous | View Flat
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.