Skip to content

armgit / nutch

Public Imported from GitHub
0

Apache Nutch is an extensible and scalable web crawler

New version of Lucene that includes TopDocCollector.

Douglass Cuttinga8765eb6a184
diff --git a/lib/lucene-1.9-rc1-dev.jar b/lib/lucene-1.9-rc1-dev.jar
deleted file mode 100644
index 0407e6dce..000000000
Binary files a/lib/lucene-1.9-rc1-dev.jar and /dev/null differ
diff --git a/lib/lucene-core-1.9-rc1-dev.jar b/lib/lucene-core-1.9-rc1-dev.jar
new file mode 100644
index 000000000..baaff6681
Binary files /dev/null and b/lib/lucene-core-1.9-rc1-dev.jar differ
diff --git a/src/test/org/apache/nutch/ipc/TestIPC.java b/src/test/org/apache/nutch/ipc/TestIPC.java
index a227a1548..066fe4c60 100644
--- a/src/test/org/apache/nutch/ipc/TestIPC.java
+++ b/src/test/org/apache/nutch/ipc/TestIPC.java
@@ -35,6 +35,8 @@ public class TestIPC extends TestCase {
public static final Logger LOG =
LogFormatter.getLogger("org.apache.nutch.ipc.TestIPC");
+ private static final int TIMEOUT = 10000;
+
// quiet during testing, since output ends up on console
static {
LOG.setLevel(Level.WARNING);
@@ -42,8 +44,6 @@ public class TestIPC extends TestCase {
Server.LOG.setLevel(Level.WARNING);
}
- public TestIPC(String name) { super(name); }
-
private static final Random RANDOM = new Random();
private static final int PORT = 1234;
@@ -53,7 +53,7 @@ public class TestIPC extends TestCase {
public TestServer(int port, int handlerCount, boolean sleep) {
super(port, LongWritable.class, handlerCount);
- this.setTimeout(1000);
+ this.setTimeout(TIMEOUT);
this.sleep = sleep;
}
@@ -75,7 +75,7 @@ public class TestIPC extends TestCase {
public SerialCaller(Client client, int count) {
this.client = client;
this.count = count;
- client.setTimeout(1000);
+ client.setTimeout(TIMEOUT);
}
public void run() {
@@ -108,7 +108,7 @@ public class TestIPC extends TestCase {
this.client = client;
this.addresses = addresses;
this.count = count;
- client.setTimeout(1000);
+ client.setTimeout(TIMEOUT);
}
public void run() {
@@ -157,10 +157,10 @@ public class TestIPC extends TestCase {
callers[i].join();
assertFalse(callers[i].failed);
}
- for (int i = 0; i < clientCount; i++) {
- clients[i].stop();
- }
- server.stop();
+// for (int i = 0; i < clientCount; i++) {
+// clients[i].stop();
+// }
+// server.stop();
}
public void testParallel() throws Exception {
@@ -207,14 +207,17 @@ public class TestIPC extends TestCase {
public static void main(String[] args) throws Exception {
// crank up the volume!
- LOG.setLevel(Level.FINE);
- Client.LOG.setLevel(Level.FINE);
- Server.LOG.setLevel(Level.FINE);
- LogFormatter.setShowThreadIDs(true);
+// LOG.setLevel(Level.INFO);
+// Client.LOG.setLevel(Level.INFO);
+// Server.LOG.setLevel(Level.INFO);
+// LogFormatter.setShowThreadIDs(true);
- //new TestIPC("test").testSerial(5, false, 2, 10, 1000);
+ new TestIPC().testSerial(10, false, 500, 500, 100);
+ //new TestIPC().testParallel(10, false, 2, 4, 2, 4, 1000);
- new TestIPC("test").testParallel(10, false, 2, 4, 2, 4, 1000);
+// TestIPC test = new TestIPC();
+// test.testSerial();
+// test.testParallel();
}