Skip Menu |
 

This queue is for tickets about the CHI CPAN distribution.

Report information
The Basics
Id: 70898
Status: resolved
Priority: 0/
Queue: CHI

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

Bug Information
Severity: (no value)
Broken in:
  • 0.48
  • 0.49
Fixed in: (no value)



Subject: Namespace Cache clearing no longer working
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 987
Download (untitled) / with headers
text/plain 987b
Jon, I encountered a situation where my staging server, which was running 0.47 was successfully programmatically clearing cache for a specific namespace, but my production server, which was running 0.49, was not. I was using the DBI driver and both servers were running the 1.24 version of it, I am not sure if it affects other drivers I diffed the two versions on CPAN and the only real change to the code I saw found in this commit. https://github.com/jonswar/perl- chi/commit/39b3feb0999928f6e751d2d4dcda66f395c24faf Not knowing the guts of CHI too well I could not tell exactly what is going on and exactly what may have changed here so I thought I would send it over to you. If this basically doesn't make you go "AH HA!" and immediately know how this can be fixed, let me know and I will be happy to write up a failing test and maybe do some code-diving myself. But I figured this might be a super-easy fix for you so I would try this first. Thanks Much, - Stevan
MIME-Version: 1.0
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
Content-Type: text/plain; charset="UTF-8"
Message-ID: <rt-3.8.HEAD-20564-1315867471-1569.70898-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 236
Download (untitled) / with headers
text/plain 236b
That's disturbing. Looking at the code did not generate an "A-HA". When you say "programmatically clearing cache", do you mean calling $cache->clear()? Or something else? Are all tests are passing for CHI::Driver::DBI on your system?
From stevan.little [...] iinteractive.com Mon Sep 12 20: 31:53 2011
MIME-Version: 1.0 (Apple Message framework v1084)
X-Spam-Status: No, score=-5.326 tagged_above=-99.9 required=10 tests=[AWL=0.909, BAYES_00=-1.9, RCVD_IN_DNSWL_HI=-5, SPF_SOFTFAIL=0.665] autolearn=ham
In-Reply-To: <rt-3.8.HEAD-20564-1315867472-372.70898-6-0 [...] rt.cpan.org>
X-Mailer: Apple Mail (2.1084)
X-Spam-Flag: NO
References: <RT-Ticket-70898 [...] rt.cpan.org> <rt-3.8.HEAD-20564-1315867472-372.70898-6-0 [...] rt.cpan.org>
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
Content-Type: text/plain; charset="utf-8"
Message-ID: <B26D0603-28BD-4085-A5BC-280D5EBA5248 [...] iinteractive.com>
X-RT-Original-Encoding: utf-8
X-Spam-Score: -5.326
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id 5FB81240937 for <cpan-bug+CHI [...] hipster.bestpractical.com>; Mon, 12 Sep 2011 20:31:53 -0400 (EDT)
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 yNsDV2E9VETf for <cpan-bug+CHI [...] hipster.bestpractical.com>; Mon, 12 Sep 2011 20:31:51 -0400 (EDT)
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by hipster.bestpractical.com (Postfix) with SMTP id F237C24092D for <bug-CHI [...] rt.cpan.org>; Mon, 12 Sep 2011 20:31:50 -0400 (EDT)
Received: (qmail 11413 invoked by uid 103); 13 Sep 2011 00:31:50 -0000
Received: from x16.dev (10.0.100.26) by x1.dev with QMQP; 13 Sep 2011 00:31:50 -0000
Received: from mail-yi0-f50.google.com (HELO mail-yi0-f50.google.com) (209.85.218.50) by 16.mx.develooper.com (qpsmtpd/0.80/v0.80-19-gf52d165) with ESMTP; Mon, 12 Sep 2011 17:31:47 -0700
Received: by yib18 with SMTP id 18so8335yib.9 for <bug-CHI [...] rt.cpan.org>; Mon, 12 Sep 2011 17:31:44 -0700 (PDT)
Received: by 10.150.193.16 with SMTP id q16mr1252490ybf.323.1315873904761; Mon, 12 Sep 2011 17:31:44 -0700 (PDT)
Received: from [10.0.1.4] (c-98-216-171-59.hsd1.ct.comcast.net [98.216.171.59]) by mx.google.com with ESMTPS id z6sm44430anf.22.2011.09.12.17.31.42 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 12 Sep 2011 17:31:43 -0700 (PDT)
Delivered-To: cpan-bug+CHI [...] hipster.bestpractical.com
Subject: Re: [rt.cpan.org #70898] Namespace Cache clearing no longer working
Return-Path: <stevan.little [...] iinteractive.com>
X-Spam-Check-BY: 16.mx.develooper.com
X-Original-To: cpan-bug+CHI [...] hipster.bestpractical.com
X-RT-Mail-Extension: chi
Date: Mon, 12 Sep 2011 20:31:41 -0400
X-Spam-Level:
To: bug-CHI [...] rt.cpan.org
Content-Transfer-Encoding: quoted-printable
From: Stevan Little <stevan.little [...] iinteractive.com>
RT-Message-ID: <rt-3.8.HEAD-20559-1315873914-41.70898-0-0 [...] rt.cpan.org>
Content-Length: 505
Download (untitled) / with headers
text/plain 505b
Jonathan, Yes, that is how I am calling it. I will try and whip up a failing test for this. Thanks for taking a look. - Stevan On Sep 12, 2011, at 6:44 PM, Jonathan Swartz via RT wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=70898 > > > That's disturbing. Looking at the code did not generate an "A-HA". > > When you say "programmatically clearing cache", do you mean calling > $cache->clear()? Or something else? > > Are all tests are passing for CHI::Driver::DBI on your system? >
From swartz [...] pobox.com Tue Sep 13 00: 49:59 2011
MIME-Version: 1.0 (Apple Message framework v1084)
X-Spam-Status: No, score=-4.988 tagged_above=-99.9 required=10 tests=[AWL=1.133, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_HI=-5, SPF_NEUTRAL=0.779] autolearn=ham
In-Reply-To: <rt-3.8.HEAD-20559-1315873914-1270.70898-5-0 [...] rt.cpan.org>
X-Mailer: Apple Mail (2.1084)
X-Spam-Flag: NO
References: <RT-Ticket-70898 [...] rt.cpan.org> <rt-3.8.HEAD-20564-1315867472-372.70898-6-0 [...] rt.cpan.org> <B26D0603-28BD-4085-A5BC-280D5EBA5248 [...] iinteractive.com> <rt-3.8.HEAD-20559-1315873914-1270.70898-5-0 [...] rt.cpan.org>
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
Content-Type: text/plain; charset="utf-8"
Message-ID: <CB7A756F-7581-4894-B241-6806DFDBA0AB [...] pobox.com>
X-Sasl-Enc: TNsHWLgG3UxA+iKMNXNXrKt2fUmEr2Zfw/5I18kNJn0T 1315889388
X-RT-Original-Encoding: utf-8
X-Spam-Score: -4.988
Authentication-Results: hipster.bestpractical.com (amavisd-new); dkim=pass header.i= [...] messagingengine.com
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id 231BE240900 for <cpan-bug+CHI [...] hipster.bestpractical.com>; Tue, 13 Sep 2011 00:49:59 -0400 (EDT)
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 4Pf4Y1jtltGO for <cpan-bug+CHI [...] hipster.bestpractical.com>; Tue, 13 Sep 2011 00:49:57 -0400 (EDT)
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by hipster.bestpractical.com (Postfix) with SMTP id 32B6F240877 for <bug-CHI [...] rt.cpan.org>; Tue, 13 Sep 2011 00:49:56 -0400 (EDT)
Received: (qmail 28328 invoked by uid 103); 13 Sep 2011 04:49:55 -0000
Received: from x16.dev (10.0.100.26) by x1.dev with QMQP; 13 Sep 2011 04:49:55 -0000
Received: from out4.smtp.messagingengine.com (HELO out4.smtp.messagingengine.com) (66.111.4.28) by 16.mx.develooper.com (qpsmtpd/0.80/v0.80-19-gf52d165) with ESMTP; Mon, 12 Sep 2011 21:49:53 -0700
Received: from compute1.internal (compute1.nyi.mail.srv.osa [10.202.2.41]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id 4B0E02A57F for <bug-CHI [...] rt.cpan.org>; Tue, 13 Sep 2011 00:49:48 -0400 (EDT)
Received: from frontend1.nyi.mail.srv.osa ([10.202.2.160]) by compute1.internal (MEProxy); Tue, 13 Sep 2011 00:49:48 -0400
Received: from [10.0.1.156] (c-71-202-173-94.hsd1.ca.comcast.net [71.202.173.94]) by mail.messagingengine.com (Postfix) with ESMTPSA id E765E740523 for <bug-CHI [...] rt.cpan.org>; Tue, 13 Sep 2011 00:49:47 -0400 (EDT)
Delivered-To: cpan-bug+CHI [...] hipster.bestpractical.com
Subject: Re: [rt.cpan.org #70898] Namespace Cache clearing no longer working
Return-Path: <swartz [...] pobox.com>
Dkim-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-type:mime-version:subject:from :in-reply-to:date:content-transfer-encoding:message-id :references:to; s=smtpout; bh=QqjYvFFbQcjo2jmmySh8d+NCRRc=; b=U4 8+5xBM8npTz5agayI0ExAiTIxawXGJWAskt7kT5WiGctBSSIs4DZYM8nfTySy5K2 B1N9sFvYd602Jkx7CngUt72sTrX2Q7yLEpVPXEuLvtN3nDo8dLsKJ4YLQE3eMkHi f1Ac08DwHvtHkeqczxqNk1liOmmYiGHhDOnq9k3qk=
X-Spam-Check-BY: 16.mx.develooper.com
X-Original-To: cpan-bug+CHI [...] hipster.bestpractical.com
X-RT-Mail-Extension: chi
Date: Mon, 12 Sep 2011 21:49:48 -0700
X-Spam-Level:
To: bug-CHI [...] rt.cpan.org
Content-Transfer-Encoding: quoted-printable
From: Jonathan Swartz <swartz [...] pobox.com>
RT-Message-ID: <rt-3.8.HEAD-20565-1315889400-857.70898-0-0 [...] rt.cpan.org>
Content-Length: 763
Download (untitled) / with headers
text/plain 763b
Ok. There is a test_clear in CHI/t/Driver.pm, you might see if that passes. On Sep 12, 2011, at 5:31 PM, Stevan Little via RT wrote: Show quoted text
> Queue: CHI > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=70898 > > > Jonathan, > > Yes, that is how I am calling it. I will try and whip up a failing test for this. > > Thanks for taking a look. > > - Stevan > > On Sep 12, 2011, at 6:44 PM, Jonathan Swartz via RT wrote: >
>> <URL: https://rt.cpan.org/Ticket/Display.html?id=70898 > >> >> That's disturbing. Looking at the code did not generate an "A-HA". >> >> When you say "programmatically clearing cache", do you mean calling >> $cache->clear()? Or something else? >> >> Are all tests are passing for CHI::Driver::DBI on your system? >>
> >
MIME-Version: 1.0
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
Content-Type: text/plain; charset="UTF-8"
Message-ID: <rt-3.8.HEAD-6889-1322671845-327.70898-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 49
Any luck generating a reproducible test for this?
From stevan.little [...] iinteractive.com Wed Nov 30 12: 07:12 2011
MIME-Version: 1.0 (Apple Message framework v1251.1)
X-Spam-Status: No, score=-4.937 tagged_above=-99.9 required=10 tests=[AWL=1.298, BAYES_00=-1.9, RCVD_IN_DNSWL_HI=-5, SPF_SOFTFAIL=0.665] autolearn=ham
In-Reply-To: <rt-3.8.HEAD-6889-1322671846-785.70898-6-0 [...] rt.cpan.org>
X-Mailer: Apple Mail (2.1251.1)
X-Spam-Flag: NO
References: <RT-Ticket-70898 [...] rt.cpan.org> <rt-3.8.HEAD-6889-1322671846-785.70898-6-0 [...] rt.cpan.org>
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
Content-Type: text/plain; charset="utf-8"
Message-ID: <272EB65F-7DA8-4773-A49F-1019E37610C9 [...] iinteractive.com>
X-RT-Original-Encoding: utf-8
X-Spam-Score: -4.937
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id 5DF33240EC0 for <cpan-bug+CHI [...] hipster.bestpractical.com>; Wed, 30 Nov 2011 12:07:12 -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 dmjjtxXZvep7 for <cpan-bug+CHI [...] hipster.bestpractical.com>; Wed, 30 Nov 2011 12:07:11 -0500 (EST)
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by hipster.bestpractical.com (Postfix) with SMTP id A02EC240EB8 for <bug-CHI [...] rt.cpan.org>; Wed, 30 Nov 2011 12:07:10 -0500 (EST)
Received: (qmail 9237 invoked by uid 103); 30 Nov 2011 17:07:09 -0000
Received: from x16.dev (10.0.100.26) by x1.dev with QMQP; 30 Nov 2011 17:07:09 -0000
Received: from mail-gy0-f178.google.com (HELO mail-gy0-f178.google.com) (209.85.160.178) by 16.mx.develooper.com (qpsmtpd/0.80/v0.80-19-gf52d165) with ESMTP; Wed, 30 Nov 2011 09:07:07 -0800
Received: by ghbf1 with SMTP id f1so867350ghb.9 for <bug-CHI [...] rt.cpan.org>; Wed, 30 Nov 2011 09:07:04 -0800 (PST)
Received: by 10.236.155.2 with SMTP id i2mr4930142yhk.115.1322672824599; Wed, 30 Nov 2011 09:07:04 -0800 (PST)
Received: from [10.0.1.14] (c-98-216-171-59.hsd1.ct.comcast.net. [98.216.171.59]) by mx.google.com with ESMTPS id d6sm6300329anm.16.2011.11.30.09.07.02 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 30 Nov 2011 09:07:03 -0800 (PST)
Delivered-To: cpan-bug+CHI [...] hipster.bestpractical.com
Subject: Re: [rt.cpan.org #70898] Namespace Cache clearing no longer working
Return-Path: <stevan.little [...] iinteractive.com>
X-Spam-Check-BY: 16.mx.develooper.com
X-Original-To: cpan-bug+CHI [...] hipster.bestpractical.com
X-RT-Mail-Extension: chi
Date: Wed, 30 Nov 2011 12:07:01 -0500
X-Spam-Level:
To: bug-CHI [...] rt.cpan.org
Content-Transfer-Encoding: 7bit
From: Stevan Little <stevan.little [...] iinteractive.com>
RT-Message-ID: <rt-3.8.HEAD-6892-1322672833-1128.70898-0-0 [...] rt.cpan.org>
Content-Length: 240
Download (untitled) / with headers
text/plain 240b
No sorry, I have not gotten time to loop back around on this. On Nov 30, 2011, at 11:50 AM, Jonathan Swartz via RT wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=70898 > > > Any luck generating a reproducible test for this?
From swartz [...] pobox.com Wed Nov 30 12: 11:42 2011
MIME-Version: 1.0 (Apple Message framework v1084)
X-Spam-Status: No, score=-5.93 tagged_above=-99.9 required=10 tests=[AWL=0.191, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_HI=-5, SPF_NEUTRAL=0.779] autolearn=ham
In-Reply-To: <rt-3.8.HEAD-6892-1322672833-1316.70898-5-0 [...] rt.cpan.org>
X-Mailer: Apple Mail (2.1084)
X-Spam-Flag: NO
References: <RT-Ticket-70898 [...] rt.cpan.org> <rt-3.8.HEAD-6889-1322671846-785.70898-6-0 [...] rt.cpan.org> <272EB65F-7DA8-4773-A49F-1019E37610C9 [...] iinteractive.com> <rt-3.8.HEAD-6892-1322672833-1316.70898-5-0 [...] rt.cpan.org>
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
Content-Type: text/plain; charset="utf-8"
Message-ID: <1B49476E-44C9-476D-8FA6-08EC6B2238D7 [...] pobox.com>
X-Sasl-Enc: KLrI5Ui5IHi74AkzBtgUFIrh8plF9yoQOg0fNTyuTQdz 1322673094
X-RT-Original-Encoding: utf-8
X-Spam-Score: -5.93
Authentication-Results: hipster.bestpractical.com (amavisd-new); dkim=pass header.i= [...] messagingengine.com
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id 65B51240EC0 for <cpan-bug+CHI [...] hipster.bestpractical.com>; Wed, 30 Nov 2011 12:11:42 -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 nD1ZWmdY28K5 for <cpan-bug+CHI [...] hipster.bestpractical.com>; Wed, 30 Nov 2011 12:11:41 -0500 (EST)
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by hipster.bestpractical.com (Postfix) with SMTP id BA5D9240EB8 for <bug-CHI [...] rt.cpan.org>; Wed, 30 Nov 2011 12:11:40 -0500 (EST)
Received: (qmail 9566 invoked by uid 103); 30 Nov 2011 17:11:40 -0000
Received: from x16.dev (10.0.100.26) by x1.dev with QMQP; 30 Nov 2011 17:11:40 -0000
Received: from out3.smtp.messagingengine.com (HELO out3.smtp.messagingengine.com) (66.111.4.27) by 16.mx.develooper.com (qpsmtpd/0.80/v0.80-19-gf52d165) with ESMTP; Wed, 30 Nov 2011 09:11:37 -0800
Received: from compute4.internal (compute4.nyi.mail.srv.osa [10.202.2.44]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id 82F4820C9D for <bug-CHI [...] rt.cpan.org>; Wed, 30 Nov 2011 12:11:34 -0500 (EST)
Received: from frontend1.nyi.mail.srv.osa ([10.202.2.160]) by compute4.internal (MEProxy); Wed, 30 Nov 2011 12:11:34 -0500
Received: from [10.1.10.110] (c-98-248-195-203.hsd1.ca.comcast.net [98.248.195.203]) by mail.messagingengine.com (Postfix) with ESMTPSA id 2F7C48E00F4 for <bug-CHI [...] rt.cpan.org>; Wed, 30 Nov 2011 12:11:34 -0500 (EST)
Delivered-To: cpan-bug+CHI [...] hipster.bestpractical.com
Subject: Re: [rt.cpan.org #70898] Namespace Cache clearing no longer working
Return-Path: <swartz [...] pobox.com>
Dkim-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-type:mime-version:subject:from :in-reply-to:date:content-transfer-encoding:message-id :references:to; s=smtpout; bh=4jZwEgqE9gf3vvUTBE/S+WAa5Ps=; b=TZ HXF+9o39rtIMokBdNB05BLnhsWvIXOPlbQcLAumXslkVCCPdEe0ZcnyhnMwesDYA +v91pWD4a0+5bHTgWl1Jn4cqaVC6/5xK/7CDtulH5IgScHcwXjpD8NhooV6AfPOc CXpJT86M8Hd51L8cT0KopoL1SMkUZcXkh4QpsqPww=
X-Spam-Check-BY: 16.mx.develooper.com
X-Original-To: cpan-bug+CHI [...] hipster.bestpractical.com
X-RT-Mail-Extension: chi
Date: Wed, 30 Nov 2011 09:11:33 -0800
X-Spam-Level:
To: bug-CHI [...] rt.cpan.org
Content-Transfer-Encoding: 7bit
From: Jonathan Swartz <swartz [...] pobox.com>
RT-Message-ID: <rt-3.8.HEAD-10497-1322673103-771.70898-0-0 [...] rt.cpan.org>
Content-Length: 452
Download (untitled) / with headers
text/plain 452b
No problem, just going through my queue... :) On Nov 30, 2011, at 9:07 AM, Stevan Little via RT wrote: Show quoted text
> Queue: CHI > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=70898 > > > No sorry, I have not gotten time to loop back around on this. > > > On Nov 30, 2011, at 11:50 AM, Jonathan Swartz via RT wrote: >
>> <URL: https://rt.cpan.org/Ticket/Display.html?id=70898 > >> >> Any luck generating a reproducible test for this?
> >
MIME-Version: 1.0
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
Content-Type: text/plain; charset="UTF-8"
Message-ID: <rt-3.8.HEAD-26381-1345940464-588.70898-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 59
Resolving this, feel free to reopen if it happens again...


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.