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

Eungsop Yoo updated HDFS-16198:
-------------------------------
    Description: 
In secure mode, 'dfs.block.access.token.enable' should be set 'true'. With this 
configuration SecretManager.InvalidToken exception may be thrown if the access 
token expires when we do short circuit reads. It doesn't matter because the 
failed reads will be retried. But it causes the leakage of ShortCircuitShm.Slot 
objects. We found this problem in our secure HBase clusters.
 !screenshot-1.png! 

The fix is trivial. Just free the slot when InvalidToken exception is thrown.

  was:
In secure mode, 'dfs.block.access.token.enable' should be set 'true'. With this 
configuration SecretManager.InvalidToken exception may be thrown if the access 
token expires when we do short circuit reads. It doesn't matter because the 
failed reads will be retried. But it causes the leakage of ShortCircuitShm.Slot 
objects. We found this problem in our secure HBase clusters.

The fix is trivial. Just free the slot when InvalidToken exception is thrown.


> Short circuit read leaks Slot objects when InvalidToken exception is thrown
> ---------------------------------------------------------------------------
>
>                 Key: HDFS-16198
>                 URL: https://issues.apache.org/jira/browse/HDFS-16198
>             Project: Hadoop HDFS
>          Issue Type: Bug
>            Reporter: Eungsop Yoo
>            Priority: Major
>         Attachments: screenshot-1.png
>
>
> In secure mode, 'dfs.block.access.token.enable' should be set 'true'. With 
> this configuration SecretManager.InvalidToken exception may be thrown if the 
> access token expires when we do short circuit reads. It doesn't matter 
> because the failed reads will be retried. But it causes the leakage of 
> ShortCircuitShm.Slot objects. We found this problem in our secure HBase 
> clusters.
>  !screenshot-1.png! 
> The fix is trivial. Just free the slot when InvalidToken exception is thrown.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org

Reply via email to