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/29 03:29:00 UTC
[jira] [Comment Edited] (MAPREDUCE-7167) Extra LF ("\n") pushed
directly to storage
[ https://issues.apache.org/jira/browse/MAPREDUCE-7167?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16702669#comment-16702669 ]
Saurabh edited comment on MAPREDUCE-7167 at 11/29/18 3:28 AM:
--------------------------------------------------------------
The test failing in https://issues.apache.org/jira/browse/MAPREDUCE-7162 were verified to be passing after the change.
!image-2018-11-28-19-23-52-972.png!
was (Author: saurabhpant):
The test failure reported by https://issues.apache.org/jira/browse/MAPREDUCE-7162 seems to be mitigated by this change.
!image-2018-11-28-19-23-52-972.png!
> 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
> Priority: Major
> Fix For: 3.1.2, 3.3.0, 3.2.1
>
> Attachments: image-2018-11-28-19-23-52-972.png, patch1128.patch, patch1128.patch, patch1128trunk.patch
>
>
> JsonEncoder already adds the necessary newline after writing each object as per [this| [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, the out.writeBytes can cause JSON errors in the output stream as it directly writes to the output stream, hence it must be removed.
--
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