-
Notifications
You must be signed in to change notification settings - Fork 979
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-6349: Drill JDBC driver fails on Java 1.9+ with NoClassDefFoundError: sun/misc/VM #1446
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -64,28 +64,22 @@ | |
<version>${kerby.version}</version> | ||
<scope>test</scope> | ||
</dependency> | ||
<!-- <dependency> --> | ||
<!-- <groupId>org.ow2.asm</groupId> --> | ||
<!-- <artifactId>asm-util</artifactId> --> | ||
<!-- <version>5.0.3</version> --> | ||
<!-- </dependency> --> | ||
<dependency> | ||
<groupId>org.ow2.asm</groupId> | ||
<artifactId>asm-debug-all</artifactId> | ||
<version>5.0.3</version> | ||
<!-- <scope>test</scope> --> | ||
<artifactId>asm-commons</artifactId> | ||
<version>${asm.version}</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.ow2.asm</groupId> | ||
<artifactId>asm-util</artifactId> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't see any new dependencies being introduced as part of the PR, why is this necessary? The same for all other newly introduced dependencies. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. New asm version supports jdk 10, but there If I understand correctly, Also, please remove commented out lines introduced in previous commits and move version for |
||
<version>${asm.version}</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.apache.drill.contrib.data</groupId> | ||
<artifactId>tpch-sample-data</artifactId> | ||
<version>${project.version}</version> | ||
<scope>test</scope> | ||
</dependency> | ||
<!-- <dependency> --> | ||
<!-- <groupId>org.ow2.asm</groupId> --> | ||
<!-- <artifactId>asm-commons</artifactId> --> | ||
<!-- <version>5.0.3</version> --> | ||
<!-- </dependency> --> | ||
<dependency> | ||
<groupId>org.apache.commons</groupId> | ||
<artifactId>commons-pool2</artifactId> | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -180,7 +180,7 @@ protected void createPartitionSublists() { | |
|
||
// build a list of DFSDirPartitionLocation. | ||
for (final List<String> dirs : dirToFileMap.keySet()) { | ||
locations.add( new DFSDirPartitionLocation((String [])dirs.toArray(), dirToFileMap.get(dirs))); | ||
locations.add( new DFSDirPartitionLocation(dirs.toArray(new String[dirs.size()]), dirToFileMap.get(dirs))); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why is this change necessary? As I already mentioned, I don't see why is it necessary to go back and forth between an array and a list in this method, so I would prefer not to introduce an unrelated change into the PR and handle it in a separate PR/JIRA. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. https://bugs.java.com/view_bug.do?bug_id=6260652 |
||
} | ||
|
||
locationSuperList = Lists.partition(locations, PartitionDescriptor.PARTITION_BATCH_SIZE); | ||
|
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.
Could you please also set
<useSystemClassLoader>false</useSystemClassLoader>
formaven-failsafe-plugin
, since it also fails.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 , done