[MDEV-5744] OQGRAPH backing table changes not reflected in OQGRAPH table Created: 2014-02-26 Updated: 2021-06-05 Resolved: 2014-02-27 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Storage Engine - OQGRAPH |
| Affects Version/s: | 10.0.8 |
| Fix Version/s: | 10.0.9 |
| Type: | Bug | Priority: | Major |
| Reporter: | Ian Gilfillan | Assignee: | Elena Stepanova |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | oqgraph | ||
| Issue Links: |
|
||||||||||
| Sub-Tasks: |
|
||||||||||
| Description |
|
An update to the backing OQGRAPH table does not reflect when querying the OQGRAPH table. The change reflects after a server restart. Running Ubuntu 12.04 32-bit. MariaDB 10.0.7 installed from standard package, 3.2.0-58-gerneric-pae kernel, dual CPU How to repeat:
I have repeated the bug on another machine, Ubuntu 12.04 64-bit, both fairly standard my.cnf settings. The problem persists on 10.0.8. I have reported this bug upstream at https://bugs.launchpad.net/oqgraph/+bug/1279246 but there has been no activity. The problem also appears to affect others - see https://mariadb.com/kb/en/how-do-i-keep-the-graph-table-and-data-table-in-sync/#comment_1055 |
| Comments |
| Comment by Elena Stepanova [ 2014-02-26 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Do you have query_cache enabled? | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Elena Stepanova [ 2014-02-26 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Here is how it was done in Cassandra (
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Elena Stepanova [ 2014-02-26 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
I applied the same solution to OQGRAPH, seems to do the trick:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Ian Gilfillan [ 2014-02-26 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Yes, the query_cache is enabled by default, so this was active in both cases. I wasn't aware it needed to be disabled - I will document this as well. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Elena Stepanova [ 2014-02-26 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Actually, query_cache is disabled by default – it is ON, but with 0 size, which means no cache, but can be changed at runtime. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Arjen Lentz [ 2014-02-27 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Thanks for the bugreport Ian! Hi Elena - thanks for tracking that. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Elena Stepanova [ 2014-02-27 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Pushed to 10.0 tree as http://bazaar.launchpad.net/~maria-captains/maria/10.0/revision/4012 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by roberto spadim [ 2014-09-24 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
please remove INSERT DELAYED too, since aria and maybe innodb don't support it | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by roberto spadim [ 2014-09-24 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
i think this problem isn't solved, at least to 10.1 and launchpad 10.0 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Elena Stepanova [ 2014-09-24 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
The change was in ha_oqgraph.h, while you are looking at ha_oqgraph.cc. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by roberto spadim [ 2014-09-24 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
that's right i was searching rev 4012 at .cc not .h | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by roberto spadim [ 2014-09-24 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
i will change documentation | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by roberto spadim [ 2014-09-24 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
docs changed... select * from oq_graph | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Lennard Dietz [ 2021-05-31 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Hello guys, We are using MariaDB Version 10.5.8 and the OQGRAPH Plugin is installed with the following information in our DB:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Sergei Golubchik [ 2021-06-05 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
I don't think it's possible that you've got an old OQGRAPH version. This one was definitely compiled for 10.5.8 (PLUGIN_TYPE_VERSION) and the old OQGRAPH wouldn't even compile for 10.5.8. Could be a different bug. |