You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "Yiqun Lin (JIRA)" <ji...@apache.org> on 2017/10/18 06:29:00 UTC

[jira] [Updated] (HDFS-12675) Ozone: TestLeaseManager#testLeaseCallbackWithMultipleLeases fails

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

Yiqun Lin updated HDFS-12675:
-----------------------------
    Description: 
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 lead 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.


  was:
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 {{leaseFive}} didn't expire in test.



> 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 lead 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-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org