[ 
https://issues.apache.org/jira/browse/HBASE-575?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12589195#action_12589195
 ] 

stack commented on HBASE-575:
-----------------------------

Why inline the rootdir test into the HMaster constructor?  Why not make a 
utility method hosted elsewhere --- FSUtils -- and have the HMaster constructor 
use that?  Have the test exercise the utility method rather than HMaster (as is 
where it catches any IOE, its overly broad).

> hbase master dies with stack overflow error if rootdir isn't qualified
> ----------------------------------------------------------------------
>
>                 Key: HBASE-575
>                 URL: https://issues.apache.org/jira/browse/HBASE-575
>             Project: Hadoop HBase
>          Issue Type: Bug
>    Affects Versions: 0.1.1
>            Reporter: Michael Bieniosek
>            Assignee: Jim Kellerman
>            Priority: Blocker
>             Fix For: 0.1.2
>
>         Attachments: patch.txt
>
>
> With a relative rootdir (/hbase/), the hbase master throws this on startup:
> 08/04/11 17:53:00 ERROR hbase.HMaster: Can not start master
> java.lang.reflect.InvocationTargetException
>         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native 
> Method)
>         at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown 
> Source)
>         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown 
> Source)
>         at java.lang.reflect.Constructor.newInstance(Unknown Source)
>         at org.apache.hadoop.hbase.HMaster.doMain(HMaster.java:3329)
>         at org.apache.hadoop.hbase.HMaster.main(HMaster.java:3363)
> Caused by: java.lang.StackOverflowError
>         at java.net.URI$Parser.checkChars(Unknown Source)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to