Skip Menu |
 

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

Report information
The Basics
Id: 66350
Status: new
Priority: 0/
Queue: AnyEvent-Memcached

People
Owner: Nobody in particular
Requestors: jayj [...] yahoo-inc.com
Cc:
AdminCc:

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



From jayj [...] yahoo-inc.com Thu Mar 3 09: 50:01 2011
MIME-Version: 1.0
X-Spam-Status: No, score=-6.177 tagged_above=-99.9 required=10 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, NO_RDNS_DOTCOM_HELO=0.823, RCVD_IN_DNSWL_HI=-5] autolearn=ham
X-Spam-Flag: NO
Acceptlanguage: en-US
X-Virus-Checked: Checked by ClamAV on 16.mx.develooper.com
Content-Language: en-US
Content-Type: multipart/mixed; boundary="_002_172DA031F0DA4ACAB5E79D602670A8A2yahooinccom_"
Message-ID: <172DA031-F0DA-4ACA-B5E7-9D602670A8A2 [...] yahoo-inc.com>
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
X-MS-Tnef-Correlator:
X-Spam-Score: -6.177
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id DC3D92416C2 for <cpan-bug+AnyEvent-Memcached [...] hipster.bestpractical.com>; Thu, 3 Mar 2011 09:50:01 -0500 (EST)
Received: from hipster.bestpractical.com ([127.0.0.1]) by localhost (hipster.bestpractical.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id KjBVB3Uj3YUV for <cpan-bug+AnyEvent-Memcached [...] hipster.bestpractical.com>; Thu, 3 Mar 2011 09:49:56 -0500 (EST)
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by hipster.bestpractical.com (Postfix) with SMTP id DF1A92416BE for <bug-AnyEvent-Memcached [...] rt.cpan.org>; Thu, 3 Mar 2011 09:49:55 -0500 (EST)
Received: (qmail 27639 invoked by uid 103); 3 Mar 2011 14:49:55 -0000
Received: from x16.dev (10.0.100.26) by x1.dev with QMQP; 3 Mar 2011 14:49:55 -0000
Received: from mrout1.yahoo.com (HELO mrout1.yahoo.com) (216.145.54.171) by 16.mx.develooper.com (qpsmtpd/0.80) with ESMTP; Thu, 03 Mar 2011 06:49:52 -0800
Received: from sp1-ex07cas01.ds.corp.yahoo.com (sp1-ex07cas01.ds.corp.yahoo.com [216.252.116.137]) by mrout1.yahoo.com (8.14.4/8.14.4/y.out) with ESMTP id p23EndFF091993 for <bug-AnyEvent-Memcached [...] rt.cpan.org>; Thu, 3 Mar 2011 06:49:39 -0800 (PST)
Received: from SP1-EX07VS02.ds.corp.yahoo.com ([216.252.116.135]) by sp1-ex07cas01.ds.corp.yahoo.com ([216.252.116.137]) with mapi; Thu, 3 Mar 2011 06:49:39 -0800
Authentication-Results: hipster.bestpractical.com (amavisd-new); dkim=pass header.i= [...] yahoo-inc.com
Delivered-To: cpan-bug+AnyEvent-Memcached [...] hipster.bestpractical.com
Subject: AnyEvent::Memcached not handling unavailable memcache servers correctly?
Return-Path: <jayj [...] yahoo-inc.com>
X-RT-Mail-Extension: anyevent-memcached
X-Original-To: cpan-bug+AnyEvent-Memcached [...] hipster.bestpractical.com
X-Spam-Check-BY: 16.mx.develooper.com
Dkim-Signature: v=1; a=rsa-sha256; c=simple/simple; d=yahoo-inc.com; s=cobra; t=1299163779; bh=yVZhBStCX4Fi4fo+n2NtE2HjYfuoZ9AB7jBjsuTxtBs=; h=From:To:Date:Subject:Message-ID:Content-Type:MIME-Version; b=Qd0BAera+Garxk9IlZ6ogXCRtGJGlPb1e4d15c0trzuRJPoCx95Vpk3aPV5WMfwKw G6X9Eh5t6qOu7hyg3SDx0nDIP2OnK3y8vOfzIKmtGKcqwE/JtvWbc4UtI0vEQPM+t9 MaD5aud0p6SxMgqLKxRFcr/1LH1VB3HF37vxDG6o=
Thread-Index: AcvZsjkPWcuzB3/uSOmBA12bGXb8WA==
Date: Thu, 3 Mar 2011 06:49:38 -0800
X-Spam-Level:
X-MS-Has-Attach: yes
Thread-Topic: AnyEvent::Memcached not handling unavailable memcache servers correctly?
Accept-Language: en-US
To: "bug-AnyEvent-Memcached [...] rt.cpan.org" <bug-AnyEvent-Memcached [...] rt.cpan.org>
From: Jay Janssen <jayj [...] yahoo-inc.com>
Content-Length: 0
content-type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
X-RT-Original-Encoding: us-ascii
Content-Length: 2936
Download (untitled) / with headers
text/plain 2.8k
I have a test script (attached, hopefully RT will do the right thing with it) where I'm setting up two memcached daemons and connecting AnyEvent::Memcached to both of them. I then run loop over a sub that checks for a set of keys 1-10, and if any do not exist, it creates them. This runs fine. However, what I wanted to test was the failure of one of the memcached. So in my shell, I kill one of the memcached instances. AnyEvent::Memcached seems to then hang on the 'get' looking for all the keys. The debug output gives this: Disconnected 127.0.0.1:11212 AnyEvent::Memcached::Conn=HASH(0x93c5f64) Error: Broken pipe at /home/y/lib/perl5/site_perl/AnyEvent/Connection.pm line 257. (154951524) Destroying AE::CNN::Raw at /home/y/lib/perl5/site_perl/AnyEvent/Connection/Raw.pm line 79. Peer 127.0.0.1:11212 disconnected: Error: Broken pipe <<127.0.0.1:11213+2 5 7 9 VALUE 2 0 4 at /home/y/lib/perl5/site_perl/AnyEvent/Memcached/Conn.pm line 26. <+ read 6 at /home/y/lib/perl5/site_perl/AnyEvent/Connection/Raw.pm line 138. + received data 2: foo2 at /home/y/lib/perl5/site_perl/AnyEvent/Memcached/Conn.pm line 48. <<127.0.0.1:11213+2 5 7 9 VALUE 5 0 4 at /home/y/lib/perl5/site_perl/AnyEvent/Memcached/Conn.pm line 26. <+ read 6 at /home/y/lib/perl5/site_perl/AnyEvent/Connection/Raw.pm line 138. + received data 5: foo5 at /home/y/lib/perl5/site_perl/AnyEvent/Memcached/Conn.pm line 48. <<127.0.0.1:11213+2 5 7 9 VALUE 7 0 4 at /home/y/lib/perl5/site_perl/AnyEvent/Memcached/Conn.pm line 26. <+ read 6 at /home/y/lib/perl5/site_perl/AnyEvent/Connection/Raw.pm line 138. + received data 7: foo7 at /home/y/lib/perl5/site_perl/AnyEvent/Memcached/Conn.pm line 48. <<127.0.0.1:11213+2 5 7 9 VALUE 9 0 4 at /home/y/lib/perl5/site_perl/AnyEvent/Memcached/Conn.pm line 26. <+ read 6 at /home/y/lib/perl5/site_perl/AnyEvent/Connection/Raw.pm line 138. + received data 9: foo9 at /home/y/lib/perl5/site_perl/AnyEvent/Memcached/Conn.pm line 48. <<127.0.0.1:11213+2 5 7 9 END at /home/y/lib/perl5/site_perl/AnyEvent/Memcached/Conn.pm line 26. Connecting to 127.0.0.1:11212... at /home/y/lib/perl5/site_perl/AnyEvent/Connection.pm line 243. Not connected 127.0.0.1:11212: Connection refused at /home/y/lib/perl5/site_perl/AnyEvent/Connection.pm line 266. Then it repeats this message forever: Connecting to 127.0.0.1:11212... at /home/y/lib/perl5/site_perl/AnyEvent/Connection.pm line 243. Not connected 127.0.0.1:11212: Connection refused at /home/y/lib/perl5/site_perl/AnyEvent/Connection.pm line 266. I would expect there to be a timeout for io operations that would simply take the server out of the connection pool like other clients. Is this a bug or am I supposed to implement my own AnyEvent::Memcached::Hash subclass that handles this? My memcached is 1.4.5 and I'm using AnyEvent::Memcached-0.05 on perl 5.8 and perl 5.10 (same problem on both). Jay Janssen High Availability Something-or-other jayj@yahoo-inc.com
Content-Description: test_memcache_driver.pl
content-type: text/x-perl-script; name="test_memcache_driver.pl"
content-disposition: attachment; creation-date="Thu, 03 Mar 2011 14:49:39 GMT"; filename="test_memcache_driver.pl"; modification-date="Thu, 03 Mar 2011 14:49:39 GMT"; size="1736"
Content-Transfer-Encoding: base64
Content-Length: 1736

Message body is not shown because sender requested not to inline it.



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.