You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-dev@hadoop.apache.org by "Eungsop Yoo (Jira)" <ji...@apache.org> on 2021/08/31 08:05:00 UTC

[jira] [Created] (HDFS-16198) Short circuit read leaks Slot objects when InvalidToken exception is thrown

Eungsop Yoo created HDFS-16198:
----------------------------------

             Summary: 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


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.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-dev-help@hadoop.apache.org