Commit Graph
1970 Commits
Author SHA1 Message Date
Noah Levitt 6bee1cbb6f Merge branch 'hbase-refactor' into ait-qa
* hbase-refactor:
  use non-deprecated hbase api
  Correct spelling mistakes.
  Note feature only applies to forthcoming 3.3 release
  Update API with note about checkpoint launching.
  Default to starting anew if no checkpoints are found.
  Provide a simple hook to restart from the latest checkpoint.
  Move sync to after Null check.
  Attempt to cache dependencies.
  Simplify contrib build.
  Attempt to prevent build time-outs.
  Add synchronisation around host and server stats.
  Avoid overdoing the RAM allocation.
  Ensure all WorkQueue modification as serialised across threads.
  Tests now need more RAM.
  fix exception starting DecideRuleSequence logging
  Fix up tests to account for new Base URI behaviour.
  Only set the BaseURI if not set already.
  Same fix for JerichoExtractorHTML.
  Test case and fix for internetarchive/heritrix3#208.
  Fix link to User Guide
  Fix typos
  Replace API response section with statuscode tag
  Reformat the rest of the API calls
  Add actions to API URLs to distinguish them
  Add explanatory note about documentation
  Try nicer formatting for the first API example
  Format HTTP request lines in API guide
  Move conventions and REST section to the end of the document
  Convert html tables to rst tables
  Add skeleton sphinx docs for readthedocs
  Point at GitHub wiki for latest release info
  Add parameter to allow even distribution for parallel queues.
2018-11-09 15:41:05 -08:00
Noah Levitt 8bda0d4cf0 use non-deprecated hbase api
Catch exceptions and attempt to reset the hbase connection. The intent
is for this to fix the problem where the hbase connection (under the
hood the problem is the zookeeper connection) gets into a borked state,
and we never reset it.
2018-11-09 15:28:17 -08:00
Edward Betts aa705bef2e Correct spelling mistakes. 2018-11-04 19:49:37 +09:00
Andy Jackson e08d3ad45d Note feature only applies to forthcoming 3.3 release 2018-11-03 09:30:32 +00:00
Andrew Jackson 3a299d7899 Update API with note about checkpoint launching. 2018-11-01 20:20:17 +09:00
Noah Levitt 9bad8a11ae Merge pull request #215 from ukwa/use-latest-checkpoint
Extend API to simplify using the latest checkpoint
2018-10-31 16:27:30 -07:00
Andrew Jackson 0aa20a9a68 Merge branch 'master' into use-latest-checkpoint 2018-10-12 12:51:06 +01:00
Andy Jackson a81a648996 Merge pull request #213 from ukwa/frontier-threadsafe-workqueues
Ensure frontier work queues are updated safely across threads.
2018-10-12 12:48:33 +01:00
Andrew Jackson 59ee9b2adc Default to starting anew if no checkpoints are found. 2018-10-09 10:28:34 +01:00
Andrew Jackson 3b341f79df Provide a simple hook to restart from the latest checkpoint. 2018-10-08 14:26:04 +01:00
Andrew Jackson fca796265d Move sync to after Null check. 2018-09-17 15:25:45 +01:00
Andrew Jackson e4973e4375 Attempt to cache dependencies. 2018-09-16 16:15:02 +01:00
Andrew Jackson 8ffd2c2813 Simplify contrib build. 2018-09-14 17:03:25 +01:00
Andrew Jackson 2330641931 Attempt to prevent build time-outs. 2018-09-14 15:57:50 +01:00
Andrew Jackson 09a272088e Add synchronisation around host and server stats. 2018-09-13 16:37:18 +01:00
Andrew Jackson 55dbe5a25d Avoid overdoing the RAM allocation. 2018-09-13 16:36:58 +01:00
Andrew Jackson a2af528501 Ensure all WorkQueue modification as serialised across threads. 2018-09-13 13:45:10 +01:00
Andrew Jackson 992a51aa57 Tests now need more RAM. 2018-09-13 13:44:40 +01:00
Noah Levitt a831676196 Merge pull request #209 from ukwa/relative-base-href
HtmlExtractor: allow relative hrefs in the base element
2018-09-11 15:18:48 -07:00
Noah Levitt 9c9d11d272 fix exception starting DecideRuleSequence logging
I don't know why we've never seen this before, and now we suddenly have
a case of it, but this is the exception:

