Skip to content

Commit

Permalink
Release 21.1.1
Browse files Browse the repository at this point in the history
Release notes are available at: https://docs.dremio.com/release-notes/

Change-Id: If2972d18d9c65b5580eeadb3cea722ccdf81d4fe
  • Loading branch information
ryantse committed Apr 30, 2022
1 parent 31bc9b7 commit 812c7f3
Show file tree
Hide file tree
Showing 2,329 changed files with 105,937 additions and 27,568 deletions.
32 changes: 30 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,43 @@ Documentation is available at https://docs.dremio.com.

### (a) Prerequisites

* JDK 8 (OpenJDK or Oracle)
* JDK 8 or 11 (OpenJDK or Oracle) as the default JDK (`JAVA_HOME` set to it)
* JDK 8 (OpenJDK or Oracle) in Maven toolchain, required to run certain integration tests
* (Optional) Maven 3.3.9 or later (using Homebrew: `brew install maven`)

Run the following commands to verify that you have the correct versions of Maven and JDK installed:

java -version
mvn --version

Add JDK 8 to the Maven toolchain, easiest to use `${HOME}/.m2/toolchains.xml`. Example:

```xml
<?xml version="1.0" encoding="UTF-8"?>
<toolchains>
<toolchain>
<type>jdk</type>
<provides>
<version>1.8</version>
<vendor>sun</vendor>
</provides>
<configuration>
<jdkHome>FULL_PATH_TO_YOUR_JAVA_8_HOME</jdkHome>
</configuration>
</toolchain>
<toolchain>
<type>jdk</type>
<provides>
<version>11</version>
<vendor>sun</vendor>
</provides>
<configuration>
<jdkHome>FULL_PATH_TO_YOUR_JAVA_11_HOME</jdkHome>
</configuration>
</toolchain>
</toolchains>
```

### (b) Clone the Repository

git clone https://github.com/dremio/dremio-oss.git dremio
Expand Down Expand Up @@ -69,4 +98,3 @@ The distribution directory will be `distribution/server/target/dremio-oss-{DREMI
## Questions?

If you have questions, please post them on https://community.dremio.com.

13 changes: 7 additions & 6 deletions client/base/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<parent>
<groupId>com.dremio.client</groupId>
<artifactId>dremio-client-parent</artifactId>
<version>20.1.0-202202061055110045-36733c65</version>
<version>21.1.1-202204292111390812-57b1832f</version>
</parent>

<artifactId>dremio-client-base</artifactId>
Expand Down Expand Up @@ -87,11 +87,6 @@
<artifactId>junit</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest-core</artifactId>
<scope>test</scope>
</dependency>

<dependency>
<groupId>org.apache.commons</groupId>
Expand All @@ -107,6 +102,12 @@
<groupId>joda-time</groupId>
<artifactId>joda-time</artifactId>
</dependency>

<dependency>
<groupId>org.assertj</groupId>
<artifactId>assertj-core</artifactId>
<scope>test</scope>
</dependency>
</dependencies>


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ protected ByteBuf[] sliceIfNecessary(QueryBatch batch) {
}
vc.buildSchema();
vc.setAllCount(batch.getHeader().getRowCount());
buf.release();
buf.close();
return WritableBatch.get(vc).getBuffers();
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public QueryDataBatch(QueryData header, ArrowBuf data) {
this.header = header;
this.data = data;
if (this.data != null) {
data.retain(1);
data.getReferenceManager().retain(1);
}
}

Expand All @@ -55,7 +55,7 @@ public void release() {
}

if (data != null) {
data.release(1);
data.getReferenceManager().release(1);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ public void testConvertBitsToBytes() {
bits.setValueCount(count);

ArrowBuf oldBuf = bits.getDataBuffer();
oldBuf.retain();
oldBuf.getReferenceManager().retain();
SerializedField.Builder fieldBuilder = TypeHelper.getMetadataBuilder(bits);
ArrowBuf newBuf = convertBitsToBytes(allocator, fieldBuilder, NettyArrowBuf.unwrapBuffer(oldBuf)).arrowBuf();
bytes.setValueCount(count);
Expand All @@ -155,7 +155,7 @@ public void testConvertBitsToBytes() {
for (int i = 0; i < count ; i++) {
assertEquals(i % 2, bytes.get(i));
}
newBuf.release();
newBuf.close();
}
}

Expand Down Expand Up @@ -232,7 +232,7 @@ public void testPatchDecimal() {
assertEquals(bd, decimal8);

final ArrowBuf validityBuffer = decimalVector.getValidityBuffer();
validityBuffer.release();
validityBuffer.close();
newBuffer.release();
}

Expand All @@ -251,7 +251,7 @@ public void testPadValues() {
bytes.setValueCount(count * 8);

ArrowBuf oldBuf = bytes.getDataBuffer();
oldBuf.retain();
oldBuf.getReferenceManager().retain();
SerializedField.Builder fieldBuilder = TypeHelper.getMetadataBuilder(bytes);
ArrowBuf newBuf = padValues(allocator, fieldBuilder, NettyArrowBuf.unwrapBuffer(oldBuf), originalTypeByteWidth,
targetTypeByteWidth).arrowBuf();
Expand All @@ -264,7 +264,7 @@ public void testPadValues() {
assertEquals((i * 8 + byteIndex) % 8, bytes.get(i * 12 + byteIndex));
}
}
newBuf.release();
newBuf.close();
}
}
}
7 changes: 6 additions & 1 deletion client/jdbc/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<parent>
<groupId>com.dremio.client</groupId>
<artifactId>dremio-client-parent</artifactId>
<version>20.1.0-202202061055110045-36733c65</version>
<version>21.1.1-202204292111390812-57b1832f</version>
</parent>
<artifactId>dremio-client-jdbc</artifactId>
<name>Client - JDBC Driver</name>
Expand Down Expand Up @@ -107,6 +107,11 @@
<groupId>xalan</groupId>
<artifactId>xalan</artifactId>
</dependency>
<dependency>
<groupId>org.assertj</groupId>
<artifactId>assertj-core</artifactId>
<scope>test</scope>
</dependency>
</dependencies>

<build>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ void close() {
QueryDataBatch qdb = batchQueue.poll();
// This correctly skips over the END_OF_STREAM_MESSAGE as it has null data.
if (qdb != null && qdb.getData() != null) {
qdb.getData().release();
qdb.getData().close();
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertTrue;
import static org.mockito.Matchers.anyInt;
import static org.mockito.ArgumentMatchers.anyInt;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.when;

Expand Down
Loading

0 comments on commit 812c7f3

Please sign in to comment.