oqgraph-dev team mailing list archive
-
oqgraph-dev team
-
Mailing list archive
-
Message #00309
Re: OQGraph crash with larger graphs
Hi Andrew,
Sorry for taking my time with this. You surprised me a bit with delivering a
patch so quickly ;)
It looks like your hunch is correct. After applying the patch my crashes are
gone.
Thanks for looking into this and I'm looking forward to seeing the pull
request :)
Grs,
Heinz
(Sorry Andrew for getting this twice. Forgot to include the list in the
previous mail)
On Monday 16 November 2015 23:11:18 you wrote:
> 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
Attachment:
signature.asc
Description: This is a digitally signed message part.
Follow ups
References