Changeset: 3442d331cad0 for monetdb-java
URL: https://dev.monetdb.org/hg/monetdb-java/rev/3442d331cad0
Modified Files:
        tests/OnClientTester.java
Branch: default
Log Message:

In test_ServerStopsReading, wait longer for the server to cancel the upload

Some recent server versions perform more readahead in COPY INTO.
This means that a query such as

        COPY 10 RECORDS INTO foo FROM 'some-file' ON CLIENT

will upload much more data before the server finally decides it can
cancel the rest of the upload.  When testing the cancellation
behavior we need to take this into account.


diffs (13 lines):

diff --git a/tests/OnClientTester.java b/tests/OnClientTester.java
--- a/tests/OnClientTester.java
+++ b/tests/OnClientTester.java
@@ -538,7 +538,8 @@ public final class OnClientTester {
        private void test_ServerStopsReading() throws SQLException, Failure {
                initTest("test_ServerStopsReading");
                prepare();
-               MyUploadHandler handler = new MyUploadHandler(100);
+               long n = 2 * 1024 * 1024 / 10;
+               MyUploadHandler handler = new MyUploadHandler(n);
                conn.setUploadHandler(handler);
                update("COPY 10 RECORDS INTO foo FROM 'banana' ON CLIENT");
                assertEq("cancellation callback called", true, 
handler.isCancelled());
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to