[ https://issues.apache.org/jira/browse/MAPREDUCE-1443?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Aaron Kimball updated MAPREDUCE-1443: ------------------------------------- Attachment: MAPREDUCE-1443.patch This patch refactors some internals of DBInputFormat so that both DBInputFormat and DataDrivenDBInputFormat can close connections opened in the {{getSplits()}} call. This patch does not include explicit tests. I used Oracle and MySQL administration tools to verify that connections are closed in a timely fashion and that open connections do not accrue over time, as they previously did. > DBInputFormat can leak connections > ---------------------------------- > > Key: MAPREDUCE-1443 > URL: https://issues.apache.org/jira/browse/MAPREDUCE-1443 > Project: Hadoop Map/Reduce > Issue Type: Bug > Components: client > Reporter: Aaron Kimball > Assignee: Aaron Kimball > Attachments: MAPREDUCE-1443.patch > > > The DBInputFormat creates a Connection to use when enumerating splits, but > never closes it. This can leak connections to the database which are not > cleaned up for a long time. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.