I'm sporadically getting the following error when I run my web application:
Can't use an undefined value as an ARRAY reference at /usr/lib/perl5/site_perl/5.8.0/Cache/FileBackend.pm line 586.
I'm using Cache::SizeAwareFileCache to cache some data, and I think I'm running into some parallelization issues. I have a couple of processes running in parallel that try to cache objects with keys that may already exist. Sometimes I get the error shown above.
I'm not sure how to track this down, however, and was wondering if anyone here had any suggestions.
I'm using Log::Log4perl to do my logging .. not really sure that I want to add some logger statements inside any of the Cache modules to try and debug this.
Hmm .. maybe wrap the offending call in an eval and do a confess if a bad thing happened ..
Alex / talexb / Toronto
"Groklaw is the open-source mentality applied to legal research" ~ Linus Torvalds
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.