ACCUMULO-2105 cannot close instance
Project: http://git-wip-us.apache.org/repos/asf/accumulo/repo Commit: http://git-wip-us.apache.org/repos/asf/accumulo/commit/379881e6 Tree: http://git-wip-us.apache.org/repos/asf/accumulo/tree/379881e6 Diff: http://git-wip-us.apache.org/repos/asf/accumulo/diff/379881e6 Branch: refs/heads/master Commit: 379881e69bd7e93f11cfa13b415afe14be8634f6 Parents: 5e24798 Author: Eric Newton <eric.new...@gmail.com> Authored: Mon Dec 30 16:24:43 2013 -0500 Committer: Eric Newton <eric.new...@gmail.com> Committed: Mon Dec 30 16:24:43 2013 -0500 ---------------------------------------------------------------------- .../core/client/mapreduce/lib/util/InputConfigurator.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/accumulo/blob/379881e6/core/src/main/java/org/apache/accumulo/core/client/mapreduce/lib/util/InputConfigurator.java ---------------------------------------------------------------------- diff --git a/core/src/main/java/org/apache/accumulo/core/client/mapreduce/lib/util/InputConfigurator.java b/core/src/main/java/org/apache/accumulo/core/client/mapreduce/lib/util/InputConfigurator.java index 7419d9b..9454d59 100644 --- a/core/src/main/java/org/apache/accumulo/core/client/mapreduce/lib/util/InputConfigurator.java +++ b/core/src/main/java/org/apache/accumulo/core/client/mapreduce/lib/util/InputConfigurator.java @@ -601,11 +601,7 @@ public class InputConfigurator extends ConfiguratorBase { if ("MockInstance".equals(instanceType)) return new MockTabletLocator(); Instance instance = getInstance(implementingClass, conf); - try { - return TabletLocator.getLocator(instance, new Text(tableId)); - } finally { - instance.close(); - } + return TabletLocator.getLocator(instance, new Text(tableId)); } // InputFormat doesn't have the equivalent of OutputFormat's checkOutputSpecs(JobContext job)