You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mapreduce-issues@hadoop.apache.org by "Saurabh (JIRA)" <ji...@apache.org> on 2018/11/28 22:34:00 UTC

[jira] [Created] (MAPREDUCE-7167) Extra LF ("\n") pushed directly to storage

Saurabh created MAPREDUCE-7167:
----------------------------------

             Summary: Extra LF ("\n") pushed directly to storage
                 Key: MAPREDUCE-7167
                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-7167
             Project: Hadoop Map/Reduce
          Issue Type: Bug
    Affects Versions: 3.2.0
            Reporter: Saurabh
             Fix For: 3.1.2, 3.3.0, 3.2.1
         Attachments: patch1128.patch

JsonEncoder already adds the necessary newline after writing each object as per this[link title|[https://github.com/apache/avro/blob/39ec1a3f0addfce06869f705f7a17c03d538fe16/lang/java/avro/src/main/java/org/apache/avro/io/JsonEncoder.java#L77],] so this patch removes the "out.writeBytes("\n");". As the encoder is buffered, this can cause JSON errors in the output stream by directly writing to it.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: mapreduce-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: mapreduce-issues-help@hadoop.apache.org