View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0000493 | Pgpool-II | Bug | public | 2019-04-08 17:07 | 2019-04-10 16:15 |
| Reporter | hoshiai | Assigned To | hoshiai | ||
| Priority | low | Severity | minor | Reproducibility | have not tried |
| Status | closed | Resolution | fixed | ||
| Product Version | 3.4.23 | ||||
| Target Version | 3.4.24 | Fixed in Version | 3.4.24 | ||
| Summary | 0000493: when read old pgpool_status file, wrong variable was referenced by Pgpool-II. | ||||
| Description | Pgpool-II 3.4 or later, a pgpool_status format is changed from binary data to ASCII text. And their version support old format. But read_status_file() function reference wrong variable, when old format file read. 'backend_rec ' variable is read by pgpool_status file. If status is CON_DOWN, it is correct. But if status is CON_CONNECT_WAIT or CON_UP, Pgpool-II read not backend_rec but BACKEND_INFO(i). It isincorrect. read_status_file() #src/main/pgpool_main.c ===================================== if (backend_rec.status[i] == CON_DOWN) { BACKEND_INFO(i).backend_status = CON_DOWN; (void)write_status_file(); ereport(LOG, (errmsg("read_status_file: %d th backend is set to down status", i))); } else if (BACKEND_INFO(i).backend_status == CON_CONNECT_WAIT || BACKEND_INFO(i).backend_status == CON_UP) ===================================== | ||||
| Tags | No tags attached. | ||||
|
|
I attached patch fixed this problem. |
|
|
Above patch commited. https://git.postgresql.org/gitweb/?p=pgpool2.git;a=commit;h=e5f26774ec007313b2f7f0672e5f521d9a2c0fe8 |
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2019-04-08 17:07 | hoshiai | New Issue | |
| 2019-04-08 17:07 | hoshiai | Status | new => assigned |
| 2019-04-08 17:07 | hoshiai | Assigned To | => hoshiai |
| 2019-04-08 17:09 | hoshiai | Summary | when read old pool_status file, wrong variable was referenced by Pgpool-II. => when read old pgpool_status file, wrong variable was referenced by Pgpool-II. |
| 2019-04-08 17:09 | hoshiai | Description Updated | |
| 2019-04-09 14:44 | hoshiai | File Added: pgpool_stats_fix.patch | |
| 2019-04-09 14:44 | hoshiai | Note Added: 0002539 | |
| 2019-04-10 16:15 | hoshiai | Status | assigned => closed |
| 2019-04-10 16:15 | hoshiai | Resolution | open => fixed |
| 2019-04-10 16:15 | hoshiai | Fixed in Version | => 3.4.24 |
| 2019-04-10 16:15 | hoshiai | Note Added: 0002543 |