[jira] [Commented] (AVRO-2327) Add support for java annotations containing elements

2019-03-07 Thread Ivan Greene (JIRA)


[ 
https://issues.apache.org/jira/browse/AVRO-2327?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16787468#comment-16787468
 ] 

Ivan Greene commented on AVRO-2327:
---

[~rstull1250] please see my answer on your stackoverflow question; I believe 
this issue may be closed.

> Add support for java annotations containing elements
> 
>
> Key: AVRO-2327
> URL: https://issues.apache.org/jira/browse/AVRO-2327
> Project: Apache Avro
>  Issue Type: Improvement
>  Components: java
>Affects Versions: 1.8.2
>Reporter: Ryan Stull
>Priority: Minor
>  Labels: usability
>
> Currently it seems AVRO only supports java annotations that do not contain 
> [elements|https://docs.oracle.com/javase/tutorial/java/annotations/basics.html]
>  (which are basically the parameters to the annotation).  
> [Here's a stack overflow 
> issue|https://stackoverflow.com/questions/54675764/how-to-supply-argument-to-a-javaannotation-on-an-avro-idl-file]
>  which shows an example of this.
> It would be useful to have this feature because many java annotations require 
> elements, and not  supporting this means only a small portion of java 
> annotations can be supported.
> An example use case would be:  I want to store data in avro that I'm getting 
> from a 3rd party service as a JSON response, and I want my AVRO idl file to 
> have different field names from the response body. If I'm using GSON, or any 
> other JSON parser that uses annotations to configure alternative name 
> mapping, then there's no easy way to do this.
> To be more explicit, if I had a json response 
> {code:json}
> {
>"name": "Jeff"
> }
> {code}
> and an avro file
> {code:js}
> protocol Response {
>   record Response {
> string @javaAnnotation("com.google.gson.annotations.SerializedName") 
> userName;
>   }
> }
> {code}
> Then there's no way to tell the GSON annotation about the alternate name is 
> "name".  In java you would just use:
> {code:java}
> public class Response {
> @com.google.gson.annotations.SerializedName("name")
> String userName;
> }
> {code}
> Supporting this feature would allow the generated java classes to be easily 
> reused throughout the different layers of an app.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (AVRO-1891) Generated Java code fails with union containing logical type

2019-03-07 Thread Ivan Greene (JIRA)


[ 
https://issues.apache.org/jira/browse/AVRO-1891?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16787433#comment-16787433
 ] 

Ivan Greene commented on AVRO-1891:
---

Also curious; what are the remaining unresolved parts of this issue?

> Generated Java code fails with union containing logical type
> 
>
> Key: AVRO-1891
> URL: https://issues.apache.org/jira/browse/AVRO-1891
> Project: Apache Avro
>  Issue Type: Bug
>  Components: java, logical types
>Affects Versions: 1.8.1
>Reporter: Ross Black
>Priority: Blocker
> Fix For: 1.8.3
>
> Attachments: AVRO-1891.patch, AVRO-1891.yshi.1.patch, 
> AVRO-1891.yshi.2.patch, AVRO-1891.yshi.3.patch, AVRO-1891.yshi.4.patch
>
>
> Example schema:
> {code}
> {
>   "type": "record",
>   "name": "RecordV1",
>   "namespace": "org.brasslock.event",
>   "fields": [
> { "name": "first", "type": ["null", {"type": "long", 
> "logicalType":"timestamp-millis"}]}
>   ]
> }
> {code}
> The avro compiler generates a field using the relevant joda class:
> {code}
> public org.joda.time.DateTime first
> {code}
> Running the following code to perform encoding:
> {code}
> final RecordV1 record = new 
> RecordV1(DateTime.parse("2016-07-29T10:15:30.00Z"));
> final DatumWriter datumWriter = new 
> SpecificDatumWriter<>(record.getSchema());
> final ByteArrayOutputStream stream = new ByteArrayOutputStream(8192);
> final BinaryEncoder encoder = 
> EncoderFactory.get().directBinaryEncoder(stream, null);
> datumWriter.write(record, encoder);
> encoder.flush();
> final byte[] bytes = stream.toByteArray();
> {code}
> fails with the exception stacktrace:
> {code}
>  org.apache.avro.AvroRuntimeException: Unknown datum type 
> org.joda.time.DateTime: 2016-07-29T10:15:30.000Z
> at org.apache.avro.generic.GenericData.getSchemaName(GenericData.java:741)
> at 
> org.apache.avro.specific.SpecificData.getSchemaName(SpecificData.java:293)
> at org.apache.avro.generic.GenericData.resolveUnion(GenericData.java:706)
> at 
> org.apache.avro.generic.GenericDatumWriter.resolveUnion(GenericDatumWriter.java:192)
> at 
> org.apache.avro.generic.GenericDatumWriter.writeWithoutConversion(GenericDatumWriter.java:110)
> at 
> org.apache.avro.specific.SpecificDatumWriter.writeField(SpecificDatumWriter.java:87)
> at 
> org.apache.avro.generic.GenericDatumWriter.writeRecord(GenericDatumWriter.java:143)
> at 
> org.apache.avro.generic.GenericDatumWriter.writeWithoutConversion(GenericDatumWriter.java:105)
> at 
> org.apache.avro.generic.GenericDatumWriter.write(GenericDatumWriter.java:73)
> at 
> org.apache.avro.generic.GenericDatumWriter.write(GenericDatumWriter.java:60)
> at 
> org.brasslock.avro.compiler.GeneratedRecordTest.shouldEncodeLogicalTypeInUnion(GeneratedRecordTest.java:82)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:498)
> at 
> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
> at 
> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
> at 
> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
> at 
> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
> at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
> at 
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
> at 
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
> at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
> at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
> at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
> at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
> at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
> at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
> at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
> at 
> com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:117)
> at 
> com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:42)
> at 
> com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:253)
> at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:84)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 

