ramkrishna.s.vasudevan created HBASE-24365:
----------------------------------------------

             Summary: MetricsTableWrapperAggregateImpl runnable fails due to 
exception and never runs
                 Key: HBASE-24365
                 URL: https://issues.apache.org/jira/browse/HBASE-24365
             Project: HBase
          Issue Type: Bug
          Components: metrics
    Affects Versions: 2.2.4, 2.1.9, 3.0.0-alpha-1
            Reporter: ramkrishna.s.vasudevan
            Assignee: ramkrishna.s.vasudevan


MetricsTableWrapperAggregateImpl has a thread that periodically updates the 
values.
It seems that once the region server is online and the meta is assigned if 
there are no store files the Optional values  here
{code}
            mt.maxStoreFileAge = Math.max(mt.maxStoreFileAge, 
store.getMaxStoreFileAge().getAsLong());
            mt.minStoreFileAge = Math.min(mt.minStoreFileAge, 
store.getMinStoreFileAge().getAsLong());
{code}
is not available and thus throwing NoSuchElementException and the thread dies. 
It never updates the values till the RS is alive. 



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

Reply via email to