You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by "Daniel Halperin (JIRA)" <ji...@apache.org> on 2017/05/18 20:02:04 UTC

[jira] [Commented] (BEAM-1016) Use Content-Type and Content-Encoding (as opposed to overriding Content-Type) for compressed files

    [ 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)