This is an automated email from the ASF dual-hosted git repository.

opwvhk pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/avro.git


The following commit(s) were added to refs/heads/main by this push:
     new a4a4d2413a AVRO-3230: enable fastread by default (#1363)
a4a4d2413a is described below

commit a4a4d2413a6b9ecd072941f52439e7bbd0a92bbb
Author: Martin Jubelgas <[email protected]>
AuthorDate: Fri May 30 10:20:04 2025 +0200

    AVRO-3230: enable fastread by default (#1363)
---
 lang/java/avro/pom.xml                                                | 4 ++--
 lang/java/avro/src/main/java/org/apache/avro/generic/GenericData.java | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/lang/java/avro/pom.xml b/lang/java/avro/pom.xml
index b74bef66fa..ea37e07eb4 100644
--- a/lang/java/avro/pom.xml
+++ b/lang/java/avro/pom.xml
@@ -108,14 +108,14 @@
             </configuration>
           </execution>
           <execution>
-            <id>test-with-fast-reader</id>
+            <id>test-without-fast-reader</id>
             <phase>test</phase>
             <goals>
               <goal>test</goal>
             </goals>
             <configuration>
               <systemPropertyVariables>
-                <org.apache.avro.fastread>true</org.apache.avro.fastread>
+                <org.apache.avro.fastread>false</org.apache.avro.fastread>
               </systemPropertyVariables>
             </configuration>
           </execution>
diff --git 
a/lang/java/avro/src/main/java/org/apache/avro/generic/GenericData.java 
b/lang/java/avro/src/main/java/org/apache/avro/generic/GenericData.java
index a9189a0bbf..e85931e699 100644
--- a/lang/java/avro/src/main/java/org/apache/avro/generic/GenericData.java
+++ b/lang/java/avro/src/main/java/org/apache/avro/generic/GenericData.java
@@ -207,7 +207,7 @@ public class GenericData {
   }
 
   public static final String FAST_READER_PROP = "org.apache.avro.fastread";
-  private boolean fastReaderEnabled = 
"true".equalsIgnoreCase(System.getProperty(FAST_READER_PROP));
+  private boolean fastReaderEnabled = 
"true".equalsIgnoreCase(System.getProperty(FAST_READER_PROP, "true"));
   private FastReaderBuilder fastReaderBuilder = null;
 
   public GenericData setFastReaderEnabled(boolean flag) {

Reply via email to