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

xinxin fan updated HBASE-23260:
-------------------------------
    Description: 
Once a new table is created, the thread  
MetricsTableWrapperAggregateImpl$TableMetricsWrapperRunnable will no longer 
work as a  java.util.NoSuchElementException is throwed. The details as follows:

  
{code:java}
 CLASS            
org.apache.hadoop.hbase.regionserver.MetricsTableWrapperAggregateImpl$TableMetricsWrapperRunnable
                                                                                
                                          CLASS            
org.apache.hadoop.hbase.regionserver.MetricsTableWrapperAggregateImpl$TableMetricsWrapperRunnable
                                                                                
                                          METHOD           run                  
                                                                                
                                                                                
                                      IS-RETURN        false                    
                                                                                
                                                                                
                                  IS-EXCEPTION     true                         
                                                                                
                                                                                
                              THROW-EXCEPTION  
java.util.NoSuchElementException: No value present                              
                                                                                
                                                                             at 
java.util.OptionalLong.getAsLong(OptionalLong.java:118)                         
                                                                                
                                                                         at 
org.apache.hadoop.hbase.regionserver.MetricsTableWrapperAggregateImpl$TableMetricsWrapperRunnable.run(MetricsTableWrapperAggregateImpl.java:80)
                                                                                
          at 
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)         
                                                                                
                                                                         at 
java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)                
                                                                                
                                                                         at 
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
                                                                                
                                    at 
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
                                                                                
                                           at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) 
                                                                                
                                                                         at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) 
                                                                                
                                                                         at 
java.lang.Thread.run(Thread.java:748)       {code}

  was:
Once a new table is created, the thread  
MetricsTableWrapperAggregateImpl$TableMetricsWrapperRunnable will no longer 
work as a  java.util.NoSuchElementException is throwed. The details as follows:

  !111.png!


> Table metrics no longer update once a new table is created 
> -----------------------------------------------------------
>
>                 Key: HBASE-23260
>                 URL: https://issues.apache.org/jira/browse/HBASE-23260
>             Project: HBase
>          Issue Type: Bug
>          Components: metrics
>    Affects Versions: 2.2.1
>            Reporter: xinxin fan
>            Assignee: xinxin fan
>            Priority: Major
>         Attachments: 111.png
>
>
> Once a new table is created, the thread  
> MetricsTableWrapperAggregateImpl$TableMetricsWrapperRunnable will no longer 
> work as a  java.util.NoSuchElementException is throwed. The details as 
> follows:
>   
> {code:java}
>  CLASS            
> org.apache.hadoop.hbase.regionserver.MetricsTableWrapperAggregateImpl$TableMetricsWrapperRunnable
>                                                                               
>                                             CLASS            
> org.apache.hadoop.hbase.regionserver.MetricsTableWrapperAggregateImpl$TableMetricsWrapperRunnable
>                                                                               
>                                             METHOD           run              
>                                                                               
>                                                                               
>                                               IS-RETURN        false          
>                                                                               
>                                                                               
>                                                 IS-EXCEPTION     true         
>                                                                               
>                                                                               
>                                                   THROW-EXCEPTION  
> java.util.NoSuchElementException: No value present                            
>                                                                               
>                                                                               
>    at java.util.OptionalLong.getAsLong(OptionalLong.java:118)                 
>                                                                               
>                                                                               
>      at 
> org.apache.hadoop.hbase.regionserver.MetricsTableWrapperAggregateImpl$TableMetricsWrapperRunnable.run(MetricsTableWrapperAggregateImpl.java:80)
>                                                                               
>             at 
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)       
>                                                                               
>                                                                              
> at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)           
>                                                                               
>                                                                               
>   at 
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
>                                                                               
>                                       at 
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
>                                                                               
>                                              at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
>                                                                               
>                                                                             
> at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
>                                                                               
>                                                                             
> at java.lang.Thread.run(Thread.java:748)       {code}



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

Reply via email to