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

Michael Stack commented on HBASE-26171:
---------------------------------------

How is IllegalStateException better than NPE? Thanks.

> MetricsRegionServer may throws NullPointerException
> ---------------------------------------------------
>
>                 Key: HBASE-26171
>                 URL: https://issues.apache.org/jira/browse/HBASE-26171
>             Project: HBase
>          Issue Type: Improvement
>            Reporter: Zixuan Liu
>            Priority: Major
>
> MetricsRegionServer may throws NullPointerException When optional.get() is 
> called.
>  
>  
> {code:java}
> metricRegistry = 
> MetricRegistries.global().get(serverSource.getMetricRegistryInfo()).get();
>  
> {code}
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to