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

Istvan Toth commented on HBASE-28662:
-------------------------------------

On closer inspection, the problem is that we're trying to remove a null key, 
which is unsupported.
I'm not sure how we can have null key at that point:

{noformat}
Caused by: java.lang.NullPointerException
        at 
java.util.concurrent.ConcurrentHashMap.replaceNode(ConcurrentHashMap.java:1106)
        at 
java.util.concurrent.ConcurrentHashMap.remove(ConcurrentHashMap.java:1097)
        at 
com.github.benmanes.caffeine.cache.BoundedLocalCache.removeNoWriter(BoundedLocalCache.java:2092)
        at 
com.github.benmanes.caffeine.cache.BoundedLocalCache.remove(BoundedLocalCache.java:2082)
        at 
org.apache.hadoop.hbase.rest.ScannerResource.delete(ScannerResource.java:79)
        at 
org.apache.hadoop.hbase.rest.ScannerInstanceResource.delete(ScannerInstanceResource.java:202)
{noformat}


> Removing missing scanner via REST should return 404
> ---------------------------------------------------
>
>                 Key: HBASE-28662
>                 URL: https://issues.apache.org/jira/browse/HBASE-28662
>             Project: HBase
>          Issue Type: Bug
>          Components: REST
>            Reporter: Istvan Toth
>            Assignee: Istvan Toth
>            Priority: Minor
>
> We do not handle the case when the user is trying to remove a missing 
> scanner, and let an NPE bubble up to Jersey.
> We should check or catch the error and return 404 instead.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to