Sean Mackrory created HADOOP-15316: -------------------------------------- Summary: GenericTestUtils can exceed maxSleepTime Key: HADOOP-15316 URL: https://issues.apache.org/jira/browse/HADOOP-15316 Project: Hadoop Common Issue Type: Bug Reporter: Sean Mackrory Assignee: Sean Mackrory
Probably shouldn't ever cause an issue, especially since Thread.sleep() can cause longer delays beyond your control anyway, but for larger values this could still behave unpredicatably in practice. {code:java} Thread.sleep(r.nextInt(maxSleepTime) + minSleepTime); {code} should be {code:java} Thread.sleep(r.nextInt(maxSleepTime - minSleepTime) + minSleepTime){code} -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: common-dev-unsubscr...@hadoop.apache.org For additional commands, e-mail: common-dev-h...@hadoop.apache.org