This is an automated email from the ASF dual-hosted git repository.
snagel pushed a commit to branch 2.x
in repository https://gitbox.apache.org/repos/asf/nutch.git
The following commit(s) were added to refs/heads/2.x by this push:
new 9f19225 fix for NUTCH-2269 contributed by r0ann3l
9f19225 is described below
commit 9f19225c085ea29b85a73662db6ef8a2d0a6dc0f
Author: r0ann3l <gitRoann3l;fhdez>
AuthorDate: Tue Nov 1 22:24:46 2016 -0400
fix for NUTCH-2269 contributed by r0ann3l
---
src/java/org/apache/nutch/indexer/CleaningJob.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/java/org/apache/nutch/indexer/CleaningJob.java
b/src/java/org/apache/nutch/indexer/CleaningJob.java
index 70c3b24..eaa8420 100644
--- a/src/java/org/apache/nutch/indexer/CleaningJob.java
+++ b/src/java/org/apache/nutch/indexer/CleaningJob.java
@@ -125,10 +125,10 @@ public class CleaningJob extends NutchTool implements
Tool {
@Override
public void cleanup(Context context) throws IOException {
- writers.close();
if (numDeletes > 0 && commit) {
writers.commit();
}
+ writers.close();
LOG.info("CleaningJob: deleted a total of " + numDeletes + " documents");
}
}
--
To stop receiving notification emails like this one, please contact
['"[email protected]" <[email protected]>'].