Commit Graph
44 Commits
Author SHA1 Message Date
Axel Uhl 6a2552a3fa try closing the socket instead of the streams;
this is also what happens in a try-with-resource

Change-Id: I53686c84f69149173e1894d0b9b3d26778c55b08
2019-01-23 11:14:28 +01:00
Axel Uhl dbf33e1693 catch SocketException; it seems a valid alternative to reading -1 if the server has closed the connection
Change-Id: Iaee1dd2a35cea0b00f338fd3bb8f2e13067813f8
2019-01-23 10:51:53 +01:00
Axel Uhl 6a26465cc5 reverted to per-byte request reading but close input stream before closing output stream on server
Change-Id: I711b6652838b53bda91e209c9573d58cfe73ad79
2019-01-23 10:27:13 +01:00
Axel Uhl 07ede58212 temporarily reverted request reading to the use of BufferedReader;
knowing it will kill the POST case I'd like to see whether this fixes
the "Connection reset" issue observed during test execution on Linux

Change-Id: I74879dc4a682759dad63184ed38cf5c575281fda
2019-01-23 10:13:51 +01:00
Axel Uhl 119ab574ca also close socket (again) after properly closing input stream
Change-Id: I74d9b6fe74decb8d1f43ed8bff8d2f72d2c8fe2b
2019-01-22 22:17:10 +01:00
Axel Uhl 9e130314f3 close socker input stream properly before leaving the socket to GC
Change-Id: I35484bc0523045e450f5c417c61012ef0a79b7a9
2019-01-22 21:16:35 +01:00
Axel Uhl bcb1346555 removed Socket.close() call in replication test frame to avoid killing client-side connection prematurely
Change-Id: I5793a2fdee9e4403323446e2eece9b4a84b1f538
2019-01-22 18:10:32 +01:00
Axel Uhl bb07391659 added test for sending replication operation to master through HTTP POST
Change-Id: Ie16a2abb308dc3ae860cf729374362d9b5d21516
2019-01-22 10:50:19 +01:00
Axel Uhl 34b360cc3e replication status under /replication/replication?action=STATUS
Change-Id: I63cfd64609e458690a89da3ed5478ee5f239579b
2019-01-18 17:35:58 +01:00
Axel Uhl 4c4752a748 extracted replication interfaces into separate bundle to avoid having to activate the replication service only for registering a replicable
Change-Id: I22e423efee06e653a9ed3b9bea13b3b0153f7156
2018-12-14 21:27:17 +01:00
Axel Uhl bed5e90087 fixed deprecation of "new Timeout(int)", replacing by Timeout.millis 2018-12-10 03:10:24 +01:00
Axel Uhl bd90f921dd added Automatic-Module-Name headers to satisfy Oxygen.3 Java9 warnings rule 2018-03-24 01:45:37 +01:00
Steffen Schaefer 9123771f34 normalized line endings 2017-05-16 09:42:02 +02:00
Axel Uhl a0bdce9eed use per-test separate exchange name and delete test exchange during tearDown
Change-Id: Ib2660fe79a2fae060d0c6d4c6c613fe1056e9428
2017-03-07 21:18:13 +01:00
Axel Uhl b408b7966e in AbstractServerReplicationTestSetUp fixed replica UUID written to stream
Change-Id: I777f06fe8e157670fe2787c361aa2093e6a579de
2017-02-24 11:39:27 +01:00
Steffen Schaefer 673907c017 Merge branch 'master' into bug2447
Conflicts:
	java/com.sap.sailing.feature/feature.xml
	java/pom.xml
