Skip to content

Commit

Permalink
ODP-1104 | snappy-java to 1.1.10.4, snappy-java to 1.1.10.4
Browse files Browse the repository at this point in the history
  • Loading branch information
kravii authored and prabhjyotsingh committed Feb 15, 2024
1 parent 1ac7946 commit 56016fb
Show file tree
Hide file tree
Showing 7 changed files with 35 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public static void testReflect(Object value, Type type, String schema)

// check that schema matches expected
Schema s = ReflectData.get().getSchema(type);
assertEquals(Schema.parse(schema), s);
assertEquals(new Schema.Parser().parse(schema), s);

// check that value is serialized correctly
ReflectDatumWriter<Object> writer = new ReflectDatumWriter<Object>(s);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ public void testSerializeAndDeserializeNull() throws IOException {
public void testAvroReflect() throws Exception {
String schema = "{\"type\":\"array\",\"items\":{\"type\":\"enum\","
+ "\"name\":\"TestEnumSet\","
+ "\"namespace\":\"org.apache.hadoop.io.TestEnumSetWritable$\","
+ "\"namespace\":\"org.apache.hadoop.io.TestEnumSetWritable\","
+ "\"symbols\":[\"CREATE\",\"OVERWRITE\",\"APPEND\"]},"
+ "\"java-class\":\"org.apache.hadoop.io.EnumSetWritable\"}";
Type type =
Expand Down
8 changes: 8 additions & 0 deletions hadoop-mapreduce-project/dev-support/findbugs-exclude.xml
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,14 @@
<Bug pattern="EQ_COMPARETO_USE_OBJECT_EQUALS" />
</Match>

<!--
Ignore untidy code generated by Avro
-->
<Match>
<Class name="org.apache.hadoop.mapreduce.jobhistory.JobSubmitted" />
<Bug pattern="NP_NULL_INSTANCEOF" />
</Match>

<Match>
<Class name="org.apache.hadoop.mapred.Task" />
<Method name="reportFatalError" />
Expand Down
4 changes: 3 additions & 1 deletion hadoop-project/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
<java.security.egd>file:///dev/urandom</java.security.egd>

<!-- avro version -->
<avro.version>1.7.7</avro.version>
<avro.version>1.9.2</avro.version>

<!-- jersey version -->
<jersey.version>1.19</jersey.version>
Expand Down Expand Up @@ -117,6 +117,7 @@
<commons-math3.version>3.1.1</commons-math3.version>
<commons-net.version>3.6</commons-net.version>
<commons-text.version>1.10.0</commons-text.version>
<snappy-java.version>1.1.10.4</snappy-java.version>

<!-- Apache Ratis version -->
<ratis.version>0.3.0-eca3531-SNAPSHOT</ratis.version>
Expand All @@ -133,6 +134,7 @@
<metrics.version>3.2.4</metrics.version>
<netty3.version>3.10.6.Final</netty3.version>
<netty4.version>4.1.68.Final</netty4.version>
<snappy-java.version>1.1.10.4</snappy-java.version>

<!-- Maven protoc compiler -->
<protobuf-maven-plugin.version>0.5.1</protobuf-maven-plugin.version>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@
<groupId>com.google.protobuf</groupId>
<artifactId>protobuf-java</artifactId>
</dependency>

<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,13 @@
<scope>test</scope>
</dependency>


<dependency>
<groupId>org.xerial.snappy</groupId>
<artifactId>snappy-java</artifactId>
<version>1.1.10.4</version>
</dependency>

<dependency>
<groupId>com.sun.jersey</groupId>
<artifactId>jersey-client</artifactId>
Expand Down Expand Up @@ -324,6 +331,12 @@
<scope>test</scope>
</dependency>

<dependency>
<groupId>org.xerial.snappy</groupId>
<artifactId>snappy-java</artifactId>
<scope>runtime</scope>
</dependency>

<dependency>
<groupId>org.apache.hbase</groupId>
<artifactId>hbase-testing-util</artifactId>
Expand Down Expand Up @@ -466,6 +479,13 @@
<version>${hbase-compatible-hadoop.version}</version>
<scope>test</scope>
</dependency>

<dependency>
<groupId>org.xerial.snappy</groupId>
<artifactId>snappy-java</artifactId>
<version>1.1.10.4</version>
</dependency>

<!-- 'mvn dependency:analyze' fails to detect use of this direct
dependency -->
<!-- This is needed by HBaseTestingUtility -->
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/x
<pluginExecutionFilter>
<groupId>org.apache.avro</groupId>
<artifactId>avro-maven-plugin</artifactId>
<versionRange>[1.5.3,)</versionRange>
<versionRange>[1.9.2,)</versionRange>
<goals>
<goal>schema</goal>
<goal>protocol</goal>
Expand Down

0 comments on commit 56016fb

Please sign in to comment.