[ 
https://issues.apache.org/jira/browse/HADOOP-17945?focusedWorklogId=660963&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-660963
 ]

ASF GitHub Bot logged work on HADOOP-17945:
-------------------------------------------

                Author: ASF GitHub Bot
            Created on: 06/Oct/21 14:46
            Start Date: 06/Oct/21 14:46
    Worklog Time Spent: 10m 
      Work Description: steveloughran commented on a change in pull request 
#3501:
URL: https://github.com/apache/hadoop/pull/3501#discussion_r723354680



##########
File path: 
hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/util/TestJsonSerialization.java
##########
@@ -181,5 +197,23 @@ public void testFileSystemEmptyPath() throws Throwable {
     }
   }
 
+  /**
+   * 0 byte file through the load(path, status) API will fail with an

Review comment:
       probably




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Issue Time Tracking
-------------------

    Worklog Id:     (was: 660963)
    Time Spent: 1.5h  (was: 1h 20m)

> JsonSerialization raises EOFException reading JSON data stored on google GCS
> ----------------------------------------------------------------------------
>
>                 Key: HADOOP-17945
>                 URL: https://issues.apache.org/jira/browse/HADOOP-17945
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: fs
>    Affects Versions: 3.3.1
>            Reporter: Steve Loughran
>            Assignee: Steve Loughran
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 1.5h
>  Remaining Estimate: 0h
>
> The JsonSerialization<> load code doesn't work on gcs as it uses 
> "stream.available()" to fail with a meaningful message if the stream is empty.
> But that method is meant to say how much data is available without blocking, 
> something we actually get wrong ourselves. Google GCS team didn't get it 
> wrong, so on a read(), if there's no local buffer, an EOFException is raised



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to