[jira] [Commented] (AVRO-1870) Avro compiler generate JAVA enum interfaces but writeEnum expects GenericEnumSymbol

2019-03-07 Thread Ivan Greene (JIRA)


[ 
https://issues.apache.org/jira/browse/AVRO-1870?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16787430#comment-16787430
 ] 

Ivan Greene commented on AVRO-1870:
---

This issue may be closed; it is the same as AVRO-1810 which has been resolved

> Avro compiler generate JAVA enum interfaces but writeEnum expects 
> GenericEnumSymbol
> ---
>
> Key: AVRO-1870
> URL: https://issues.apache.org/jira/browse/AVRO-1870
> Project: Apache Avro
>  Issue Type: Bug
>  Components: java
>Affects Versions: 1.8.1
>Reporter: Ali Hashemi
>Priority: Major
>
> Avro compiler generate an enum JAVA class from an enum Avro type 
> and this class is used in the Java class of the records pointing to the enum 
> type. However, org.apache.avro.generic.GenericDatumWriter.writeEnum expects a 
> GenericEnumSymbol rather than Java Enum!
> This is problem because the class interfaces for Avro messages expect Java 
> Enum and not GenericEnumSymbol!
> Consider the following schema:
> TrafficLights.avsc:
> {"namespace": "com.comp.message",
>  "type": "record",
>  "name": "TrafficLights",
>  "fields": [
> {"name": "id",  "type": "string"},
> {"name": "signal",  "type": "Signals" }
>  ]
> }
> Signals.avsc:
> {
>"namespace": "com.comp.message",
>"type": "enum",
>"name":"Signals",
>"symbols" : ["GREEN", "YELLOW", "RED"]
> }
> Using maven-avro-plugin to import "Signals" as an external schema, Avro 
> compiler creates the following constructor for TrafficLights class:
> public TrafficLights(java.lang.CharSequence id, com.comp.message.Signals 
> signal){...}
> and an Enum class fot the Signals:
> package com.comp.message;
> @SuppressWarnings("all")
> @org.apache.avro.specific.AvroGenerated
> public enum Signals {
>   GREEN, YELLOW, RED  ;
>   public static final org.apache.avro.Schema SCHEMA$ = new 
> org.apache.avro.Schema.Parser().parse("{\"type\":\"enum\",\"name\":\"Signals\",\"namespace\":\"com.comp.message\",\"symbols\":[\"GREEN\",\"YELLOW\",\"RED\"]}");
>   public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; }
> }
> However, when I try to serialize a TrafficLights message, 
> GenericDatumWriter.writeEnum throws an exeception:
> TrafficLights  mainTrafficLight = new TrafficLights  ("123",  Signals.GREEN);
> byte[] msg = new AvroMsgManager( mainTrafficLight .getSchema().toString() 
> ).serialize (mainTrafficLight))
> org.apache.avro.AvroTypeException: Not an enum: GREEN
> at 
> org.apache.avro.generic.GenericDatumWriter.writeEnum(GenericDatumWriter.java:164)
> at 
> org.apache.avro.generic.GenericDatumWriter.writeWithoutConversion(GenericDatumWriter.java:106)
> at 
> org.apache.avro.generic.GenericDatumWriter.write(GenericDatumWriter.java:73)
> at 
> org.apache.avro.generic.GenericDatumWriter.writeField(GenericDatumWriter.java:153)
> at 
> org.apache.avro.generic.GenericDatumWriter.writeRecord(GenericDatumWriter.java:143)
> at 
> org.apache.avro.generic.GenericDatumWriter.writeWithoutConversion(GenericDatumWriter.java:105)
> at 
> org.apache.avro.generic.GenericDatumWriter.write(GenericDatumWriter.java:73)
> at 
> org.apache.avro.generic.GenericDatumWriter.write(GenericDatumWriter.java:60)



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (AVRO-2136) All Outstreams are not getting closed in DataFileWriter

2019-03-07 Thread Ivan Greene (JIRA)


[ 
https://issues.apache.org/jira/browse/AVRO-2136?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16787427#comment-16787427
 ] 

Ivan Greene commented on AVRO-2136:
---

I agree this issue can be closed. It is not obvious but in DataFileWriter#init, 
'underlyingStream' is assigned to the OutputStream and 'out' is assigned to a 
BufferedFileOutputStream wrapping the OutputStream; when 'out' is closed, the 
original outputstream will also be closed.

> All Outstreams are not getting closed in DataFileWriter
> ---
>
> Key: AVRO-2136
> URL: https://issues.apache.org/jira/browse/AVRO-2136
> Project: Apache Avro
>  Issue Type: Bug
>  Components: java
>Reporter: Balu
>Priority: Critical
>
> underlyingStream is getting initialized with output stream provided while 
> writing the data, butis never getting closed. This is causing issue when a 
> file system accepts only one active connection to write the data.
>  
> When close method is called it is also close underlyingStream



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Resolved] (AVRO-2342) Honor ParseMode in AvroFileFormat

2019-03-07 Thread Tim Cerexhe (JIRA)


 [ 
https://issues.apache.org/jira/browse/AVRO-2342?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Tim Cerexhe resolved AVRO-2342.
---
Resolution: Duplicate

Moved to Spark project https://issues.apache.org/jira/browse/SPARK-27093

> Honor ParseMode in AvroFileFormat
> -
>
> Key: AVRO-2342
> URL: https://issues.apache.org/jira/browse/AVRO-2342
> Project: Apache Avro
>  Issue Type: Improvement
>Reporter: Tim Cerexhe
>Priority: Major
>
> The Avro reader is missing the ability to handle malformed or truncated files 
> like the JSON reader. Currently it throws exceptions when it encounters any 
> bad or truncated record in an Avro file, causing the entire Spark job to fail 
> from a single dodgy file. 
> Ideally the AvroFileFormat would accept a Permissive or DropMalformed 
> ParseMode like Spark's JSON format. This would enable the the Avro reader to 
> drop bad records and continue processing the good records rather than abort 
> the entire job. 
> Obviously the default could remain as FailFastMode, which is the current 
> effective behavior, so this wouldn’t break any existing users. 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Created] (AVRO-2342) Honor ParseMode in AvroFileFormat

