beam-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <>
Subject [jira] [Work logged] (BEAM-5036) Optimize FileBasedSink's WriteOperation.moveToOutput()
Date Thu, 20 Sep 2018 03:10:00 GMT


ASF GitHub Bot logged work on BEAM-5036:

                Author: ASF GitHub Bot
            Created on: 20/Sep/18 03:09
            Start Date: 20/Sep/18 03:09
    Worklog Time Spent: 10m 
      Work Description: reuvenlax commented on issue #6289: [BEAM-5036] Optimize the FileBasedSink
   The main point is that the usage by sinks needs to be idempotent on retry.
   Whether that's done by the FileSystem interface skipping existing files or
   by catching those exceptions and ignoring them (as long as we can well
   distinguish those exceptions) doesn't matter too much.
   On Wed, Sep 19, 2018 at 7:53 PM Chamikara Jayalath <>
   > +1 for adding an OVERWRITE_EXISTING_FILES option to FileSystems interface
   > to make this explicit.
   > I think FileSystems is the place where we should try to enforce an easy to
   > use API that is consistent across file-system implementations of Beam. For
   > example rename with OVERWRITE_EXISTING_FILES should work for renaming using
   > a loop as Luke mentioned.
   > I expect FileSystem interface to be flexible and to be somewhat file
   > system dependent. This will make the life easy for people who want to add
   > support for new file systems.
   > Seems like Java File API allows similar flexibility across platforms. For
   > example,
   > "Many aspects of the behavior of this method are inherently
   > platform-dependent"
   > —
   > You are receiving this because you were mentioned.
   > Reply to this email directly, view it on GitHub
   > <>, or mute
   > the thread
   > <>
   > .

This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:

Issue Time Tracking

    Worklog Id:     (was: 145916)
    Time Spent: 2h 50m  (was: 2h 40m)

> Optimize FileBasedSink's WriteOperation.moveToOutput()
> ------------------------------------------------------
>                 Key: BEAM-5036
>                 URL:
>             Project: Beam
>          Issue Type: Improvement
>          Components: io-java-files
>    Affects Versions: 2.5.0
>            Reporter: Jozef Vilcek
>            Assignee: Tim Robertson
>            Priority: Major
>          Time Spent: 2h 50m
>  Remaining Estimate: 0h
> moveToOutput() methods in FileBasedSink.WriteOperation implements move by copy+delete.
It would be better to use a rename() which can be much more effective for some filesystems.
> Filesystem must support cross-directory rename. BEAM-4861 is related to this for the
case of HDFS filesystem.
> Feature was discussed here:

This message was sent by Atlassian JIRA

View raw message