Skip to content

Commit

Permalink
Merge pull request apache#8565 from iemejia/beam-master
Browse files Browse the repository at this point in the history
[BEAM-7239] Do not close DataSource on Teardown on JdbcIO
  • Loading branch information
jbonofre authored May 14, 2019
2 parents b0b2ac2 + c03bbec commit 5c7ee60
Showing 1 changed file with 0 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -769,9 +769,6 @@ public void processElement(ProcessContext context) throws Exception {
@Teardown
public void teardown() throws Exception {
connection.close();
if (dataSource instanceof AutoCloseable) {
((AutoCloseable) dataSource).close();
}
}
}

Expand Down Expand Up @@ -1075,13 +1072,6 @@ private void executeBatch() throws SQLException, IOException, InterruptedExcepti
}
records.clear();
}

@Teardown
public void teardown() throws Exception {
if (dataSource instanceof AutoCloseable) {
((AutoCloseable) dataSource).close();
}
}
}
}

Expand Down

0 comments on commit 5c7ee60

Please sign in to comment.