2019-03-07 Thread Tim Cerexhe (JIRA)
Tim Cerexhe created AVRO-2342:
-

 Summary: Honor ParseMode in AvroFileFormat
 Key: AVRO-2342
 URL: https://issues.apache.org/jira/browse/AVRO-2342
 Project: Apache Avro
  Issue Type: Improvement
Reporter: Tim Cerexhe


The Avro reader is missing the ability to handle malformed or truncated files 
like the JSON reader. Currently it throws exceptions when it encounters any bad 
or truncated record in an Avro file, causing the entire Spark job to fail from 
a single dodgy file. 

Ideally the AvroFileFormat would accept a Permissive or DropMalformed ParseMode 
like Spark's JSON format. This would enable the the Avro reader to drop bad 
records and continue processing the good records rather than abort the entire 
job. 

Obviously the default could remain as FailFastMode, which is the current 
effective behavior, so this wouldn’t break any existing users. 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (AVRO-2333) Remove commons-logging dependency

2019-03-07 Thread Hudson (JIRA)


[ 
https://issues.apache.org/jira/browse/AVRO-2333?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16787172#comment-16787172
 ] 

Hudson commented on AVRO-2333:
--

FAILURE: Integrated in Jenkins build AvroJava #617 (See 
[https://builds.apache.org/job/AvroJava/617/])
AVRO-2333: Remove commons-logging dependency (dan: 
[https://github.com/apache/avro/commit/f715c974b9f7eb4d4809c1e0f04b7b4ff12837b3])
* (edit) lang/java/tools/pom.xml
* (edit) lang/java/pom.xml


> Remove commons-logging dependency
> -
>
> Key: AVRO-2333
> URL: https://issues.apache.org/jira/browse/AVRO-2333
> Project: Apache Avro
>  Issue Type: Improvement
>Reporter: David Mollitor
>Assignee: David Mollitor
>Priority: Minor
>
> Remove dependency on {{commons-logging}}.  Now using {{SLF4J}} + {{Log4J}}.
> https://github.com/apache/avro/blob/master/lang/java/tools/pom.xml#L221-L225



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


Build failed in Jenkins: AvroJava #617

2019-03-07 Thread Apache Jenkins Server
See 

Changes:

[dan] AVRO-2333: Remove commons-logging dependency

[dan] AVRO-2331: Use JDK Base64

--
[...truncated 77.19 KB...]
[INFO] Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.277 s 
- in org.apache.avro.compiler.idl.TestSchemaResolver
[INFO] 
[INFO] Results:
[INFO] 
[INFO] Tests run: 63, Failures: 0, Errors: 0, Skipped: 0
[INFO] 
[INFO] 
[INFO] --- maven-checkstyle-plugin:3.0.0:check (checkstyle-check) @ 
avro-compiler ---
[INFO] Starting audit...
Audit done.
[INFO] 
[INFO] --- maven-bundle-plugin:4.1.0:bundle (default-bundle) @ avro-compiler ---
[INFO] 
[INFO] --- maven-site-plugin:3.7.1:attach-descriptor (attach-descriptor) @ 
avro-compiler ---
[INFO] Skipping because packaging 'bundle' is not pom.
[INFO] 
[INFO] --- maven-install-plugin:2.5.2:install (default-install) @ avro-compiler 
---
[INFO] Installing 

 to 
/home/jenkins/.m2/repository/org/apache/avro/avro-compiler/1.9.0-SNAPSHOT/avro-compiler-1.9.0-SNAPSHOT.jar
[INFO] Installing 
 to 
/home/jenkins/.m2/repository/org/apache/avro/avro-compiler/1.9.0-SNAPSHOT/avro-compiler-1.9.0-SNAPSHOT.pom
[INFO] Installing 

 to 
/home/jenkins/.m2/repository/org/apache/avro/avro-compiler/1.9.0-SNAPSHOT/avro-compiler-1.9.0-SNAPSHOT-sources.jar
[INFO] 
[INFO] --- maven-bundle-plugin:4.1.0:install (default-install) @ avro-compiler 
---
[INFO] Installing 
org/apache/avro/avro-compiler/1.9.0-SNAPSHOT/avro-compiler-1.9.0-SNAPSHOT.jar
[INFO] Writing OBR metadata
[INFO] 
[INFO] --- maven-deploy-plugin:2.8.2:deploy (default-deploy) @ avro-compiler ---
Downloading from apache.snapshots.https: 
https://repository.apache.org/content/repositories/snapshots/org/apache/avro/avro-compiler/1.9.0-SNAPSHOT/maven-metadata.xml
Progress (1): 996 B   Downloaded from apache.snapshots.https: 
https://repository.apache.org/content/repositories/snapshots/org/apache/avro/avro-compiler/1.9.0-SNAPSHOT/maven-metadata.xml
 (996 B at 1.6 kB/s)
Uploading to apache.snapshots.https: 
https://repository.apache.org/content/repositories/snapshots/org/apache/avro/avro-compiler/1.9.0-SNAPSHOT/avro-compiler-1.9.0-20190307.204000-76.jar
Progress (1): 2.0/112 kBProgress (1): 4.1/112 kBProgress (1): 6.1/112 
kBProgress (1): 8.2/112 kBProgress (1): 10/112 kB Progress (1): 12/112 
kBProgress (1): 14/112 kBProgress (1): 16/112 kBProgress (1): 18/112 kBProgress 
(1): 20/112 kBProgress (1): 23/112 kBProgress (1): 25/112 kBProgress (1): 
27/112 kBProgress (1): 29/112 kBProgress (1): 31/112 kBProgress (1): 33/112 
kBProgress (1): 35/112 kBProgress (1): 37/112 kBProgress (1): 39/112 kBProgress 
(1): 41/112 kBProgress (1): 43/112 kBProgress (1): 45/112 kBProgress (1): 
47/112 kBProgress (1): 49/112 kBProgress (1): 51/112 kBProgress (1): 53/112 
kBProgress (1): 55/112 kBProgress (1): 57/112 kBProgress (1): 59/112 kBProgress 
(1): 61/112 kBProgress (1): 63/112 kBProgress (1): 66/112 kBProgress (1): 
68/112 kBProgress (1): 70/112 kBProgress (1): 72/112 kBProgress (1): 74/112 
kBProgress (1): 76/112 kBProgress (1): 78/112 kBProgress (1): 80/112 kBProgress 
(1): 82/112 kBProgress (1): 84/112 kBProgress (1): 86/112 kBProgress (1): 
88/112 kBProgress (1): 90/112 kBProgress (1): 92/112 kBProgress (1): 94/112 
kBProgress (1): 96/112 kBProgress (1): 98/112 kBProgress (1): 100/112 
kBProgress (1): 102/112 kBProgress (1): 104/112 kBProgress (1): 106/112 
kBProgress (1): 109/112 kBProgress (1): 111/112 kBProgress (1): 112 kB  
  Uploaded to apache.snapshots.https: 
https://repository.apache.org/content/repositories/snapshots/org/apache/avro/avro-compiler/1.9.0-SNAPSHOT/avro-compiler-1.9.0-20190307.204000-76.jar
 (112 kB at 83 kB/s)
Uploading to apache.snapshots.https: 
https://repository.apache.org/content/repositories/snapshots/org/apache/avro/avro-compiler/1.9.0-SNAPSHOT/avro-compiler-1.9.0-20190307.204000-76.pom
Progress (1): 2.0/7.3 kBProgress (1): 4.1/7.3 kBProgress (1): 6.1/7.3 
kBProgress (1): 7.3 kBUploaded to 
apache.snapshots.https: 
https://repository.apache.org/content/repositories/snapshots/org/apache/avro/avro-compiler/1.9.0-SNAPSHOT/avro-compiler-1.9.0-20190307.204000-76.pom
 (7.3 kB at 6.7 kB/s)
Downloading from apache.snapshots.https: 
https://repository.apache.org/content/repositories/snapshots/org/apache/avro/avro-compiler/maven-metadata.xml
Progress (1): 348 B   Downloaded from apache.snapshots.https: 
https://repository.apache.org/content/repositories/snapshots/org/apache/avro/avro-compiler/maven-metadata.xml
 (348 B at 589 B/s)
Uploading to apache.snapshots.https: 

[jira] [Commented] (AVRO-2331) Remove commons-codec dependency

2019-03-07 Thread Hudson (JIRA)


[ 
https://issues.apache.org/jira/browse/AVRO-2331?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16787173#comment-16787173
 ] 

Hudson commented on AVRO-2331:
--

FAILURE: Integrated in Jenkins build AvroJava #617 (See 
[https://builds.apache.org/job/AvroJava/617/])
AVRO-2331: Use JDK Base64 (dan: 
[https://github.com/apache/avro/commit/e16f30abf6d1b7befcc36f49a5bc39166a75f814])
* (edit) 
lang/java/mapred/src/main/java/org/apache/avro/mapred/AvroMultipleInputs.java
* (edit) lang/java/pom.xml
* (edit) lang/java/mapred/pom.xml


> Remove commons-codec dependency
> ---
>
> Key: AVRO-2331
> URL: https://issues.apache.org/jira/browse/AVRO-2331
> Project: Apache Avro
>  Issue Type: Improvement
>Reporter: David Mollitor
>Assignee: David Mollitor
>Priority: Minor
> Fix For: 1.9.0
>
>
> Use [JDK 
> Base64|https://docs.oracle.com/javase/8/docs/api/java/util/Base64.html] 
> instead of Apache Codec.
> Will allow for removal of Apache Commons Codec dependency.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (AVRO-2331) Remove commons-codec dependency

2019-03-07 Thread ASF subversion and git services (JIRA)


[ 
https://issues.apache.org/jira/browse/AVRO-2331?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16787160#comment-16787160
 ] 

ASF subversion and git services commented on AVRO-2331:
---

Commit e16f30abf6d1b7befcc36f49a5bc39166a75f814 in avro's branch 
refs/heads/master from Beluga Behr
[ https://gitbox.apache.org/repos/asf?p=avro.git;h=e16f30a ]

AVRO-2331: Use JDK Base64


> Remove commons-codec dependency
> ---
>
> Key: AVRO-2331
> URL: https://issues.apache.org/jira/browse/AVRO-2331
> Project: Apache Avro
>  Issue Type: Improvement
>Reporter: David Mollitor
>Assignee: David Mollitor
>Priority: Minor
> Fix For: 1.9.0
>
>
> Use [JDK 
> Base64|https://docs.oracle.com/javase/8/docs/api/java/util/Base64.html] 
> instead of Apache Codec.
> Will allow for removal of Apache Commons Codec dependency.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (AVRO-2333) Remove commons-logging dependency

2019-03-07 Thread ASF subversion and git services (JIRA)


[ 
https://issues.apache.org/jira/browse/AVRO-2333?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16787156#comment-16787156
 ] 

ASF subversion and git services commented on AVRO-2333:
---

Commit f715c974b9f7eb4d4809c1e0f04b7b4ff12837b3 in avro's branch 
refs/heads/master from Beluga Behr
[ https://gitbox.apache.org/repos/asf?p=avro.git;h=f715c97 ]

AVRO-2333: Remove commons-logging dependency


> Remove commons-logging dependency
> -
>
> Key: AVRO-2333
> URL: https://issues.apache.org/jira/browse/AVRO-2333
> Project: Apache Avro
>  Issue Type: Improvement
>Reporter: David Mollitor
>Assignee: David Mollitor
>Priority: Minor
>
> Remove dependency on {{commons-logging}}.  Now using {{SLF4J}} + {{Log4J}}.
> https://github.com/apache/avro/blob/master/lang/java/tools/pom.xml#L221-L225



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (AVRO-2341) Simplify ByteArrayByteSource Min Buffer Size

2019-03-07 Thread David Mollitor (JIRA)


[ 
https://issues.apache.org/jira/browse/AVRO-2341?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16786989#comment-16786989
 ] 

David Mollitor commented on AVRO-2341:
--

https://github.com/apache/avro/pull/474

> Simplify ByteArrayByteSource Min Buffer Size
> 
>
> Key: AVRO-2341
> URL: https://issues.apache.org/jira/browse/AVRO-2341
> Project: Apache Avro
>  Issue Type: Improvement
>  Components: java
>Reporter: David Mollitor
>Assignee: David Mollitor
>Priority: Trivial
>




--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Assigned] (AVRO-2341) Simplify ByteArrayByteSource Mni Buffer Size

2019-03-07 Thread David Mollitor (JIRA)


 [ 
https://issues.apache.org/jira/browse/AVRO-2341?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

David Mollitor reassigned AVRO-2341:


Assignee: David Mollitor

> Simplify ByteArrayByteSource Mni Buffer Size
> 
>
> Key: AVRO-2341
> URL: https://issues.apache.org/jira/browse/AVRO-2341
> Project: Apache Avro
>  Issue Type: Improvement
>  Components: java
>Reporter: David Mollitor
>Assignee: David Mollitor
>Priority: Trivial
>




--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Updated] (AVRO-2341) Simplify ByteArrayByteSource Min Buffer Size

2019-03-07 Thread David Mollitor (JIRA)


 [ 
https://issues.apache.org/jira/browse/AVRO-2341?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

David Mollitor updated AVRO-2341:
-
Summary: Simplify ByteArrayByteSource Min Buffer Size  (was: Simplify 
ByteArrayByteSource Mni Buffer Size)

> Simplify ByteArrayByteSource Min Buffer Size
> 
>
> Key: AVRO-2341
> URL: https://issues.apache.org/jira/browse/AVRO-2341
> Project: Apache Avro
>  Issue Type: Improvement
>  Components: java
>Reporter: David Mollitor
>Assignee: David Mollitor
>Priority: Trivial
>




--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Created] (AVRO-2341) Simplify ByteArrayByteSource Mni Buffer Size

2019-03-07 Thread David Mollitor (JIRA)
David Mollitor created AVRO-2341:


 Summary: Simplify ByteArrayByteSource Mni Buffer Size
 Key: AVRO-2341
 URL: https://issues.apache.org/jira/browse/AVRO-2341
 Project: Apache Avro
  Issue Type: Improvement
  Components: java
Reporter: David Mollitor






--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Assigned] (AVRO-2340) Use JDK compareTo and hashcode Methods

2019-03-07 Thread David Mollitor (JIRA)


 [ 
https://issues.apache.org/jira/browse/AVRO-2340?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

David Mollitor reassigned AVRO-2340:


Assignee: David Mollitor

> Use JDK compareTo and hashcode Methods
> --
>
> Key: AVRO-2340
> URL: https://issues.apache.org/jira/browse/AVRO-2340
> Project: Apache Avro
>  Issue Type: Improvement
>  Components: java
>Reporter: David Mollitor
>Assignee: David Mollitor
>Priority: Minor
>
> There are a few different ways that {{hashCode()}} and {{compare}} are 
> implemented.  Just use the JDK methods.
> I set a breakpoint and ran the 'perf' program, but it did not hit, so these 
> methods are not on the critical paths.  Best to do this work in a consistent 
> behavior.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Created] (AVRO-2340) Use JDK compareTo and hashcode Methods

2019-03-07 Thread David Mollitor (JIRA)
David Mollitor created AVRO-2340:


 Summary: Use JDK compareTo and hashcode Methods
 Key: AVRO-2340
 URL: https://issues.apache.org/jira/browse/AVRO-2340
 Project: Apache Avro
  Issue Type: Improvement
  Components: java
Reporter: David Mollitor


There are a few different ways that {{hashCode()}} and {{compare}} are 
implemented.  Just use the JDK methods.

I set a breakpoint and ran the 'perf' program, but it did not hit, so these 
methods are not on the critical paths.  Best to do this work in a consistent 
behavior.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (AVRO-2338) Remove Deprecated Use of JsonStringEncoder

2019-03-07 Thread Hudson (JIRA)


[ 
https://issues.apache.org/jira/browse/AVRO-2338?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16786620#comment-16786620
 ] 

Hudson commented on AVRO-2338:
--

SUCCESS: Integrated in Jenkins build AvroJava #616 (See 
[https://builds.apache.org/job/AvroJava/616/])
AVRO-2338: Remove Deprecated Use of JsonStringEncoder (#471) (nandorkollar: 
[https://github.com/apache/avro/commit/f173ae8d690b5f90e8cc5899b654762a9d11e17d])
* (edit) lang/java/avro/src/main/java/org/apache/avro/SchemaBuilder.java


> Remove Deprecated Use of JsonStringEncoder
> --
>
> Key: AVRO-2338
> URL: https://issues.apache.org/jira/browse/AVRO-2338
> Project: Apache Avro
>  Issue Type: Improvement
>  Components: java
>Affects Versions: 1.9.0
>Reporter: David Mollitor
>Assignee: David Mollitor
>Priority: Minor
> Fix For: 1.9.0
>
>
> {code:java|title=SchemaBuilder.java}
> char[] quoted = JsonStringEncoder.getInstance().quoteAsString(s);
> {code}
> [Deprecated. Since 2.9.2 use BufferRecyclers.getJsonStringEncoder() 
> instead|https://fasterxml.github.io/jackson-core/javadoc/2.9/com/fasterxml/jackson/core/io/JsonStringEncoder.html#getInstance--]



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


Jenkins build is back to normal : AvroJava #616

2019-03-07 Thread Apache Jenkins Server
See 



[jira] [Resolved] (AVRO-2338) Remove Deprecated Use of JsonStringEncoder

2019-03-07 Thread Nandor Kollar (JIRA)


 [ 
https://issues.apache.org/jira/browse/AVRO-2338?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Nandor Kollar resolved AVRO-2338.
-
   Resolution: Fixed
Fix Version/s: 1.9.0

> Remove Deprecated Use of JsonStringEncoder
> --
>
> Key: AVRO-2338
> URL: https://issues.apache.org/jira/browse/AVRO-2338
> Project: Apache Avro
>  Issue Type: Improvement
>  Components: java
>Affects Versions: 1.9.0
>Reporter: David Mollitor
>Assignee: David Mollitor
>Priority: Minor
> Fix For: 1.9.0
>
>
> {code:java|title=SchemaBuilder.java}
> char[] quoted = JsonStringEncoder.getInstance().quoteAsString(s);
> {code}
> [Deprecated. Since 2.9.2 use BufferRecyclers.getJsonStringEncoder() 
> instead|https://fasterxml.github.io/jackson-core/javadoc/2.9/com/fasterxml/jackson/core/io/JsonStringEncoder.html#getInstance--]



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (AVRO-2339) Remove Unused LengthLimitedInputStream

2019-03-07 Thread Hudson (JIRA)


[ 
https://issues.apache.org/jira/browse/AVRO-2339?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16786565#comment-16786565
 ] 

Hudson commented on AVRO-2339:
--

FAILURE: Integrated in Jenkins build AvroJava #615 (See 
[https://builds.apache.org/job/AvroJava/615/])
AVRO-2339: Remove Unused LengthLimitedInputStream (#472) (nandorkollar: 
[https://github.com/apache/avro/commit/2f2025201bf937cb163d263396a097bbc5fad1b0])
* (delete) 
lang/java/avro/src/main/java/org/apache/avro/file/LengthLimitedInputStream.java
* (delete) 
lang/java/avro/src/test/java/org/apache/avro/file/TestLengthLimitedInputStream.java


> Remove Unused LengthLimitedInputStream
> --
>
> Key: AVRO-2339
> URL: https://issues.apache.org/jira/browse/AVRO-2339
> Project: Apache Avro
>  Issue Type: Improvement
>  Components: java
>Affects Versions: 1.9.0
>Reporter: David Mollitor
>Assignee: David Mollitor
>Priority: Minor
> Fix For: 1.9.0
>
>
> Package scoped class and it is not used at all.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


Build failed in Jenkins: AvroJava #615

2019-03-07 Thread Apache Jenkins Server
See 

Changes:

[nandorKollar] AVRO-2339: Remove Unused LengthLimitedInputStream (#472)

--
[...truncated 219.10 KB...]
[INFO] Running org.apache.avro.tool.TestMain
[INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.05 s - 
in org.apache.avro.tool.TestMain
[INFO] Running org.apache.avro.tool.TestConcatTool
[INFO] Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.397 s 
- in org.apache.avro.tool.TestConcatTool
[INFO] Running org.apache.avro.tool.TestDataFileTools
[INFO] Tests run: 17, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.054 s 
- in org.apache.avro.tool.TestDataFileTools
[INFO] Running org.apache.avro.tool.TestRecodecTool
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.429 s 
- in org.apache.avro.tool.TestRecodecTool
[INFO] Running org.apache.avro.tool.TestTextFileTools
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.145 s 
- in org.apache.avro.tool.TestTextFileTools
[INFO] Running org.apache.avro.tool.TestTetherTool
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 3.715 s 
- in org.apache.avro.tool.TestTetherTool
[INFO] Running org.apache.avro.tool.TestToTrevniTool
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.191 s 
- in org.apache.avro.tool.TestToTrevniTool
[INFO] Running org.apache.avro.tool.TestDataFileRepairTool
[INFO] Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.227 s 
- in org.apache.avro.tool.TestDataFileRepairTool
[INFO] Running org.apache.avro.tool.TestSpecificCompilerTool
[ERROR] Tests run: 4, Failures: 4, Errors: 0, Skipped: 0, Time elapsed: 0.822 s 
<<< FAILURE! - in org.apache.avro.tool.TestSpecificCompilerTool
[ERROR] 
testCompileSchemaTwoFiles(org.apache.avro.tool.TestSpecificCompilerTool)  Time 
elapsed: 0.651 s  <<< FAILURE!
org.junit.ComparisonFailure: Found file: 
target/compiler/output/avro/examples/baseball/Position.java does not match 
expected file: src/test/compiler/output/Position.java expected:<...ublic enum 
Position [implements org.apache.avro.generic.GenericEnumSymbol {  P, 
C, B1, B2, B3, SS, LF, CF, RF, DH  ;  public static final 
org.apache.avro.Schema SCHEMA$ = new 
org.apache.avro.Schema.Parser().parse("{\"type\":\"enum\",\"name\":\"Position\",\"namespace\":\"avro.examples.baseball\",\"symbols\":[\"P\",\"C\",\"B1\",\"B2\",\"B3\",\"SS\",\"LF\",\"CF\",\"RF\",\"DH\"]}");
  public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; }  
public org.apache.avro.Schema get]Schema() { return SC...> but was:<...ublic 
enum Position [{  P, C, B1, B2, B3, SS, LF, CF, RF, DH  ;  public static final 
org.apache.avro.Schema SCHEMA$ = new 
org.apache.avro.Schema.Parser().parse("{\"type\":\"enum\",\"name\":\"Position\",\"namespace\":\"avro.examples.baseball\",\"symbols\":[\"P\",\"C\",\"B1\",\"B2\",\"B3\",\"SS\",\"LF\",\"CF\",\"RF\",\"DH\"]}");
  public static org.apache.avro.Schema getClass]Schema() { return SC...>
at org.junit.Assert.assertEquals(Assert.java:115)
at 
org.apache.avro.tool.TestSpecificCompilerTool.assertFileMatch(TestSpecificCompilerTool.java:140)
at 
org.apache.avro.tool.TestSpecificCompilerTool.testCompileSchemaTwoFiles(TestSpecificCompilerTool.java:97)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at 
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
at 
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at 
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
at 
org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at 
org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
at 
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
at 
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
at org.junit.runners.Suite.runChild(Suite.java:128)
at org.junit.runners.Suite.runChild(Suite.java:27)
at 

[jira] [Commented] (AVRO-2338) Remove Deprecated Use of JsonStringEncoder

2019-03-07 Thread ASF subversion and git services (JIRA)


[ 
https://issues.apache.org/jira/browse/AVRO-2338?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16786566#comment-16786566
 ] 

ASF subversion and git services commented on AVRO-2338:
---

Commit f173ae8d690b5f90e8cc5899b654762a9d11e17d in avro's branch 
refs/heads/master from BELUGABEHR
[ https://gitbox.apache.org/repos/asf?p=avro.git;h=f173ae8 ]

AVRO-2338: Remove Deprecated Use of JsonStringEncoder (#471)



> Remove Deprecated Use of JsonStringEncoder
> --
>
> Key: AVRO-2338
> URL: https://issues.apache.org/jira/browse/AVRO-2338
> Project: Apache Avro
>  Issue Type: Improvement
>  Components: java
>Affects Versions: 1.9.0
>Reporter: David Mollitor
>Assignee: David Mollitor
>Priority: Minor
>
> {code:java|title=SchemaBuilder.java}
> char[] quoted = JsonStringEncoder.getInstance().quoteAsString(s);
> {code}
> [Deprecated. Since 2.9.2 use BufferRecyclers.getJsonStringEncoder() 
> instead|https://fasterxml.github.io/jackson-core/javadoc/2.9/com/fasterxml/jackson/core/io/JsonStringEncoder.html#getInstance--]



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (AVRO-2339) Remove Unused LengthLimitedInputStream

2019-03-07 Thread ASF subversion and git services (JIRA)


[ 
https://issues.apache.org/jira/browse/AVRO-2339?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16786557#comment-16786557
 ] 

ASF subversion and git services commented on AVRO-2339:
---

Commit 2f2025201bf937cb163d263396a097bbc5fad1b0 in avro's branch 
refs/heads/master from BELUGABEHR
[ https://gitbox.apache.org/repos/asf?p=avro.git;h=2f20252 ]

AVRO-2339: Remove Unused LengthLimitedInputStream (#472)



> Remove Unused LengthLimitedInputStream
> --
>
> Key: AVRO-2339
> URL: https://issues.apache.org/jira/browse/AVRO-2339
> Project: Apache Avro
>  Issue Type: Improvement
>  Components: java
>Affects Versions: 1.9.0
>Reporter: David Mollitor
>Assignee: David Mollitor
>Priority: Minor
>
> Package scoped class and it is not used at all.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Resolved] (AVRO-2339) Remove Unused LengthLimitedInputStream

2019-03-07 Thread Nandor Kollar (JIRA)


 [ 
https://issues.apache.org/jira/browse/AVRO-2339?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Nandor Kollar resolved AVRO-2339.
-
   Resolution: Fixed
Fix Version/s: 1.9.0

> Remove Unused LengthLimitedInputStream
> --
>
> Key: AVRO-2339
> URL: https://issues.apache.org/jira/browse/AVRO-2339
> Project: Apache Avro
>  Issue Type: Improvement
>  Components: java
>Affects Versions: 1.9.0
>Reporter: David Mollitor
>Assignee: David Mollitor
>Priority: Minor
> Fix For: 1.9.0
>
>
> Package scoped class and it is not used at all.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (AVRO-2334) Update Docs to Reference Java 8 API

2019-03-07 Thread Hudson (JIRA)


[ 
https://issues.apache.org/jira/browse/AVRO-2334?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16786527#comment-16786527
 ] 

Hudson commented on AVRO-2334:
--

FAILURE: Integrated in Jenkins build AvroJava #614 (See 
[https://builds.apache.org/job/AvroJava/614/])
AVRO-2334: Update Docs to Reference Java 8 API (#469) (nandorkollar: 
[https://github.com/apache/avro/commit/02e08dafd35b31e9e596564b0996dc63bd2fb1ed])
* (edit) lang/java/pom.xml


> Update Docs to Reference Java 8 API
> ---
>
> Key: AVRO-2334
> URL: https://issues.apache.org/jira/browse/AVRO-2334
> Project: Apache Avro
>  Issue Type: Improvement
>  Components: java
>Reporter: David Mollitor
>Assignee: David Mollitor
>Priority: Trivial
> Fix For: 1.9.0
>
>
> https://github.com/apache/avro/blob/master/lang/java/pom.xml#L113-L114
>  
> [https://github.com/apache/avro/blob/master/lang/java/pom.xml#L193]
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


Build failed in Jenkins: AvroJava #614

2019-03-07 Thread Apache Jenkins Server
See 

Changes:

[nandorKollar] AVRO-2334: Update Docs to Reference Java 8 API (#469)

--
[...truncated 223.38 KB...]
[INFO] Running org.apache.avro.tool.TestRpcReceiveAndSendTools
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.719 s 
- in org.apache.avro.tool.TestRpcReceiveAndSendTools
[INFO] Running org.apache.avro.tool.TestDataFileRepairTool
[INFO] Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.199 s 
- in org.apache.avro.tool.TestDataFileRepairTool
[INFO] Running org.apache.avro.tool.TestRecodecTool
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.414 s 
- in org.apache.avro.tool.TestRecodecTool
[INFO] Running org.apache.avro.tool.TestIdlToSchemataTool
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.267 s 
- in org.apache.avro.tool.TestIdlToSchemataTool
[INFO] Running org.apache.avro.tool.TestSpecificCompilerTool
[ERROR] Tests run: 4, Failures: 4, Errors: 0, Skipped: 0, Time elapsed: 0.864 s 
<<< FAILURE! - in org.apache.avro.tool.TestSpecificCompilerTool
[ERROR] 
testCompileSchemaTwoFiles(org.apache.avro.tool.TestSpecificCompilerTool)  Time 
elapsed: 0.677 s  <<< FAILURE!
org.junit.ComparisonFailure: Found file: 
target/compiler/output/avro/examples/baseball/Position.java does not match 
expected file: src/test/compiler/output/Position.java expected:<...ublic enum 
Position [implements org.apache.avro.generic.GenericEnumSymbol {  P, 
C, B1, B2, B3, SS, LF, CF, RF, DH  ;  public static final 
org.apache.avro.Schema SCHEMA$ = new 
org.apache.avro.Schema.Parser().parse("{\"type\":\"enum\",\"name\":\"Position\",\"namespace\":\"avro.examples.baseball\",\"symbols\":[\"P\",\"C\",\"B1\",\"B2\",\"B3\",\"SS\",\"LF\",\"CF\",\"RF\",\"DH\"]}");
  public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; }  
public org.apache.avro.Schema get]Schema() { return SC...> but was:<...ublic 
enum Position [{  P, C, B1, B2, B3, SS, LF, CF, RF, DH  ;  public static final 
org.apache.avro.Schema SCHEMA$ = new 
org.apache.avro.Schema.Parser().parse("{\"type\":\"enum\",\"name\":\"Position\",\"namespace\":\"avro.examples.baseball\",\"symbols\":[\"P\",\"C\",\"B1\",\"B2\",\"B3\",\"SS\",\"LF\",\"CF\",\"RF\",\"DH\"]}");
  public static org.apache.avro.Schema getClass]Schema() { return SC...>
at org.junit.Assert.assertEquals(Assert.java:115)
at 
org.apache.avro.tool.TestSpecificCompilerTool.assertFileMatch(TestSpecificCompilerTool.java:140)
at 
org.apache.avro.tool.TestSpecificCompilerTool.testCompileSchemaTwoFiles(TestSpecificCompilerTool.java:97)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at 
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
at 
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at 
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
at 
org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at 
org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
at 
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
at 
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
at org.junit.runners.Suite.runChild(Suite.java:128)
at org.junit.runners.Suite.runChild(Suite.java:27)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55)
at 
org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137)
at 

[jira] [Resolved] (AVRO-2334) Update Docs to Reference Java 8 API

2019-03-07 Thread Nandor Kollar (JIRA)


 [ 
https://issues.apache.org/jira/browse/AVRO-2334?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Nandor Kollar resolved AVRO-2334.
-
   Resolution: Fixed
Fix Version/s: 1.9.0

> Update Docs to Reference Java 8 API
> ---
>
> Key: AVRO-2334
> URL: https://issues.apache.org/jira/browse/AVRO-2334
> Project: Apache Avro
>  Issue Type: Improvement
>  Components: java
>Reporter: David Mollitor
>Assignee: David Mollitor
>Priority: Trivial
> Fix For: 1.9.0
>
>
> https://github.com/apache/avro/blob/master/lang/java/pom.xml#L113-L114
>  
> [https://github.com/apache/avro/blob/master/lang/java/pom.xml#L193]
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (AVRO-2334) Update Docs to Reference Java 8 API

2019-03-07 Thread ASF subversion and git services (JIRA)


[ 
https://issues.apache.org/jira/browse/AVRO-2334?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16786500#comment-16786500
 ] 

ASF subversion and git services commented on AVRO-2334:
---

Commit 02e08dafd35b31e9e596564b0996dc63bd2fb1ed in avro's branch 
refs/heads/master from BELUGABEHR
[ https://gitbox.apache.org/repos/asf?p=avro.git;h=02e08da ]

AVRO-2334: Update Docs to Reference Java 8 API (#469)



> Update Docs to Reference Java 8 API
> ---
>
> Key: AVRO-2334
> URL: https://issues.apache.org/jira/browse/AVRO-2334
> Project: Apache Avro
>  Issue Type: Improvement
>  Components: java
>Reporter: David Mollitor
>Assignee: David Mollitor
>Priority: Trivial
>
> https://github.com/apache/avro/blob/master/lang/java/pom.xml#L113-L114
>  
> [https://github.com/apache/avro/blob/master/lang/java/pom.xml#L193]
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)