
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
|