2017-01-09 10:05:05 +01:00
Axel Uhl 7126902cf2 adding set of replicables or their IDs to master and replica descriptors and passing through to ReplicationServlet
Change-Id: I51a70718d94b161e747f2a887028fdeeb996f21a
2016-12-22 14:32:47 +01:00
Steffen Schaefer dd5d1fc745 Using junit and hamcrest from orbit / adjustments for different junit
bundle ID
2016-11-24 13:29:02 +01:00
Axel Uhl 97aeb5efa1 re-structured replication tests a little to mimic initial load and replica registration process better; added failing test for bug 3249 2015-08-20 16:53:57 +02:00
Axel Uhl d1a459c0e9 updated target platform to contain LZ4 compression algorithm; use it in replication code 2015-07-27 17:40:33 +02:00
Axel Uhl bff98361d0 added a test case for bug 2986 2015-06-20 15:04:57 +02:00
Axel Uhl a75a4cdef3 made local variable final to express it will never change 2015-03-30 21:55:02 +02:00
Axel Uhl 980f18914f make sure that if we have a replicator to wait for then we hold on to it in case it gets nulled out in between 2015-03-30 21:43:28 +02:00
Axel Uhl 824f975ba8 renamed isQueueEmpty to isQueueEmptyOrStopped; don't set thread context class loader in ReplicationReceiver: it's set in the replicable itself 2015-03-30 20:28:36 +02:00
Axel Uhl 26a286f243 re-establishing the effects of c74a3092661236b13ff0b667e1f08cc3fac11d22; need to serve the replication service's monitor properly as queue drains 2015-03-30 18:28:31 +02:00
Axel Uhl 273152b0b0 temporarily taking back the pre-mature attempt to wait for replication queues to drain during test execution (c74a309266) 2015-03-30 18:27:04 +02:00
Axel Uhl c74a309266 fixed bundle name for mongo driver in com.sap.sailing.feature's feature.xml 2015-03-30 16:30:38 +02:00
Axel Uhl 4f18c1c366 use any free server port for replication servlet in test mode 2015-03-30 02:09:38 +02:00
Fredrik Teschke eceabfa81b removed duplicate constructors (probably from cherry-pick & merge) 2015-02-14 13:40:51 +01:00
Fredrik Teschke f60733698e Merge branch 'ftes-mail-move-to-sse' into jbross-email-invitation
Conflicts:
	java/com.sap.sailing.server.replication.test/src/com/sap/sailing/server/replication/test/AbstractServerReplicationTest.java
	java/com.sap.sailing.server.replication.test/src/com/sap/sailing/server/replication/test/ConnectionResetAndReconnectTest.java
	java/com.sap.sailing.server.replication.test/src/com/sap/sailing/server/replication/test/PrematureOperationReceiptTest.java
	java/com.sap.sailing.server.replication.test/src/com/sap/sailing/server/replication/test/RaceLogReplicationTest.java
	java/com.sap.sailing.server.replication.test/src/com/sap/sailing/server/replication/test/RegattaLogReplicationTest.java
	java/com.sap.sse.security.replication.test/META-INF/MANIFEST.MF
	java/com.sap.sse.security.replication.test/src/com/sap/sse/security/replication/test/AbstractSecurityReplicationTest.java
2015-02-14 06:53:07 +01:00
Fredrik Teschke 6b6c657452 fix test failures due to previous refactoring of abstract replication test classes 2015-02-14 06:51:39 +01:00
Fredrik Teschke de39d6a40a refactor AbstractServerReplicationTest to enable tests with multiple replicable services in future 2015-02-13 20:28:45 +01:00
Fredrik Teschke b4b646be1f refactor AbstractServerReplicationTest to enable tests with multiple replicable services in future 2015-02-13 20:27:23 +01:00
Axel Uhl 98d5235b47 upgraded all Mongo-using bundles to 2.13.0 driver 2015-02-12 16:00:15 +01:00
Axel Uhl 9247e84b1d removed old replication.brokerURL parameter which probably dates back to ActiveMQ times... 2015-01-05 14:07:16 +01:00
Axel Uhl b77f276efa added more logging to initial load test servlet 2015-01-05 12:20:14 +01:00
Axel Uhl ad0aecc4e8 more logging 2015-01-05 11:14:42 +01:00
Axel Uhl be14cbb236 added more logging to understand why replication tests may be hanging on new Hudson environment 2015-01-05 11:13:19 +01:00
Axel Uhl a5819b9ced use logging for connection errors that happen while trying to stop the replication test servlet 2015-01-05 11:07:31 +01:00
Axel Uhl d6643c0da6 close server socket of test servlet in finally block 2015-01-05 01:52:36 +01:00
Axel Uhl 8e7ab908e7 replicate operations initiated on replica to master and ignore them when they come back to that replica; see bug 2408 2014-11-29 23:50:06 +01:00
Axel Uhl d842579e48 Refactored SecurityServiceImpl such that operations can be implemented as lambdas, seeing the ReplicableSecurityService extension with the internal methods 2014-11-21 20:15:55 +01:00
Axel Uhl b36b2e146f added missing pom.xml stuff for replication.testsupport 2014-11-21 12:28:03 +01:00
Axel Uhl 6fc64beb42 introduced replication test support bundle, factoring commonalities for abstract replication tests; started simple security replication test frame 2014-11-21 11:02:54 +01:00