-
Notifications
You must be signed in to change notification settings - Fork 981
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DRILL-7901: Bump junit from 4.12 to 4.13.2 #2200
Conversation
I recall some tests were hanging when updating the JUnit version to 4.13.1. Have you tried running all unit tests locally since CI is not working? |
I don't think this is related, but I'm getting out of memory errors on my local machine. Is there anything I can do to my environment to fix this? Caused by: org.apache.drill.exec.exception.OutOfMemoryException: Failure allocating buffer.
Caused by: java.lang.Error: failed to allocate 16777216 byte(s) of direct memory (used: 2617245696, max: 2621440000)
[INFO] Running org.apache.drill.TestDirScanToValuesConversion
[INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.417 s - in org.apache.drill.TestDirScanToValuesConversion
[WARNING] Tests run: 66, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 349.714 s - in org.apache.drill.exec.sql.TestMetastoreCommands
[INFO]
[INFO] Results:
[INFO]
[ERROR] Errors:
[ERROR] TestBugFixes.testDRILL1337_LocalRightFilterLeftOutJoin » UserRemote RESOURCE E...
[ERROR] TestBugFixes.testDRILL4884:231->BaseTestQuery.testRunAndReturn:346 » Rpc org.a...
[ERROR] TestExampleQueries.testParquetComplex » UserRemote RESOURCE ERROR: One or more...
[ERROR] TestExampleQueries.testWindowFunAndStarCol:1109->BaseTestQuery.testRunAndReturn:346 » Rpc
[ERROR] TestTpchDistributed.tpch01 » UserRemote RESOURCE ERROR: One or more nodes ran ...
[ERROR] TestTpchDistributed.tpch03 » UserRemote RESOURCE ERROR: One or more nodes ran ...
[ERROR] TestTpchDistributed.tpch04 » UserRemote RESOURCE ERROR: One or more nodes ran ...
[ERROR] TestTpchDistributed.tpch05 » UserRemote RESOURCE ERROR: One or more nodes ran ...
[ERROR] TestTpchDistributed.tpch07 » UserRemote RESOURCE ERROR: One or more nodes ran ...
[ERROR] TestTpchDistributed.tpch08 » UserRemote RESOURCE ERROR: One or more nodes ran ...
[ERROR] TestTpchDistributed.tpch09 » UserRemote RESOURCE ERROR: One or more nodes ran ...
[ERROR] TestTpchDistributed.tpch10 » UserRemote RESOURCE ERROR: One or more nodes ran ...
[ERROR] TestTpchDistributed.tpch11 » UserRemote RESOURCE ERROR: One or more nodes ran ...
[ERROR] TestTpchDistributed.tpch12 » UserRemote RESOURCE ERROR: One or more nodes ran ...
[ERROR] TestTpchDistributed.tpch13 » UserRemote RESOURCE ERROR: One or more nodes ran ...
[ERROR] TestTpchDistributed.tpch15 » UserRemote RESOURCE ERROR: One or more nodes ran ...
[ERROR] TestTpchDistributed.tpch16 » UserRemote RESOURCE ERROR: One or more nodes ran ...
[ERROR] TestTpchDistributed.tpch17 » UserRemote RESOURCE ERROR: One or more nodes ran ...
[ERROR] TestTpchDistributed.tpch18 » UserRemote RESOURCE ERROR: One or more nodes ran ...
[ERROR] TestTpchDistributed.tpch19_1 » UserRemote RESOURCE ERROR: One or more nodes ra...
[ERROR] TestTpchDistributed.tpch20 » UserRemote RESOURCE ERROR: One or more nodes ran ...
[ERROR] TestTpchDistributed.tpch21 » UserRemote RESOURCE ERROR: One or more nodes ran ...
[ERROR] TestUnionAll.testDrill4147_2:1075->BaseTestQuery.testRunAndReturn:346 » Rpc or...
[ERROR] TestUnionDistinct.testUnionWithManyColumns » UserRemote RESOURCE ERROR: One or...
[ERROR] org.apache.drill.exec.compile.TestLargeFileCompilation.testEXTERNAL_SORT
[ERROR] Run 1: TestLargeFileCompilation.setJDK:174 » IllegalState org.apache.drill.common.exc...
[ERROR] Run 2: TestLargeFileCompilation.resetJDK:179 » IllegalState org.apache.drill.common.e...
[INFO]
[ERROR] org.apache.drill.exec.compile.TestLargeFileCompilation.testGROUP_BY
[ERROR] Run 1: TestLargeFileCompilation.setJDK:174 » IllegalState org.apache.drill.common.exc...
[ERROR] Run 2: TestLargeFileCompilation.resetJDK:179 » IllegalState org.apache.drill.common.e...
[INFO]
[ERROR] org.apache.drill.exec.compile.TestLargeFileCompilation.testHashJoin
[ERROR] Run 1: TestLargeFileCompilation.setJDK:174 » IllegalState org.apache.drill.common.exc...
[ERROR] Run 2: TestLargeFileCompilation.resetJDK:179 » IllegalState org.apache.drill.common.e...
[INFO]
[ERROR] org.apache.drill.exec.compile.TestLargeFileCompilation.testJDKHugeStringConstantCompilation
[ERROR] Run 1: TestLargeFileCompilation.setJDK:174 » IllegalState org.apache.drill.common.exc...
[ERROR] Run 2: TestLargeFileCompilation.resetJDK:179 » IllegalState org.apache.drill.common.e...
[INFO]
[ERROR] TestLargeFileCompilation.testMergeJoin » UserRemote SYSTEM ERROR: OutOfMemoryE...
[ERROR] org.apache.drill.exec.compile.TestLargeFileCompilation.testPARQUET_WRITER
[ERROR] Run 1: TestLargeFileCompilation.setJDK:174 » IllegalState org.apache.drill.common.exc...
[ERROR] Run 2: TestLargeFileCompilation.resetJDK:179 » IllegalState org.apache.drill.common.e...
[INFO]
[ERROR] org.apache.drill.exec.compile.TestLargeFileCompilation.testProject
[ERROR] Run 1: TestLargeFileCompilation.testProject » User CONNECTION ERROR: Connection /127....
[ERROR] Run 2: TestLargeFileCompilation.resetJDK:179 » IllegalState org.apache.drill.common.e...
[INFO]
[ERROR] org.apache.drill.exec.compile.TestLargeFileCompilation.testTEXT_WRITER
[ERROR] Run 1: TestLargeFileCompilation.setJDK:174 » IllegalState org.apache.drill.common.exc...
[ERROR] Run 2: TestLargeFileCompilation.resetJDK:179 » IllegalState org.apache.drill.common.e...
[INFO]
[ERROR] org.apache.drill.exec.compile.TestLargeFileCompilation.testTOP_N_SORT
[ERROR] Run 1: TestLargeFileCompilation.setJDK:174 » IllegalState org.apache.drill.common.exc...
[ERROR] Run 2: TestLargeFileCompilation.resetJDK:179 » IllegalState org.apache.drill.common.e...
[INFO]
[ERROR] TestAggregateFunctions.testDRILLNestedGBWithSubsetKeys:223 » org.apache.drill...
[ERROR] TestAggregateFunctions.testDrill2170:177 » org.apache.drill.common.exceptions...
[ERROR] TestNewSimpleRepeatedFunctions.testRepeatedCountVarBinary:259 » org.apache.dr...
[ERROR] TestNewSimpleRepeatedFunctions.testRepeatedCountVarChar:150 » org.apache.dril...
[ERROR] TestNewSimpleRepeatedFunctions.testRepeatedCountVarDecimal:249 » org.apache.d...
[ERROR] TestDummyWriter>SubOperatorTest.classSetup:34 » OutOfMemory Failure allocating...
[ERROR] TestFillEmpties>SubOperatorTest.classSetup:34 » OutOfMemory Failure allocating...
[ERROR] org.apache.drill.exec.physical.rowSet.TestOffsetVectorWriter.null
[ERROR] Run 1: TestOffsetVectorWriter.setup:62 » OutOfMemory Failure allocating buffer.
[ERROR] Run 2: TestOffsetVectorWriter>SubOperatorTest.classTeardown:39 » IllegalState Allocat...
[INFO]
[ERROR] TestScalarAccessors>SubOperatorTest.classSetup:34 » OutOfMemory Failure alloca...
[ERROR] TestAnalyze.join » UserRemote RESOURCE ERROR: One or more nodes ran out of mem...
[ERROR] TestAnalyze.testAnalyzeSupportedFormats » UserRemote RESOURCE ERROR: One or mo...
[ERROR] TestAnalyze.testUseStatistics » UserRemote RESOURCE ERROR: One or more nodes r...
[ERROR] TestMockPlugin.testSizeLimit » UserRemote EXECUTION_ERROR ERROR: Failure alloc...
[ERROR] org.apache.drill.exec.work.filter.BloomFilterTest.null
[ERROR] Run 1: BloomFilterTest>SubOperatorTest.classSetup:34 » OutOfMemory Failure allocating...
[ERROR] Run 2: BloomFilterTest>SubOperatorTest.classTeardown:39 » IllegalState Allocator[ROOT...
[INFO]
[ERROR] TestFillEmpties>SubOperatorTest.classSetup:34 » OutOfMemory Failure allocating...
[ERROR] org.apache.drill.vector.TestToNullable.null
[ERROR] Run 1: TestToNullable>SubOperatorTest.classSetup:34 » OutOfMemory Failure allocating ...
[ERROR] Run 2: TestToNullable>SubOperatorTest.classTeardown:39 » IllegalState Allocator[ROOT]...
[INFO]
[INFO]
[ERROR] Tests run: 4921, Failures: 0, Errors: 49, Skipped: 149 |
I had Junit 5 migration code for Drill in my |
Hi @vdiravka |
If the change is ready, I would recommend merging it asap. Moving to JUnit5 is likely to involve much more code change, and why beneficial, I'm not sure it warrants delaying the dependency update. |
6fa7c3a
to
3f7fc3b
Compare
I'd recommend JUnit 5 too! |
But if you decide to stay with 4.x for some more then maybe you should upgrade to 4.13.2 (https://search.maven.org/artifact/junit/junit/4.13.2/jar). It has been released 3 months ago. |
I'm a little stuck on this PR. If I run the unit tests in Is this my environment, or does anyone have any suggestions as to how I can get this to work? I'm not sure if this is a blocking issue or not. |
@vdiravka Could you do a quick review of this? |
} | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please revert formatting changes here and in other places. It is fine to have 4 spaces for the case when moving builder methods or arguments on the new line and having an empty line at the end of the class.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@vvysotskyi
I put the version of this file from master
back in this PR, so this should be what was originally there. I didn't modify this file at all, so I'm not sure why the spacing got all messed up in the first place. I hope that's ok.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
* Initial Commit * Updated Kafka Library * Still not working... * WIP * Kafka tests working * Bump version to 4.13.2 * Added Fix Order * Removed unnecessary dependencies * Fixed spacing on KafkaFilterPushdownTest
DRILL-7901: Bump junit from 4.12 to 4.13.2
Description
Release notes
Sourced from junit's releases.
Documentation
N/A
Testing
N/A
UPDATE: This PR involves rewriting the unit tests for the Kafka plugin. All seem to use the deprecated
PlanTestBase
class which has been deprecated and also causes an issue with the newer version of junit.