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

Yiqun Lin commented on HDFS-12675:
----------------------------------

I am thinking one corner case leading for this:

# {{LeaseNotFoundException}} or {{LeaseExpiredException}} is thrown in loop 
{{for (T resource : activeLeases.keySet()) {}}.
# Then the {{sleepTime}} used in {{while}} loop doesn't get a correct value, 
then program sleep for {{Long.MAX_VALUE}} time.Remaining leases cannot be 
released.

> Ozone: TestLeaseManager#testLeaseCallbackWithMultipleLeases fails 
> ------------------------------------------------------------------
>
>                 Key: HDFS-12675
>                 URL: https://issues.apache.org/jira/browse/HDFS-12675
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>          Components: ozone
>    Affects Versions: HDFS-7240
>            Reporter: Yiqun Lin
>            Assignee: Yiqun Lin
>
> Caught one UT failure 
> {{TestLeaseManager#testLeaseCallbackWithMultipleLeases}}:
> {noformat}
> jcava.lang.AssertionError: null
>       at org.junit.Assert.fail(Assert.java:86)
>       at org.junit.Assert.assertTrue(Assert.java:41)
>       at org.junit.Assert.assertTrue(Assert.java:52)
>       at 
> org.apache.hadoop.ozone.lease.TestLeaseManager.testLeaseCallbackWithMultipleLeases(TestLeaseManager.java:293)
> {noformat}
> The reason of this error is  lease {{leaseFive}} didn't expire in test.
> I am thinking one corner case leading for this:
> # {{LeaseNotFoundException}} or {{LeaseExpiredException}} is thrown in loop 
> {{for (T resource : activeLeases.keySet()) {}}.
> # Then the {{sleepTime}} used in {{while}} loop doesn't get a correct value, 
> then program sleep for {{Long.MAX_VALUE}} time.Remaining leases cannot be 
> released.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

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