[
https://issues.apache.org/jira/browse/PHOENIX-2563?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15093185#comment-15093185
]
Hudson commented on PHOENIX-2563:
---------------------------------
SUCCESS: Integrated in Phoenix-master #1063 (See
[https://builds.apache.org/job/Phoenix-master/1063/])
PHOENIX-2563 Pherf's ResourceList should fail gracefully if a Jar file
(mujtaba: rev 938bf9fcc9660cac16ac355340a00de94e1caae2)
* phoenix-pherf/src/main/java/org/apache/phoenix/pherf/util/ResourceList.java
*
phoenix-pherf/src/test/java/org/apache/phoenix/pherf/util/ResourceListTest.java
> Pherf's ResourceList should fail gracefully if a Jar file doesn't exist
> -----------------------------------------------------------------------
>
> Key: PHOENIX-2563
> URL: https://issues.apache.org/jira/browse/PHOENIX-2563
> Project: Phoenix
> Issue Type: Improvement
> Reporter: Josh Elser
> Assignee: Josh Elser
> Priority: Minor
> Fix For: 4.7.0
>
> Attachments: PHOENIX-2563.patch
>
>
> {code}
> ZipFile zf;
> try {
> zf = new ZipFile(file);
> } catch (final ZipException e) {
> throw new Error(e);
> } catch (final IOException e) {
> throw new Error(e);
> }
> {code}
> I had a symlink in my {{$HBASE_HOME/lib}} to a jar file that didn't actually
> exist on the filesystem. This in itself is fine, but when pherf scanned
> through the classpath looking for the xml scenario/schema files, it failed
> because we couldn't open this file.
> It would be much nicer if this code returns an empty list instead of throwing
> an Error (also, why Error and not RuntimeException).
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)