[ 
https://issues.apache.org/jira/browse/MAPREDUCE-840?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Aaron Kimball updated MAPREDUCE-840:
------------------------------------

    Attachment: MAPREDUCE-840.patch

Attaching trivial patch for this issue. No new tests because I've only seen 
this issue manifest in interacting with postgresql. I've verified that with 
this fix in place, it works with postgresql. The TestDBJob unit test also works.

> DBInputFormat leaves open transaction
> -------------------------------------
>
>                 Key: MAPREDUCE-840
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-840
>             Project: Hadoop Map/Reduce
>          Issue Type: Bug
>            Reporter: Aaron Kimball
>            Assignee: Aaron Kimball
>            Priority: Minor
>         Attachments: MAPREDUCE-840.patch
>
>
> DBInputFormat.getSplits() does not connection.commit() after the COUNT query. 
> This can leave an open transaction against the database which interferes with 
> other connections to the same table.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to