Luca Foppiano created NUTCH-3160:
------------------------------------

             Summary: Leftover System.exit(..) in CommonCrawlDataDumper
                 Key: NUTCH-3160
                 URL: https://issues.apache.org/jira/browse/NUTCH-3160
             Project: Nutch
          Issue Type: Bug
            Reporter: Luca Foppiano


Hi all, 

  this is my first issue here. 

Just a small leftover from NUTCH-2852

There is a `System.exit()` instead of a `return` in 
`CommonCrawlDataDumper.dump()`, this usually kills the test that is calling the 
method.

```

LinkDbReader linkDbReader = null;
    if (linkdb != null) {
      linkDbReader = new LinkDbReader(nutchConfig, new Path(linkdb.toString()));
    }
    if (parts == null || parts.size() == 0) {
      LOG.error( "No segment directories found in {} ",
          segmentRootDir.getAbsolutePath());
      System.exit(1);
    }
    LOG.info("Found {} segment parts", parts.size());
    if (gzip && !warc) {
      fileList = new ArrayList<>();
      constructNewStream(outputDir);
    }
```



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to