[ https://issues.apache.org/jira/browse/CARBONDATA-1114?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16031069#comment-16031069 ] xuchuanyin edited comment on CARBONDATA-1114 at 5/31/17 12:20 PM: ------------------------------------------------------------------ it seems the tests failed due to operating files in windows, such as creating file, reading file content, fixed path separator ‘/’, etc. These failures no longer exist when I run build command in *Linux* env, but found other errors —— MISSING 'CryptoUtils' class: Tests run: 3, Failures: 0, Errors: 3, Skipped: 0, Time elapsed: 0.759 sec <<< FAILURE! - in org.apache.carbondata.hadoop.ft.CarbonInputMapperTest testInputFormatMapperReadAllRowsAndColumns(org.apache.carbondata.hadoop.ft.CarbonInputMapperTest) Time elapsed: 0.537 sec <<< ERROR! java.lang.NoClassDefFoundError: org/apache/hadoop/mapreduce/CryptoUtils was (Author: xuchuanyin): it seems the tests failed due to operating files in windows, such as failure to create file, path separator, etc. These failures no longer exist when I run build command in Linux env, but found other errors —— MISSING 'CryptoUtils' class: Tests run: 3, Failures: 0, Errors: 3, Skipped: 0, Time elapsed: 0.759 sec <<< FAILURE! - in org.apache.carbondata.hadoop.ft.CarbonInputMapperTest testInputFormatMapperReadAllRowsAndColumns(org.apache.carbondata.hadoop.ft.CarbonInputMapperTest) Time elapsed: 0.537 sec <<< ERROR! java.lang.NoClassDefFoundError: org/apache/hadoop/mapreduce/CryptoUtils > Failed to run tests in windows env > ---------------------------------- > > Key: CARBONDATA-1114 > URL: https://issues.apache.org/jira/browse/CARBONDATA-1114 > Project: CarbonData > Issue Type: Bug > Components: build > Affects Versions: 1.2.0 > Environment: windows7 64bit > Reporter: xuchuanyin > Priority: Minor > Labels: build, test > > when run build command "mvn clean package -Pspark-2.1 -Dspark.version=2.1.0 -Dmaven.test.failure.ignore=true -Dmaven.test.error.ignore=true" in windows env, there are some failures in tests as below: > **MODULE:processing** > Failed tests: > LocalFileLockTest.testingLocalFileLockingByAcquiring2Locks:64 null > Tests in error: > ZooKeeperLockingTest.testZooKeeperLockingByTryingToAcquire2Locks:98 ? StringIndexOutOfBounds > Tests run: 13, Failures: 1, Errors: 1, Skipped: 1 > **MODULE:core** > Failed tests: > AbsoluteTableIdentifierTest.gettablePathTest:89 null > DFSFileHolderImplUnitTest.testDouble:129 > Expected: is <7.3083355198552433E18> > but: was <8.0305922754531471E18> > DFSFileHolderImplUnitTest.testReadByteArray:84 > Expected: is [<72>] > but: was [<99>] > DFSFileHolderImplUnitTest.testReadByteArrayWithFilePath:90 > Expected: is [<108>, <108>] > but: was [<114>, <101>] > DFSFileHolderImplUnitTest.testReadInt:112 > Expected: is <1701604463> > but: was <1869767968> > DFSFileHolderImplUnitTest.testReadIntWithFileName:118 > Expected: is <1701604463> > but: was <1869767968> > DFSFileHolderImplUnitTest.testReadLong:96 > Expected: is <7308335519855243122L> > but: was <8030592275453146721L> > FileFactoryImplUnitTest.testCreateNewFileWithDefaultFileType:85 null > FileFactoryImplUnitTest.testCreateNewLockFileWithDefaultFileType:90 null > FileFactoryImplUnitTest.testCreateNewLockFileWithViewFsFileType:95 null > FileHolderImplUnitTest.testDouble:130 > Expected: is <7.3083355198552433E18> > but: was <8.0305922754531471E18> > FileHolderImplUnitTest.testReadByteArray:87 > Expected: is [<72>] > but: was [<99>] > FileHolderImplUnitTest.testReadByteArrayWithFilePath:93 > Expected: is [<108>, <108>] > but: was [<114>, <101>] > FileHolderImplUnitTest.testReadInt:113 > Expected: is <1701604463> > but: was <1869767968> > FileHolderImplUnitTest.testReadIntWithFileName:119 > Expected: is <1701604463> > but: was <1869767968> > FileHolderImplUnitTest.testReadLong:99 > Expected: is <7308335519855243122L> > but: was <8030592275453146721L> > LocalCarbonFileTest.testRenameForce:123 null > LocalCarbonFileTest.testsetLastModifiedTime:139 null > Tests run: 841, Failures: 18, Errors: 0, Skipped: 0 -- This message was sent by Atlassian JIRA (v6.3.15#6346) |
Free forum by Nabble | Edit this page |