2018-07-23 17:47:01.123 SEVERE thread-2875088 org.archive.crawler.framework.CrawlJob.beansException() Failed to start bean 'scope'; nested exception is java.lang.IllegalStateException: java.nio.file.NoSuchFileException: /1/ait-h3-jobs/8144-20180723162745141/20180723174701/logs/scope.log.lck
org.springframework.context.ApplicationContextException: Failed to start bean 'scope'; nested exception is java.lang.IllegalStateException: java.nio.file.NoSuchFileException: /1/ait-h3-jobs/8144-20180723162745141/20180723174701/logs/scope.log.lck
        at org.springframework.context.support.DefaultLifecycleProcessor.doStart(DefaultLifecycleProcessor.java:169)
        at org.springframework.context.support.DefaultLifecycleProcessor.access$1(DefaultLifecycleProcessor.java:154)
        at org.springframework.context.support.DefaultLifecycleProcessor$LifecycleGroup.start(DefaultLifecycleProcessor.java:335)
        at org.springframework.context.support.DefaultLifecycleProcessor.startBeans(DefaultLifecycleProcessor.java:143)
        at org.springframework.context.support.DefaultLifecycleProcessor.start(DefaultLifecycleProcessor.java:89)
        at org.springframework.context.support.AbstractApplicationContext.start(AbstractApplicationContext.java:1236)
        at org.archive.spring.PathSharingContext.start(PathSharingContext.java:115)
        at org.archive.crawler.framework.CrawlJob.startContext(CrawlJob.java:455)
        at org.archive.crawler.framework.CrawlJob$1.run(CrawlJob.java:428)
Caused by: java.lang.IllegalStateException: java.nio.file.NoSuchFileException: /1/ait-h3-jobs/8144-20180723162745141/20180723174701/logs/scope.log.lck
        at org.archive.crawler.reporting.CrawlerLoggerModule.setupSimpleLog(CrawlerLoggerModule.java:298)
        at org.archive.modules.deciderules.DecideRuleSequence.start(DecideRuleSequence.java:174)
        at org.springframework.context.support.DefaultLifecycleProcessor.doStart(DefaultLifecycleProcessor.java:166)
        ... 8 more
Caused by: java.nio.file.NoSuchFileException: /1/ait-h3-jobs/8144-20180723162745141/20180723174701/logs/scope.log.lck
        at sun.nio.fs.UnixException.translateToIOException(UnixException.java:86)
        at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
        at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
        at sun.nio.fs.UnixFileSystemProvider.newFileChannel(UnixFileSystemProvider.java:177)
        at java.nio.channels.FileChannel.open(FileChannel.java:287)
        at java.nio.channels.FileChannel.open(FileChannel.java:335)
        at java.util.logging.FileHandler.openFiles(FileHandler.java:478)
        at java.util.logging.FileHandler.<init>(FileHandler.java:344)
        at org.archive.io.GenerationFileHandler.<init>(GenerationFileHandler.java:63)
        at org.archive.io.GenerationFileHandler.makeNew(GenerationFileHandler.java:158)
        at org.archive.crawler.reporting.CrawlerLoggerModule.setupLogFile(CrawlerLoggerModule.java:275)
        at org.archive.crawler.reporting.CrawlerLoggerModule.setupSimpleLog(CrawlerLoggerModule.java:296)
        ... 10 more
