From 1600414450be685a6e2ba7282f93a96055645467 Mon Sep 17 00:00:00 2001 From: reger Date: Fri, 2 May 2014 19:32:09 +0200 Subject: [PATCH 1/6] fix NPE on continuing crawls after YaCy restart (Agent is then nulll) --- source/net/yacy/crawler/HostBalancer.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/net/yacy/crawler/HostBalancer.java b/source/net/yacy/crawler/HostBalancer.java index 1ba50ce8c..29aa2923e 100644 --- a/source/net/yacy/crawler/HostBalancer.java +++ b/source/net/yacy/crawler/HostBalancer.java @@ -211,7 +211,8 @@ public class HostBalancer implements Balancer { if (queue == null) { queue = new HostQueue(this.hostsPath, entry.url().getHost(), entry.url().getPort(), this.queues.size() > 100, this.exceed134217727); this.queues.put(hosthash, queue); - robots.ensureExist(entry.url(), profile.getAgent(), true); // concurrently load all robots.txt + // profile might be null when continue crawls after YaCy restart + robots.ensureExist(entry.url(), profile == null ? ClientIdentification.yacyInternetCrawlerAgent : profile.getAgent(), true); // concurrently load all robots.txt } return queue.push(entry, profile, robots); } From b8cee9b7d8444db750e63d6ed470e17d93b01936 Mon Sep 17 00:00:00 2001 From: sixcooler Date: Fri, 2 May 2014 22:55:47 +0200 Subject: [PATCH 2/6] remove tables from tabletracker on close to avoid lots of dead entrys in /PerformanceMemory_p.html --- source/net/yacy/kelondro/table/Table.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/source/net/yacy/kelondro/table/Table.java b/source/net/yacy/kelondro/table/Table.java index 8630f35d2..2b652ad87 100644 --- a/source/net/yacy/kelondro/table/Table.java +++ b/source/net/yacy/kelondro/table/Table.java @@ -474,12 +474,17 @@ public class Table implements Index, Iterable { @Override public void close() { - if (this.file != null) this.file.close(); + String tablefile = null; + if (this.file != null) { + tablefile = this.file.filename().toString(); + this.file.close(); + } this.file = null; if (this.table != null) this.table.close(); this.table = null; if (this.index != null) this.index.close(); this.index = null; + if (tablefile != null) tableTracker.remove(tablefile); } @Override From 91bd384cf6f346b219d71dd5eb0f3bc7aea1b1e1 Mon Sep 17 00:00:00 2001 From: reger Date: Sat, 3 May 2014 21:55:10 +0200 Subject: [PATCH 3/6] fix input-group layout on index.html see bug http://mantis.tokeek.de/view.php?id=391 --- htroot/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htroot/index.html b/htroot/index.html index ad37c37a5..39c309195 100644 --- a/htroot/index.html +++ b/htroot/index.html @@ -53,7 +53,7 @@

#[promoteSearchPageGreeting]#

-