Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the AnyEvent-DBI-MySQL CPAN distribution.

Report information
The Basics
Id: 88908
Status: rejected
Priority: 0/
Queue: AnyEvent-DBI-MySQL

People
Owner: Nobody in particular
Requestors: avkhozov [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Re: Superfluous warnings
Date: Mon, 23 Sep 2013 20:42:55 +0600
To: bug-AnyEvent-DBI-MySQL [...] rt.cpan.org
From: Андрей Хозов <avkhozov [...] gmail.com>
And, there is also such a warning -- Reference is already weak. May be you need check reference $cache->{$_} by isweak before calling weaken. On Mon, Sep 23, 2013 at 8:37 PM, Andrey Khozov <avkhozov@googlemail.com>wrote: Show quoted text
> Hi! > > Code: > > > my $cache = $dbh->{Driver}{CachedKids}; > for (grep {$cache->{$_} == $dbh} keys %{$cache}) { > weaken($cache->{$_}); > } > > generate warning ( Use of uninitialized value in numeric eq (==) ) ​if > $dbh was undefined​ and some handles exists in $cache. > > > > -- > Andrey Khozov >
-- Андрей Хозов
Subject: Re: [rt.cpan.org #88908] Re: Superfluous warnings
Date: Mon, 23 Sep 2013 18:12:30 +0300
To: "avkhozov [...] gmail.com via RT" <bug-AnyEvent-DBI-MySQL [...] rt.cpan.org>
From: Alex Efros <powerman [...] powerman.name>
Hi! On Mon, Sep 23, 2013 at 10:43:38AM -0400, avkhozov@gmail.com via RT wrote: Show quoted text
> > generate warning ( Use of uninitialized value in numeric eq (==) ) if > > $dbh was undefined and some handles exists in $cache.
> And, there is also such a warning -- Reference is already weak. > May be you need check reference $cache->{$_} by isweak before calling > weaken.
It's ease to add few sanity checks to avoid these warnings, but I'd like to see them first - just to make sure there is no other subtle errors behind these warnings. At a glance it looks like these warnings should happens while running t/connect.t, but I didn't see any warnings on my system. Can you please check is you can get these warnings when running this test? Or can you modify that test somehow to get these warnings? -- WBR, Alex.
Hmm. All tests in t/connect.t pass without any warnings. But in my production I get this warnings from time to time. I will be investigate this problem. On Mon Sep 23 11:13:04 2013, powerman@powerman.name wrote: Show quoted text
> Hi! > > On Mon, Sep 23, 2013 at 10:43:38AM -0400, avkhozov@gmail.com via RT wrote:
> > > generate warning ( Use of uninitialized value in numeric eq (==) ) if > > > $dbh was undefined and some handles exists in $cache.
> > And, there is also such a warning -- Reference is already weak. > > May be you need check reference $cache->{$_} by isweak before calling > > weaken.
> > It's ease to add few sanity checks to avoid these warnings, but I'd like > to see them first - just to make sure there is no other subtle errors > behind these warnings. > > At a glance it looks like these warnings should happens while running > t/connect.t, but I didn't see any warnings on my system. Can you please > check is you can get these warnings when running this test? Or can you > modify that test somehow to get these warnings? >