CC: | lembark [...] wrkhors.com |
Subject: | Amazon now handles bulk requests for job status with a blank JobId |
Date: | Wed, 17 Dec 2014 08:21:19 -0600 |
To: | bug-Net-Amazon-Glacier [...] rt.cpan.org |
From: | Steven Lembark <lembark [...] wrkhors.com> |
Discovered via bug in my own code:
Use of uninitialized value $job_id in concatenation (.) or string at /opt/perl/5.16/lib/site_perl/5.16.2/Net/Amazon/Glacier.pm line 902.
at /opt/perl/5.16/lib/site_perl/5.16.2/Net/Amazon/Glacier.pm line 902.
Net::Amazon::Glacier::describe_job(Net::Amazon::Glacier=HASH(0x1e7ead0), "etl-data") called at /mnt/ephemeral/sandbox/lembark/perl-util/lib/Naama/Util/Glacier.pm line 504
Naama::Util::Glacier::__ANON__[/mnt/ephemeral/sandbox/lembark/perl-util/lib/Naama/Util/Glacier.pm:505](Naama::Util::Glacier=REF(0x2bd8a88), "et
When called as:
$glacier->describe_job( $valut_name );
returns a structure like:
0 HASH(0x652f488)
'JobList' => ARRAY(0x642ff18)
'Marker' => 'HiOeDMyZvylfWva8uT-YlTGncW6Gm-GONIFM0uuXIq9HdcwQYUtClU8vU70ymBWle4jE_VMeFnEa8NU7YnrCYbp-KLXmfgUQLV1wkm1lfiTwTDWfYWLrb-Gvd-aqWZ0LyCBJa4V8gCEpls9F8Rg8EVxW3oKN3-w4KE3c1ftoksvpxGWma_XgetTdcfu46J1MKLLiC3xDNUIkjtV7fCN4QDfqAB0h1wQZm3eblG6tbWvCnQ-g_dbijMqZiAYPtiZND9owCW64H7S3vstLv52kFOlRVxVQ'
With JobList being the familliar structure with Complete, etc.
I cannot find any reference in the Net::Amazon::Glacier (or Amazon's
own maze, er... docs) to how the marker is used (guessing it is
passed in some way to get a continuing list of jobs).
Suggest adding
$job_id //= '';
to avoid the nastygram or a second method for "describe_all_jobs"
that knows how to use the marker.
--
Steven Lembark 3646 Flora Pl
Workhorse Computing St Louis, MO 63110
lembark@wrkhors.com +1 888 359 3508