oqgraph-dev team mailing list archive
-
oqgraph-dev team
-
Mailing list archive
-
Message #00308
Re: OQGraph crash with larger graphs
Hi Heinz
I'm going to take a punt and say that I missed this applying the fix for
MDEV-6282 in all cases
If you can manually apply the following patch and see if it fixes your problem?
HTH
--Andrew
diff --git a/storage/oqgraph/ha_oqgraph.cc b/storage/oqgraph/ha_oqgraph.cc
index 89bc912..b4cf03c 100644
--- a/storage/oqgraph/ha_oqgraph.cc
+++ b/storage/oqgraph/ha_oqgraph.cc
@@ -1099,6 +1099,10 @@ int ha_oqgraph::info(uint flag)
int ha_oqgraph::extra(enum ha_extra_function operation)
{
+ if (graph->get_thd() != current_thd) {
+ DBUG_PRINT( "oq-debug", ("rnd_pos g->table->in_use: 0x%lx <-- current_thd
0x%lx", (long) graph->get_thd(), (long) current_thd));
+ graph->set_thd(current_thd);
+ }
return edges->file->extra(operation);
}
On 16/11/15 19:17, Heinz Wiesinger wrote:
> Hey everyone,
>
> We've been playing around a bit more with OQGraphv3 and when trying to put it
> on one of our production setups we found it crashing in situations that didn't
> happen on our testing setup. After a bit of back and forth I managed to
> reproduce it pretty reliable and added info to
> https://mariadb.atlassian.net/browse/MDEV-8206
>
> From what I see it seems that the crash only happens when the graph is above a
> certain size. But with our code, we'd hit that limit pretty easily.
>
> Could someone maybe take a look at that please? :)
>
> Grs,
> Heinz
>
>
>
Follow ups
References