2018-07-27 09:49:17 +09:00
Andrew Jackson 8384a59b47 Fix up tests to account for new Base URI behaviour. 2018-07-06 15:15:53 +01:00
Andrew Jackson 8bf23081fa Only set the BaseURI if not set already. 2018-07-05 13:34:17 +01:00
Andrew Jackson 14148cc7a8 Same fix for JerichoExtractorHTML. 2018-07-05 09:40:21 +01:00
Andrew Jackson 42181b8585 Test case and fix for internetarchive/heritrix3#208. 2018-07-04 16:18:46 +01:00
Maurice Schleußinger 48908ee5b4 Fix link to User Guide 2018-07-04 22:53:43 +09:00
Alex Osborne da9fcf1af6 Fix typos 2018-07-04 22:22:15 +09:00
Alex Osborne 2d48b40ea4 Replace API response section with statuscode tag 2018-07-04 21:46:42 +09:00
Alex Osborne 0cfd62f76e Reformat the rest of the API calls 2018-07-04 21:43:57 +09:00
Alex Osborne 3b3d579cb8 Add actions to API URLs to distinguish them 2018-07-04 21:16:53 +09:00
Alex Osborne 1ff31c135e Add explanatory note about documentation 2018-07-04 19:48:33 +09:00
Alex Osborne 7076dd6388 Try nicer formatting for the first API example 2018-07-04 18:46:15 +09:00
Alex Osborne ab8a5efea2 Format HTTP request lines in API guide 2018-07-04 18:24:08 +09:00
Alex Osborne e35eb9e850 Move conventions and REST section to the end of the document
Let's dive right into the API. Chances are anyone who wants to use
the REST API already knows what it is. :-)
2018-07-04 17:53:05 +09:00
Alex Osborne 57f465706e Convert html tables to rst tables 2018-07-04 17:34:19 +09:00
Alex Osborne 90db2e33d5 Add skeleton sphinx docs for readthedocs 2018-07-04 16:40:51 +09:00
Kristinn Sigurðsson 05811705ed Point at GitHub wiki for latest release info 2018-05-29 09:42:24 +00:00
Noah Levitt 7308911807 Merge pull request #205 from adam-miller/ParallelQueueRandomAssignment
Add parameter to allow even distribution for parallel queues.
2018-05-10 15:18:11 -07:00
Adam Miller bee53de8b1 Add parameter to allow even distribution for parallel queues. 2018-05-10 21:34:02 +00:00
Barbara Miller 40bfe9f79f Merge pull request #197 from nlevitt/ari-5630
catch exceptions scoping outlinks to stop them from derailing process…
2018-01-24 16:31:33 -08:00
Noah Levitt 74c48659b8 Merge branch 'ari-5630' into ait-qa
* ari-5630:
  catch exceptions scoping outlinks to stop them from derailing processing of the parent url
  fix for test failures in a workspace on NFS-mounted filesystem
  max size for extracted form elements
2018-01-16 17:13:04 -08:00
Noah Levitt 95759149ae catch exceptions scoping outlinks to stop them from derailing processing of the parent url 2018-01-16 17:12:24 -08:00
Noah Levitt 5a0326eba1 Merge pull request #196 from kngenie/fix-test-failures-with-bdb
fix for test failures in a workspace on NFS-mounted filesystem
2017-12-12 14:20:55 -08:00
Kenji Nagahashi a7b7c6cf5a fix for test failures in a workspace on NFS-mounted filesystem
ContentDigestHistoryTest does not close BdbModule. It results in failure to delete bdb directory in following tests.
Added tearDown() method that closes BdbModule.
2017-12-08 17:15:03 -08:00
Noah Levitt 76bf98a4f0 Merge pull request #194 from internetarchive/formsMaxSize
limit max size of form input
2017-11-16 11:24:20 -08:00
Barbara Miller 998edf3479 max size for extracted form elements 2017-11-16 08:48:06 -08:00
Barbara Miller 9169eb831b Merge branch 'formsMaxSize' into ait-qa 2017-11-15 11:57:52 -08:00
Barbara Miller bac58e8ee6 hardcode 8{ 2017-11-15 11:57:18 -08:00
Barbara Miller 537f75de77 Merge branch 'formsMaxSize' into ait-qa 2017-11-15 08:49:52 -08:00
Barbara Miller a2f8557f45 maxSize for extracted form elements 2017-11-15 08:48:03 -08:00
Barbara Miller feaaf2c934 Merge branch 'formsMaxSize' into ait-qa 2017-11-13 21:40:47 -08:00