[ZBX-3085] Zabbix proxy stop to send data to Zabbix server in particular situation. Created: 2010 Oct 07 Updated: 2017 May 30 Resolved: 2010 Nov 17 |
|
| Status: | Closed |
| Project: | ZABBIX BUGS AND ISSUES |
| Component/s: | Proxy (P) |
| Affects Version/s: | 1.6.9, 1.8.3 |
| Fix Version/s: | 1.8.4 |
| Type: | Incident report | Priority: | Major |
| Reporter: | Takanori Suzuki | Assignee: | Unassigned |
| Resolution: | Fixed | Votes: | 1 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Zabbix Server 1.8.3 with mysql: Linux i386 |
||
| Attachments: |
|
||||
| Issue Links: |
|
||||
| Description |
|
If using Zabbix with mysql innodb, Zabbix proxy stop to send data to Zabbix server in particular situation. In particular situation, "id" in "proxy_history" table is reset to 1, though "ids" table has incremented number. Why it occurs: How to reproduce: Then, "id" in "proxy_history" table is reset to 1 and you cannot get data from proxy. How to fix: I think idea1 is better. |
| Comments |
| Comment by Takanori Suzuki [ 2010 Oct 07 ] |
|
I'll write idea1 patch in this weekend. |
| Comment by Takanori Suzuki [ 2010 Oct 15 ] |
|
Hi. "zbx183-fix_auto_increment.patch" is for 1.8.3. |
| Comment by Takanori Suzuki [ 2010 Oct 15 ] |
|
As far as I read the code in 1.8 branch(r14887), same problem still exists. |
| Comment by Aleksandrs Saveljevs [ 2010 Nov 16 ] |
|
Other database engines do not seem to have this problem. For instance, SQLite (http://www.sqlite.org/faq.html#q1): "To create keys that are unique over the lifetime of the table, add the AUTOINCREMENT keyword to the INTEGER PRIMARY KEY declaration. Then the key chosen will be one more than than the largest key that has ever existed in that table.". This is exactly what we do. For other database engines, testing seems to show this problem does not exist. |
| Comment by Aleksandrs Saveljevs [ 2010 Nov 16 ] |
|
Applied the patch in the development branch svn://svn.zabbix.com/branches/dev/ZBX-3085. |
| Comment by Alexander Vladishev [ 2010 Nov 17 ] |
|
Fixed in development branch svn://svn.zabbix.com/branches/dev/ZBX-3085 |
| Comment by Alexander Vladishev [ 2010 Nov 17 ] |
|
Fixed in version pre1.8.4, r15570. |
| Comment by Aleksandrs Saveljevs [ 2010 Nov 17 ] |
|
The patch has a very interesting idea (thanks!), but unfortunately it does not cope with the case when MySQL server is restarted while Zabbix proxy is running. So we decided instead that the proxy housekeeper should always keep at least one row in the history tables. |
| Comment by Takanori Suzuki [ 2010 Nov 17 ] |
|
I see. I understand the if-case. |