You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Vinayakumar B (Jira)" <ji...@apache.org> on 2019/12/20 16:07:00 UTC
[jira] [Commented] (HADOOP-16774) TestDiskChecker and
TestReadWriteDiskValidator fails when run with -Pparallel-tests
[ https://issues.apache.org/jira/browse/HADOOP-16774?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17000988#comment-17000988 ]
Vinayakumar B commented on HADOOP-16774:
----------------------------------------
Created the PR. Please review.
Rootcause:
These tests will not create the parent dirs for tests. If test dir is not available, then fails as above
In parallel-tests separate dirs needs to be created for each fork thread.
# {{parallel-tests-createdir}} goal was not configured with {{test.build.data}} configuration. It was creating default dirs, but tests expect different dir.
# {{parallel-tests-createdir}} also should be configured to run after {{create-log-dirs}} to avoid deletion of test dirs. Right now, {{parallel-tests-createdir}} runs first and creates some dirs and {{create-log-dirs }} deletes the {{target/test/data}} itself. Before recreating only {{target/test/data}}
> TestDiskChecker and TestReadWriteDiskValidator fails when run with -Pparallel-tests
> -----------------------------------------------------------------------------------
>
> Key: HADOOP-16774
> URL: https://issues.apache.org/jira/browse/HADOOP-16774
> Project: Hadoop Common
> Issue Type: Bug
> Reporter: Vinayakumar B
> Assignee: Vinayakumar B
> Priority: Major
>
> {noformat}
> $ mvn test -Pparallel-tests -Dtest=TestReadWriteDiskValidator,TestDiskChecker -Pnative
> {noformat}
> {noformat}
> [INFO] Results:
> [INFO]
> [ERROR] Errors:
> [ERROR] TestDiskChecker.testCheckDir_normal:111->_checkDirs:158->createTempDir:153 » NoSuchFile
> [ERROR] TestDiskChecker.testCheckDir_normal_local:180->checkDirs:205->createTempDir:153 » NoSuchFile
> [ERROR] TestDiskChecker.testCheckDir_notDir:116->_checkDirs:158->createTempFile:142 » NoSuchFile
> [ERROR] TestDiskChecker.testCheckDir_notDir_local:185->checkDirs:205->createTempFile:142 » NoSuchFile
> [ERROR] TestDiskChecker.testCheckDir_notListable:131->_checkDirs:158->createTempDir:153 » NoSuchFile
> [ERROR] TestDiskChecker.testCheckDir_notListable_local:200->checkDirs:205->createTempDir:153 » NoSuchFile
> [ERROR] TestDiskChecker.testCheckDir_notReadable:121->_checkDirs:158->createTempDir:153 » NoSuchFile
> [ERROR] TestDiskChecker.testCheckDir_notReadable_local:190->checkDirs:205->createTempDir:153 » NoSuchFile
> [ERROR] TestDiskChecker.testCheckDir_notWritable:126->_checkDirs:158->createTempDir:153 » NoSuchFile
> [ERROR] TestDiskChecker.testCheckDir_notWritable_local:195->checkDirs:205->createTempDir:153 » NoSuchFile
> [ERROR] TestReadWriteDiskValidator.testCheckFailures:114 » NoSuchFile /usr1/code/hadoo...
> [ERROR] TestReadWriteDiskValidator.testReadWriteDiskValidator:62 » DiskError Disk Chec...
> [INFO]
> [ERROR] Tests run: 16, Failures: 0, Errors: 12, Skipped: 0
> {noformat}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org