-
Notifications
You must be signed in to change notification settings - Fork 579
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[dev.icinga.com #10190] Problem with customvariable table update/insert queries #3416
Comments
Updated by mfriedrich on 2015-09-23 16:19:40 00:00
|
Updated by mfriedrich on 2015-09-23 19:08:45 00:00
|
Updated by mfriedrich on 2015-09-24 09:47:09 00:00
|
Updated by mfriedrich on 2015-09-24 09:47:16 00:00
Applied in changeset 8c99725. |
Updated by mfriedrich on 2015-09-24 13:58:35 00:00
Still exists under special circumstances. |
Updated by mfriedrich on 2015-09-25 13:23:19 00:00 Nailed it down: We've two events fired in case of changing a custom attribute
The mysql query merger causes the 2 insert queries happening one after the other. The first one works, the second one causes a unique constraint violation. Since we decided to update the entire object once an attribute changes, the OnVarsChanged signal becomes obsolete. We will have a similar issue with cluster updates. |
Updated by mfriedrich on 2015-09-25 14:16:46 00:00 Hm. Not related to VarsChanged. Different scenario:
Pretty hard to debug with the async queries going on. |
Updated by mfriedrich on 2015-09-25 16:39:33 00:00 The problem are actually the async queries for MySQL - the update query does not take effect before the inserts. I've modified the OnQuery() calls to pass an async flag to the driver which then decides if to push to the async queue or to just execute them directly. This resolves this issue, but requires further discussion with Gunnar. We probably need to find a better way to aggregate queries into multiple sets (e.g. array inserts). We will stick with MySQL and PostgreSQL so it should be an unresolvable issue. |
Updated by mfriedrich on 2015-09-28 11:21:36 00:00
|
Updated by mfriedrich on 2015-09-28 11:22:03 00:00
|
Updated by mfriedrich on 2015-09-28 11:26:22 00:00
|
Updated by mfriedrich on 2015-09-28 11:42:14 00:00
|
Updated by mfriedrich on 2015-10-02 07:54:05 00:00
|
Updated by tarjei on 2015-10-07 19:04:02 00:00 Hi, is there any news on when 2.3.11 will be released? This bug is holing up my migration to I2. |
Updated by mfriedrich on 2015-10-16 08:21:03 00:00 Normally this takes a couple of weeks, best is to watch the roadmap for being updated: https://dev.icinga.org/versions/277 |
This issue has been migrated from Redmine: https://dev.icinga.com/issues/10190
Created by mfriedrich on 2015-09-22 08:25:02 00:00
Assignee: mfriedrich
Status: Resolved (closed on 2015-09-28 11:22:03 00:00)
Target Version: 2.3.11
Last Update: 2015-10-16 08:21:03 00:00 (in Redmine)
Changesets
2015-09-24 09:45:44 00:00 by mfriedrich 8c99725
2015-09-25 15:01:41 00:00 by mfriedrich f1567f3
2015-09-28 11:19:42 00:00 by (unknown) d24af1e
2015-09-28 11:24:27 00:00 by mfriedrich f0bdd4c
2015-09-28 11:25:37 00:00 by (unknown) 39e92df
Relations:
The text was updated successfully, but these errors were encountered: