Commit Graph
1976 Commits
Author SHA1 Message Date
Noah Levitt c596f49c8a use constant from rethinkdb lib for default port 2019-03-21 15:34:42 -07:00
Noah Levitt fd0e86cd64 less alarming logging for normal situation 2019-03-20 11:31:40 -07:00
Noah Levitt c4ec9d31fe make TroughCrawlLogFeed use TroughClient, and...
... configure using rethinkdb url and segment id, instead of write url,
which means it can work if the segment gets reassigned and so forth
***backward incompatible change***
2019-03-18 22:39:29 -07:00
Noah Levitt af1a325319 fix bugs around crawl finish
- make sure we "promote" segments (persist them to hdfs) after we're
  entirely finished writing to theme; in other words, when we reach the
  FINISH state, not while STOPPING
- shut down the promoter thread at crawl finish

plus a couple of tweaks and cleanups
2019-03-15 14:12:50 -07:00
Noah Levitt 7f7fb3cfe8 allow travis-ci jdk7 failures because contrib...
... needs java 8 now, and travis-ci builds contrib
2019-03-14 16:58:22 -07:00
Noah Levitt 82406f4028 promote dirty segments at crawl finish 2019-03-14 15:16:56 -07:00
Noah Levitt 1b89420f99 trough dedup! 2019-03-14 13:47:15 -07:00
Noah Levitt c40616e494 Merge pull request #235 from ukwa/retry-failed-dns
Allow failed lookups to expire, for #234.
2019-02-25 14:15:38 -08:00
Andrew Jackson 91b18e9bbd Allow failed lookups to expire, for #234. 2019-02-21 23:04:40 +00:00
Andrew Jackson ad9e74d8ad [maven-release-plugin] prepare for next development iteration 2019-02-07 13:52:56 +00:00
Andrew Jackson 83c7044b22 [maven-release-plugin] prepare release 3.4.0-20190207 3.4.0-20190207 2019-02-07 13:52:49 +00:00
Andy Jackson 18d3bb23aa Merge pull request #231 from ukwa/synchronized-enqueuecounts
Add synchronized statements for internetarchive/heritrix3#221.
2019-02-07 13:49:50 +00:00
Andy Jackson cb96a44bdc Merge pull request #230 from ukwa/more-robust-fetch-history-processor
Add checks to guard against server sending 304 in error
2019-02-07 13:49:23 +00:00
Andrew Jackson 667cf3ac5e As @nlevitt suggestion, a further check. 2019-02-06 21:03:49 +00:00
Andrew Jackson e8e37751bb Merge branch 'master' into more-robust-fetch-history-processor 2019-02-06 20:47:06 +00:00
Andrew Jackson 317b19e7e2 [maven-release-plugin] prepare for next development iteration 2019-02-05 12:33:08 +00:00
Andrew Jackson 9c7d0c299d [maven-release-plugin] prepare release 3.4.0-20190205 3.4.0-20190205 2019-02-05 12:32:57 +00:00
Andrew Jackson ab34a54566 [maven-release-plugin] prepare for next development iteration 2019-02-05 12:29:33 +00:00
Andrew Jackson d1fc5cedb4 [maven-release-plugin] prepare release 3.4.0-20190205-2 2019-02-05 12:29:26 +00:00
Andrew Jackson 096ba4e9c3 [maven-release-plugin] prepare for next development iteration 2019-02-05 12:15:26 +00:00
Andrew Jackson 24ef7eb9d0 Extend to set additional property. 2019-02-05 12:14:17 +00:00
Andrew Jackson 947bb39aff Use argument syntax. 2019-02-05 12:13:20 +00:00
Andrew Jackson 0e1a21c9d8 Skip tests during release process (covered by CI). 2019-02-05 12:11:29 +00:00
Andrew Jackson 765d607e5c Set consistent tag, and include contrib. 2019-02-05 11:57:23 +00:00
Andrew Jackson 24b72e07df Wrong repo spec. 2019-02-05 11:23:18 +00:00
Andrew Jackson fae30ed63c Add build profile for deployment to Maven Central. 2019-02-05 10:32:40 +00:00
Andrew Jackson 1cb399ec18 Avoid headings being treated as lists 2019-02-05 10:32:13 +00:00
Andy Jackson d0a146bc66 Clarification about APIs. 2019-02-05 10:28:18 +00:00
Andrew Jackson 021aeeaa20 Swapped original and link to make maintenance simpler. 2019-02-05 10:25:54 +00:00
Andrew Jackson b08db899dd Tidy up markup and links. 2019-02-05 10:23:01 +00:00
Andrew Jackson 3b435cb0a9 Add synchronized statements for internetarchive/heritrix3#221. 2019-02-04 10:41:40 +00:00
Andrew Jackson 949a350cd8 Add checks to guard against server sending 304 in error, for #229. 2019-02-04 10:26:12 +00:00
Barbara Miller e8aba660d8 Merge pull request #227 from nlevitt/dont-checkpoint-unstarted
do not checkpoint if crawl job has not started
2019-01-04 15:53:43 -08:00
Noah Levitt 01153b0311 do not checkpoint if crawl job has not started
Sometimes our crawl jobs get stuck in the NEW state (due to hbase
problems). But the checkpoint service has started and sees fit to
checkpoint every five minutes. Evidently, at this stage the seeds have
not been queued yet, the frontier is empty. Thus, if we try to resume
from one of these checkpoints, the crawl has an empty frontier and ends
immediately.

The fix is to avoid checkpointing in this NEW state before crawling has
really started.
2019-01-04 15:40:16 -08:00
Barbara Miller a40c466520 Merge pull request #226 from nlevitt/scope-log-horror
namespace scope log logger to crawl job
2019-01-04 11:41:23 -08:00
Noah Levitt 30215e849b namespace scope log logger to crawl job
This is a bad bug. Stupid, too. When multiple crawls are running with
`DecideRuleSequence.logToFile` enabled, all the scope log lines from all
the crawls are going to all the scope logs for all the crawls. It was
because of this line:

    Logger logger = Logger.getLogger(logName + ".log");

`logName` here is "scope" normally, for all crawl jobs.
`Logger` is shared across the whole java vm, so
`Logger.getLogger("scope.log")` returns the same logger for every
crawl job. Each time a crawl starts, it adds another output file to
the logger.

Fix is to give the logger a name specific to the crawl job.

😳🥵🥶💩
2019-01-04 11:25:31 -08:00
Barbara Miller 1a5340daee Merge pull request #224 from nlevitt/hbase-refactor
un-threadlocal the HConnection
2018-12-18 12:20:17 -08:00
Noah Levitt d7d320d372 un-threadlocal the HConnection
realized that we're leaking zookeeper connections, and it might be
because the HConnection has been thread local, which probably means that
at shutdown only one of the possibly many connections is cleaned up

zookeeper by default allows 60 connections per client and it looks
likely that we start having trouble when we hit that limit
2018-12-18 10:31:33 -08:00
Barbara Miller 3ca01ec3a9 Merge pull request #223 from nlevitt/hbase-refactor
merging reset HBaseAdmin on error
2018-12-03 15:07:35 -08:00
Noah Levitt ebcd6c8cf5 reset HBaseAdmin on error
maybe with this change it will be able to recover
2018-12-03 14:52:20 -08:00
jkafader 64d39d56dc Merge pull request #222 from nlevitt/hbase-refactor
keep trying to start up hbase dedup forever
2018-11-26 16:19:03 -08:00
Noah Levitt 5b911a09b8 keep trying to start up hbase dedup forever 2018-11-26 12:06:14 -08:00
Barbara Miller 89ad2652da Merge pull request #220 from nlevitt/deciding-optimization
implement PredicatedDecideRule.onlyDecision()
2018-11-16 09:52:42 -08:00
Noah Levitt fea6241fac implement PredicatedDecideRule.onlyDecision()
DecideRuleSequence already has the optimization that I was looking for,
namely, don't bother evaluating a DecideRule if we know it won't change
the current result. For some reason PredicatedDecideRule, which is a
parent class to most of the decide rules in heritrix, didn't implement
onlyDecision(). Certain crawl configurations could see significant
performance improvement with this change.
2018-11-15 11:13:27 -08:00
Barbara Miller 20c6814a51 Merge pull request #219 from nlevitt/hbase-refactor
use non-deprecated hbase api
2018-11-12 10:47:12 -08:00
Noah Levitt f8f80249f2 make it thread safe using ThreadLocal
this is the easiest thing to do to make it thread safe while reusing
hbase connections
2018-11-09 17:08:01 -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