[
https://issues.apache.org/jira/browse/SQOOP-1622?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14218723#comment-14218723
]
Masatake Iwasaki commented on SQOOP-1622:
-----------------------------------------
[~jarcec], users can choose atomic or parallel by setting the number of
reducers. This is by design. The patch fixes the bug that transaction was not
single even if users set the number of reducers to 1 because transaction was
not per reduce task but per reduce method.
> Copying from staging table should be in single transaction for pg_bulkload
> connector
> ------------------------------------------------------------------------------------
>
> Key: SQOOP-1622
> URL: https://issues.apache.org/jira/browse/SQOOP-1622
> Project: Sqoop
> Issue Type: Improvement
> Components: connectors/postgresql
> Affects Versions: 1.4.5
> Reporter: Masatake Iwasaki
> Assignee: Masatake Iwasaki
> Attachments: SQOOP-1622.2.patch
>
>
> PGBulkloadExportReducer#reduce may be called per map task because the map
> output key is unique ID of map task. Each reduce tasks should do copying from
> staging table in single transaction.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)