Skip to content

Commit

Permalink
FIxed a race condition on CopyDataPublisher.
Browse files Browse the repository at this point in the history
  • Loading branch information
ibuenros committed Jul 27, 2016
1 parent bf832dc commit 5854bc1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ protected DataWriter<FileAwareInputStream> buildWriter() throws IOException {
* contain job_id. This is to make sure uncleaned data from previous execution does not corrupt final published data
* produced by this execution.
*/
public static void setJobSpecificOutputPaths(State state) {
public synchronized static void setJobSpecificOutputPaths(State state) {

// Other tasks may have set this already
if (!StringUtils.containsIgnoreCase(state.getProp(ConfigurationKeys.WRITER_STAGING_DIR),
Expand Down

0 comments on commit 5854bc1

Please sign in to comment.