beam-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Halperin (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (BEAM-1016) Use Content-Type and Content-Encoding (as opposed to overriding Content-Type) for compressed files
Date Thu, 18 May 2017 20:02:04 GMT

    [ https://issues.apache.org/jira/browse/BEAM-1016?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16016365#comment-16016365
] 

Daniel Halperin commented on BEAM-1016:
---------------------------------------

This would actually be terrible, as when the files are compressed on GCS they can only be
read single-threadedly, an indeed GCS lies about their size which can cause data loss (it
says there are C bytes in the file, then they send you N >> C bytes).

> Use Content-Type and Content-Encoding (as opposed to overriding Content-Type) for compressed
files
> --------------------------------------------------------------------------------------------------
>
>                 Key: BEAM-1016
>                 URL: https://issues.apache.org/jira/browse/BEAM-1016
>             Project: Beam
>          Issue Type: New Feature
>          Components: sdk-java-gcp
>            Reporter: Konstantinos Katsiapis
>            Priority: Minor
>             Fix For: Not applicable
>
>
> Currently the Content-Type for compressed files overrides the original Content-Type.
> So
> Content-Type: text/plain
> becomes
> Content-Type: application/gzip
> We should instead consider keeping
> Content-Type: text/plain
> and adding
> Content-Encoding: gzip
> This will paly nice with Cloud Storage automatic transcoding:
> https://cloud.google.com/storage/docs/transcoding



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message