Skip to content

Commit 56016fb

Browse files
kraviiprabhjyotsingh
authored andcommitted
ODP-1104 | snappy-java to 1.1.10.4, snappy-java to 1.1.10.4
1 parent 1ac7946 commit 56016fb

File tree

7 files changed

+35
-4
lines changed

7 files changed

+35
-4
lines changed

hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/io/AvroTestUtil.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public static void testReflect(Object value, Type type, String schema)
4141

4242
// check that schema matches expected
4343
Schema s = ReflectData.get().getSchema(type);
44-
assertEquals(Schema.parse(schema), s);
44+
assertEquals(new Schema.Parser().parse(schema), s);
4545

4646
// check that value is serialized correctly
4747
ReflectDatumWriter<Object> writer = new ReflectDatumWriter<Object>(s);

hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/io/TestEnumSetWritable.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ public void testSerializeAndDeserializeNull() throws IOException {
119119
public void testAvroReflect() throws Exception {
120120
String schema = "{\"type\":\"array\",\"items\":{\"type\":\"enum\","
121121
+ "\"name\":\"TestEnumSet\","
122-
+ "\"namespace\":\"org.apache.hadoop.io.TestEnumSetWritable$\","
122+
+ "\"namespace\":\"org.apache.hadoop.io.TestEnumSetWritable\","
123123
+ "\"symbols\":[\"CREATE\",\"OVERWRITE\",\"APPEND\"]},"
124124
+ "\"java-class\":\"org.apache.hadoop.io.EnumSetWritable\"}";
125125
Type type =

hadoop-mapreduce-project/dev-support/findbugs-exclude.xml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,14 @@
291291
<Bug pattern="EQ_COMPARETO_USE_OBJECT_EQUALS" />
292292
</Match>
293293

294+
<!--
295+
Ignore untidy code generated by Avro
296+
-->
297+
<Match>
298+
<Class name="org.apache.hadoop.mapreduce.jobhistory.JobSubmitted" />
299+
<Bug pattern="NP_NULL_INSTANCEOF" />
300+
</Match>
301+
294302
<Match>
295303
<Class name="org.apache.hadoop.mapred.Task" />
296304
<Method name="reportFatalError" />

hadoop-project/pom.xml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
<java.security.egd>file:///dev/urandom</java.security.egd>
6363

6464
<!-- avro version -->
65-
<avro.version>1.7.7</avro.version>
65+
<avro.version>1.9.2</avro.version>
6666

6767
<!-- jersey version -->
6868
<jersey.version>1.19</jersey.version>
@@ -117,6 +117,7 @@
117117
<commons-math3.version>3.1.1</commons-math3.version>
118118
<commons-net.version>3.6</commons-net.version>
119119
<commons-text.version>1.10.0</commons-text.version>
120+
<snappy-java.version>1.1.10.4</snappy-java.version>
120121

121122
<!-- Apache Ratis version -->
122123
<ratis.version>0.3.0-eca3531-SNAPSHOT</ratis.version>
@@ -133,6 +134,7 @@
133134
<metrics.version>3.2.4</metrics.version>
134135
<netty3.version>3.10.6.Final</netty3.version>
135136
<netty4.version>4.1.68.Final</netty4.version>
137+
<snappy-java.version>1.1.10.4</snappy-java.version>
136138

137139
<!-- Maven protoc compiler -->
138140
<protobuf-maven-plugin.version>0.5.1</protobuf-maven-plugin.version>

hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-common/pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@
8989
<groupId>com.google.protobuf</groupId>
9090
<artifactId>protobuf-java</artifactId>
9191
</dependency>
92+
9293
<dependency>
9394
<groupId>junit</groupId>
9495
<artifactId>junit</artifactId>

hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-timelineservice-hbase-tests/pom.xml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,13 @@
161161
<scope>test</scope>
162162
</dependency>
163163

164+
165+
<dependency>
166+
<groupId>org.xerial.snappy</groupId>
167+
<artifactId>snappy-java</artifactId>
168+
<version>1.1.10.4</version>
169+
</dependency>
170+
164171
<dependency>
165172
<groupId>com.sun.jersey</groupId>
166173
<artifactId>jersey-client</artifactId>
@@ -324,6 +331,12 @@
324331
<scope>test</scope>
325332
</dependency>
326333

334+
<dependency>
335+
<groupId>org.xerial.snappy</groupId>
336+
<artifactId>snappy-java</artifactId>
337+
<scope>runtime</scope>
338+
</dependency>
339+
327340
<dependency>
328341
<groupId>org.apache.hbase</groupId>
329342
<artifactId>hbase-testing-util</artifactId>
@@ -466,6 +479,13 @@
466479
<version>${hbase-compatible-hadoop.version}</version>
467480
<scope>test</scope>
468481
</dependency>
482+
483+
<dependency>
484+
<groupId>org.xerial.snappy</groupId>
485+
<artifactId>snappy-java</artifactId>
486+
<version>1.1.10.4</version>
487+
</dependency>
488+
469489
<!-- 'mvn dependency:analyze' fails to detect use of this direct
470490
dependency -->
471491
<!-- This is needed by HBaseTestingUtility -->

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/x
237237
<pluginExecutionFilter>
238238
<groupId>org.apache.avro</groupId>
239239
<artifactId>avro-maven-plugin</artifactId>
240-
<versionRange>[1.5.3,)</versionRange>
240+
<versionRange>[1.9.2,)</versionRange>
241241
<goals>
242242
<goal>schema</goal>
243243
<goal>protocol</goal>

0 commit comments

Comments
 (0)