[ 
https://issues.apache.org/jira/browse/HBASE-26171?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Zixuan Liu updated HBASE-26171:
-------------------------------
    Description: 
MetricsRegionServer may throws NullPointerException When optional.get() is 
called.

 

 
{code:java}
metricRegistry = 
MetricRegistries.global().get(serverSource.getMetricRegistryInfo()).get();
 
{code}
 

  was:
XmlMessageRenderer.getXstream() method:

```

public XStream getXstream() {
  if (xstream == null) {
    xstream = new XStream();
  }
  return xstream;
 }

```
 There is a risk of XStream deserialization.

        Summary: MetricsRegionServer may throws NullPointerException  (was: 
XmlMessageRenderer has the risk of XStream deserialization)

> 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