Changes

Summary

  1. - Increase the time-thresholds for the download of files. (commit: 02c80ad) (details)
  2. Fix an issue which may cause the "numOfDocFile" to have the wrong value, in case there was an error acquiring the inputStream or the md5-messageDigest in "FileUtils.storeDocFileWithNumberName()". (commit: 7b95b5a) (details)
  3. - Add check for duplicate docFiles, using a quick lookup of their md5Hash and delete them to save space. Point the new records to the location of the first-downloaded file. Duplicate files may appear in case either two different docOrDatasetUrls point to the same file, or the same docOrDatasetUrl is processed simultaneously by multiple threads. (commit: 1ee72ea) (details)
  4. - Add missing changes. (commit: a6ed863) (details)
  5. Guarantee that the initial records to which future ones point to, have their files successfully downloaded. (commit: cf24ef4) (details)
  6. - Add check for duplicate HTML-files. (commit: 68a9fcf) (details)
  7. - Optimize the pageMimetype-checks by using a regex, which can easily be expanded in the future. (commit: 2cf85a8) (details)
  8. - Improve dataset-mimetype detection by using the new "DATASET_MIME_TYPE"-regex. (commit: a34b8c9) (details)
Commit 02c80ad0bab288bdc55dd1b127e0597f4d0cfbbd by Lampros Smyrnaios
- Increase the time-thresholds for the download of files.
- Check for and delete leftover files in any failure during the individual file-download process. Also, improve the error-handling around it.
- Show the size (in MB) of the files that failed to be downloaded in the given time-thresholds.
- Code polishing.
(commit: 02c80ad)
The file was modifiedsrc/main/java/eu/openaire/publications_retriever/util/file/FileUtils.java (diff)
Commit 7b95b5a7b733bd3fb1ea9412b2d82d5df0fe51d3 by Lampros Smyrnaios
Fix an issue which may cause the "numOfDocFile" to have the wrong value, in case there was an error acquiring the inputStream or the md5-messageDigest in "FileUtils.storeDocFileWithNumberName()".
(commit: 7b95b5a)
The file was modifiedsrc/main/java/eu/openaire/publications_retriever/util/file/FileUtils.java (diff)
Commit 1ee72eaec900039527ad3897165a16f7d1652a2a by Lampros Smyrnaios
- Add check for duplicate docFiles, using a quick lookup of their md5Hash and delete them to save space. Point the new records to the location of the first-downloaded file. Duplicate files may appear in case either two different docOrDatasetUrls point to the same file, or the same docOrDatasetUrl is processed simultaneously by multiple threads.
- Move the clearing of "UrlUtils.docOrDatasetUrlsWithIDs" structure from "GenericUtils.clearBlockingData()" to "GenericUtils.clearTrackingData()".
(commit: 1ee72ea)
The file was modifiedsrc/main/java/eu/openaire/publications_retriever/util/url/GenericUtils.java (diff)
The file was modifiedsrc/main/java/eu/openaire/publications_retriever/util/http/ConnSupportUtils.java (diff)
Commit a6ed8632800e516b6c862e42312ddb88bd6041c2 by Lampros Smyrnaios
- Add missing changes.
- Enable the clearing of the "ConnSupportUtils.domainsWithConnectionData" data-structure in "GenericUtils.clearTrackingData()".
(commit: a6ed863)
The file was modifiedsrc/main/java/eu/openaire/publications_retriever/util/http/ConnSupportUtils.java (diff)
The file was modifiedsrc/main/java/eu/openaire/publications_retriever/util/url/UrlUtils.java (diff)
The file was modifiedsrc/main/java/eu/openaire/publications_retriever/util/url/GenericUtils.java (diff)
Commit cf24ef4059d064aa1646bdcb1031fc18022c00a0 by Lampros Smyrnaios
Guarantee that the initial records to which future ones point to, have their files successfully downloaded.
Before, it could be the case that a record pointed to an initial record (with the same resultUrl), which had failed to download its file (due to en error or timeout), thus causing to not retry that download and, also, other issues downstream.
(commit: cf24ef4)
The file was modifiedsrc/test/java/eu/openaire/publications_retriever/test/UrlChecker.java (diff)
The file was modifiedsrc/main/java/eu/openaire/publications_retriever/util/http/HttpConnUtils.java (diff)
The file was modifiedsrc/main/java/eu/openaire/publications_retriever/crawler/PageCrawler.java (diff)
The file was modifiedsrc/main/java/eu/openaire/publications_retriever/util/url/LoaderAndChecker.java (diff)
The file was modifiedsrc/main/java/eu/openaire/publications_retriever/util/url/GenericUtils.java (diff)
The file was modifiedsrc/main/java/eu/openaire/publications_retriever/crawler/MetadataHandler.java (diff)
The file was modifiedsrc/main/java/eu/openaire/publications_retriever/crawler/MachineLearning.java (diff)
The file was modifiedsrc/main/java/eu/openaire/publications_retriever/util/url/UrlUtils.java (diff)
The file was modifiedsrc/main/java/eu/openaire/publications_retriever/crawler/SpecialUrlsHandler.java (diff)
Commit 68a9fcf79549ed141e0f3b797c0a52d457da57a3 by Lampros Smyrnaios
- Add check for duplicate HTML-files.
- Move the "checkAndHandleDuplicateHash" code to its own method to be used by all kind of file-types.
- Show the associated ID of the visited page, in the logs.
- Update README with memory-cleanup information.
(commit: 68a9fcf)
The file was modifiedsrc/main/java/eu/openaire/publications_retriever/util/http/ConnSupportUtils.java (diff)
The file was modifiedsrc/main/java/eu/openaire/publications_retriever/crawler/PageCrawler.java (diff)
The file was modifiedREADME.md (diff)
Commit 2cf85a8d2fd7e712e878ea1c64aecb0862c1c8a1 by Lampros Smyrnaios
- Optimize the pageMimetype-checks by using a regex, which can easily be expanded in the future.
- Code polishing.
(commit: 2cf85a8)
The file was modifiedsrc/main/java/eu/openaire/publications_retriever/util/http/HttpConnUtils.java (diff)
Commit a34b8c9df15a6404d695a1f8678aee0bc52fd684 by Lampros Smyrnaios
- Improve dataset-mimetype detection by using the new "DATASET_MIME_TYPE"-regex.
- Update the "PAGE_MIMETYPE_RULES"-regex by a) expanding it to detect more dataset-mimetypes and block visiting the page and b) checking the mimetype's length to make sure there are no performance degradations from invalid input.
- Optimize mimetype checks by checking user's datatype-preference before proceeding with string-checks.
- Code polishing.
(commit: a34b8c9)
The file was modifiedsrc/main/java/eu/openaire/publications_retriever/util/http/ConnSupportUtils.java (diff)
The file was modifiedsrc/main/java/eu/openaire/publications_retriever/util/url/LoaderAndChecker.java (diff)
The file was modifiedsrc/main/java/eu/openaire/publications_retriever/crawler/PageCrawler.java (diff)
The file was modifiedsrc/main/java/eu/openaire/publications_retriever/util/args/ArgsUtils.java (diff)
The file was modifiedsrc/test/java/eu/openaire/publications_retriever/test/LinkExtraction.java (diff)
The file was modifiedsrc/main/java/eu/openaire/publications_retriever/util/url/UrlTypeChecker.java (diff)
The file was modifiedsrc/test/java/eu/openaire/publications_retriever/test/UrlChecker.java (diff)
The file was modifiedsrc/main/java/eu/openaire/publications_retriever/util/http/HttpConnUtils.java (diff)
The file was modifiedsrc/main/java/eu/openaire/publications_retriever/crawler/MetadataHandler.java (diff)