Skip Menu |
 

This queue is for tickets about the CHI-Driver-Memcached CPAN distribution.

Report information
The Basics
Id: 89697
Status: open
Priority: 0/
Queue: CHI-Driver-Memcached

People
Owner: Nobody in particular
Requestors: zefram [...] fysh.org
Cc:
AdminCc:

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



Subject: fails with Cache::Memcached::libmemcached installed
Date: Tue, 22 Oct 2013 14:26:28 +0100
To: bug-CHI-Driver-Memcached [...] rt.cpan.org
From: Zefram <zefram [...] fysh.org>
Download (untitled) / with headers
text/plain 20.6k

Message body is not shown because it is too large.

I've just hit this as well. Any news?
Subject: Re: [rt.cpan.org #89697] fails with Cache::Memcached::libmemcached installed
Date: Wed, 20 May 2015 06:25:39 -0700
To: bug-CHI-Driver-Memcached [...] rt.cpan.org
From: Jonathan Swartz <swartz [...] pobox.com>
Download (untitled) / with headers
text/plain 517b
I haven’t been in the Perl world for years, but I’m happy to release a patch / pull request. I did try to install libmemcached on my mac to test this, but ran into https://github.com/Homebrew/homebrew/issues/20635. I’ll see if that goes away when I upgrade to Yosemite. On May 20, 2015, at 4:17 AM, Tim_Bunce via RT <bug-CHI-Driver-Memcached@rt.cpan.org> wrote: Show quoted text
> Queue: CHI-Driver-Memcached > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=89697 > > > I've just hit this as well. Any news?
Download (untitled) / with headers
text/plain 1.9k
The failures look like: t/CHIDriverTests-libmemcached.t .. 1/? # Failed test 'cache2 untouched by clear' # at /home/tim/trunk/cpan/cpan-5.010/lib/perl5/CHI/t/Driver.pm line 1178. # (in CHI::Driver::Memcached::t::CHIDriverTests::libmemcached->test_clear) # Comparing $data as a Set # Missing: '0', '1', 'a', 'abababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababab', 'arrayref', 'binary', 'empty', 'hashref', 'medium', 'mixed', 'newline', 'space', 'utf8' t/CHIDriverTests-libmemcached.t .. 71/? # Failed test '5 lowest' # at /home/tim/trunk/cpan/cpan-5.010/lib/perl5/CHI/t/Driver.pm line 1502. # (in CHI::Driver::Memcached::t::CHIDriverTests::libmemcached->test_custom_discard_policy) # Comparing $data as a Set # Missing: 'key0', 'key1', 'key2', 'key3', 'key4' # Failed test '1 lowest' # at /home/tim/trunk/cpan/cpan-5.010/lib/perl5/CHI/t/Driver.pm line 1506. # (in CHI::Driver::Memcached::t::CHIDriverTests::libmemcached->test_custom_discard_policy) # Comparing $data as a Set # Missing: 'key0' # Failed test '5 lowest' # at /home/tim/trunk/cpan/cpan-5.010/lib/perl5/CHI/t/Driver.pm line 1502. # (in CHI::Driver::Memcached::t::CHIDriverTests::libmemcached->test_custom_discard_policy) # Comparing $data as a Set # Missing: 'key0', 'key1', 'key2', 'key3', 'key4' # Failed test '1 lowest' # at /home/tim/trunk/cpan/cpan-5.010/lib/perl5/CHI/t/Driver.pm line 1506. # (in CHI::Driver::Memcached::t::CHIDriverTests::libmemcached->test_custom_discard_policy) # Comparing $data as a Set # Missing: 'key0' # Failed test '5 lowest' # at /home/tim/trunk/cpan/cpan-5.010/lib/perl5/CHI/t/Driver.pm line 1502. # (in CHI::Driver::Memcached::t::CHIDriverTests::libmemcached->test_custom_discard_policy) # Comparing $data as a Set # Missing: 'key0', 'key1', 'key2', 'key3', 'key4' ... Any clues as to the likely cause would be appreciated.
Subject: Re: [rt.cpan.org #89697] fails with Cache::Memcached::libmemcached installed
Date: Thu, 21 May 2015 09:46:40 -0700
To: bug-CHI-Driver-Memcached [...] rt.cpan.org
From: Jonathan Swartz <swartz [...] pobox.com>
Download (untitled) / with headers
text/plain 2.2k
Can you see if they pass for Cache::Memcached? On May 21, 2015, at 6:39 AM, Tim_Bunce via RT <bug-CHI-Driver-Memcached@rt.cpan.org> wrote: Show quoted text
> Queue: CHI-Driver-Memcached > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=89697 > > > The failures look like: > > t/CHIDriverTests-libmemcached.t .. 1/? > # Failed test 'cache2 untouched by clear' > # at /home/tim/trunk/cpan/cpan-5.010/lib/perl5/CHI/t/Driver.pm line 1178. > # (in CHI::Driver::Memcached::t::CHIDriverTests::libmemcached->test_clear) > # Comparing $data as a Set > # Missing: '0', '1', 'a', 'abababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababab', 'arrayref', 'binary', 'empty', 'hashref', 'medium', 'mixed', 'newline', 'space', 'utf8' > t/CHIDriverTests-libmemcached.t .. 71/? > # Failed test '5 lowest' > # at /home/tim/trunk/cpan/cpan-5.010/lib/perl5/CHI/t/Driver.pm line 1502. > # (in CHI::Driver::Memcached::t::CHIDriverTests::libmemcached->test_custom_discard_policy) > # Comparing $data as a Set > # Missing: 'key0', 'key1', 'key2', 'key3', 'key4' > > # Failed test '1 lowest' > # at /home/tim/trunk/cpan/cpan-5.010/lib/perl5/CHI/t/Driver.pm line 1506. > # (in CHI::Driver::Memcached::t::CHIDriverTests::libmemcached->test_custom_discard_policy) > # Comparing $data as a Set > # Missing: 'key0' > > # Failed test '5 lowest' > # at /home/tim/trunk/cpan/cpan-5.010/lib/perl5/CHI/t/Driver.pm line 1502. > # (in CHI::Driver::Memcached::t::CHIDriverTests::libmemcached->test_custom_discard_policy) > # Comparing $data as a Set > # Missing: 'key0', 'key1', 'key2', 'key3', 'key4' > > # Failed test '1 lowest' > # at /home/tim/trunk/cpan/cpan-5.010/lib/perl5/CHI/t/Driver.pm line 1506. > # (in CHI::Driver::Memcached::t::CHIDriverTests::libmemcached->test_custom_discard_policy) > # Comparing $data as a Set > # Missing: 'key0' > > # Failed test '5 lowest' > # at /home/tim/trunk/cpan/cpan-5.010/lib/perl5/CHI/t/Driver.pm line 1502. > # (in CHI::Driver::Memcached::t::CHIDriverTests::libmemcached->test_custom_discard_policy) > # Comparing $data as a Set > # Missing: 'key0', 'key1', 'key2', 'key3', 'key4' > > ... > > Any clues as to the likely cause would be appreciated.
Download (untitled) / with headers
text/plain 879b
Sorry for the delay. I'd missed your reply. Yes, t/CHIDriverTests-Memcached.t and t/CHIDriverTests-Fast.t pass, but t/CHIDriverTests-libmemcached.t fails. Here's a full log: https://gist.github.com/timbunce/a6876a6aa0ec321655dd Given the way the tests are structure it does seem mostly likely that the bug is in Cache::Memcached::libmemcached and/or Memcached::libmemcached. What really puzzles me is that I can't find some combination of Cache::Memcached::libmemcached and Memcached::libmemcached that passes the test. So the first question is can you reproduce the problem? Also, can you confirm that you would have had Cache::Memcached::libmemcached installed and so would have tested CHI::Driver::Memcached with it before release? Any idea what versions you would have used? And finally, looking at the specific failures, could you guess at the likely cause? Thanks!
Subject: Re: [rt.cpan.org #89697] fails with Cache::Memcached::libmemcached installed
Date: Sat, 6 Jun 2015 16:53:57 -0700
To: bug-CHI-Driver-Memcached [...] rt.cpan.org
From: Jonathan Swartz <swartz [...] pobox.com>
Download (untitled) / with headers
text/plain 1.5k
I can’t even get libmemcached compiled on my mac, so no can’t reproduce the problem. :) I’d be surprised if these tests never passed and we never heard about it - they’ve been around for years - but I guess it’s possible… From the test failures it looks like it might have something to do with get_keys. This isn’t supported in memcached of course, but the test class defines a simulated get_keys for the purposes of testing. Looks like maybe this isn’t working for libmemcached. On Jun 2, 2015, at 6:21 AM, Tim_Bunce via RT <bug-CHI-Driver-Memcached@rt.cpan.org> wrote: Show quoted text
> Queue: CHI-Driver-Memcached > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=89697 > > > Sorry for the delay. I'd missed your reply. > > Yes, t/CHIDriverTests-Memcached.t and t/CHIDriverTests-Fast.t pass, but t/CHIDriverTests-libmemcached.t fails. > Here's a full log: https://gist.github.com/timbunce/a6876a6aa0ec321655dd > > Given the way the tests are structure it does seem mostly likely that the bug is in Cache::Memcached::libmemcached and/or Memcached::libmemcached. > > What really puzzles me is that I can't find some combination of Cache::Memcached::libmemcached and Memcached::libmemcached that passes the test. > > So the first question is can you reproduce the problem? > > Also, can you confirm that you would have had Cache::Memcached::libmemcached installed and so would have tested CHI::Driver::Memcached with it before release? > > Any idea what versions you would have used? > > And finally, looking at the specific failures, could you guess at the likely cause? > > Thanks!
Download (untitled) / with headers
text/plain 492b
CHI-Driver-Memcached-0.16 installed ok with the old modules, so we know the failure isn't due to new/changed tests. CHI-Driver-Memcached-0.16 installed ok after upgrading to Cache-Memcached-libmemcached 0.03001 (not 0.04001 as that requires a recent Memcached-libmemcached version, though probably doesn't really _need_ it.) CHI-Driver-Memcached-0.16 tests failed after upgrading Memcached-libmemcached from 0.4406 to any later version I tried. Confirmed with perl 5.10.1 and perl 5.20.2.
Download (untitled) / with headers
text/plain 139b
So, in summary, this appears to be a bug in Memcached::libmemcached v1+ that's exposed by the torture test suite of CHI::Driver::Memcached.
From: wolfsage [...] gmail.com
Download (untitled) / with headers
text/plain 562b
On Wed Jun 24 09:56:39 2015, TIMB wrote: Show quoted text
> So, in summary, this appears to be a bug in Memcached::libmemcached > v1+ that's exposed by the torture test suite of > CHI::Driver::Memcached.
I think I've finally got it: https://github.com/jonswar/perl-chi-driver-memcached/pull/2 Newer libmemcached doesn't like keys with no length. Previous versions of libmemcached would prepend the namespace to a zero length key before submitting it to memcached. Now it just returns an error, so don't attempt to call get_multi() with such keys. -- Matthew Horsfall (alh)


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.