Commit Graph

1465 Commits

Author SHA1 Message Date
Clebert Suconic 8aaed7568b This closes #223 2015-10-29 11:31:24 -04:00
Martyn Taylor 26898e4663 ARTEMIS-288 Start close method in separate executor
When server sends disconnect to the client, the ClientSession schedules
a close task on it's ordered executor.  Once the close method starts
it's waits to check to see if all jobs in it's executor has completed.
To do this it adds a job to it's ordered executor, once it is run it
knows there is nothing more to do and thus is ready to close.  However,
this causes a deadlock as both jobs are running in the ordered executor
and thus are both waiting on each other.  The close eventually timesout
which is why we see the logs as reported in the JIRA.

This commit runs the close method in it's own ordered executor, thus
preventing the two jobs blocking each other.
2015-10-29 14:34:19 +00:00
Clebert Suconic 2cc2e29b11 This closes #221 2015-10-29 09:22:21 -04:00
Andrea Cosentino cafeaab8de ARTEMIS-286 Upgrade Netty to version 4.0.32.Final 2015-10-29 09:22:21 -04:00
Clebert Suconic 5a53de3d5e This closes #222 2015-10-29 09:20:08 -04:00
Erich Duda 0007772b13 ARTEMIS-287 [Artemis Testsuite] PagingTest#testDeleteQueueRestart fails on slower machines 2015-10-29 11:27:26 +01:00
Clebert Suconic 739f3c51bf This closes #220 2015-10-27 10:12:22 -04:00
jbertram fe4dafedcb ARTEMIS-168 - pluggable authorization 2015-10-27 10:12:22 -04:00
jbertram d03541a460 Fix incorrect ID on WARN message 2015-10-27 10:12:21 -04:00
Clebert Suconic 8f3157a5b3 This closes #219 2015-10-27 10:02:39 -04:00
Andy Taylor dd402f4f91 ARTEMIS-282 - remove unneeded check on file lock creation
https://issues.apache.org/jira/browse/ARTEMIS-282
2015-10-27 10:10:57 +00:00
Andy Taylor 290cb65b17 ARTEMIS-281 - fix reference counting for jgroups channels
https://issues.apache.org/jira/browse/ARTEMIS-281
2015-10-27 10:10:52 +00:00
Clebert Suconic 7f60ff20a5 This closes #218 2015-10-26 14:08:11 -04:00
Andy Taylor e864b79a6d ARTEMIS-280 - Resource Adapter hangs on shutdown
https://issues.apache.org/jira/browse/ARTEMIS-280
2015-10-26 14:08:11 -04:00
Clebert Suconic 992c34bc6a Small tweak on test 2015-10-26 14:06:26 -04:00
Clebert Suconic 32e6d9c61a ARTEMIS-279 fixing typo 2015-10-26 14:06:11 -04:00
Clebert Suconic e35c4d5800 SessionCloseOnGCTest#testCloseOneSessionOnGC avoiding intermittent failure - small improvement 2015-10-26 12:04:03 -04:00
Clebert Suconic bd946d2ce8 SessionCloseOnGCTest#testCloseOneSessionOnGC avoiding intermittent failure 2015-10-26 11:10:48 -04:00
Clebert Suconic 15b8b8138b Improving forceGC method on ActiveMQTestBase 2015-10-26 11:02:53 -04:00
Clebert Suconic 8c6ba443a3 This closes #217 2015-10-26 10:53:48 -04:00
Erich Duda 7970b6e6f8 SessionCloseOnGCTest#testCloseOneSessionOnGC: enforce that Finalizer will be called after garbage collector 2015-10-26 10:53:48 -04:00
Clebert Suconic 487d976760 ARTEMIS-277 IncompatibleVersionTest fails on slower machines
This closes #216
2015-10-26 10:49:49 -04:00
Clebert Suconic c9e823b1ca This closes #215 2015-10-25 09:59:52 -04:00
Ville Skyttä 86b89306d7 Improve "protocol property is deprecated" message, use constants in it 2015-10-25 09:42:57 +02:00
Clebert Suconic 851d4c35df This closes #214 2015-10-23 10:25:28 -04:00
Howard Gao 02cedbf8da ARTEMIS-276 JMSBridge should be TCCL aware 2015-10-23 10:25:28 -04:00
Clebert Suconic 270ad3ec3b ARTEMIS-238/ARTEMIS-236 Removing file that was supposed to be deleted 2015-10-23 09:44:30 -04:00
Clebert Suconic c67df73b80 This closes #212 2015-10-22 10:30:51 -04:00
Clebert Suconic bc828c0017 ARTEMIS-238 and ARTEMIS-236 Moving HQClient to its own module avoiding uncessary server's dependencies 2015-10-22 10:15:14 -04:00
Clebert Suconic aa4cac64ba This closes #211 2015-10-22 10:14:42 -04:00
Ivo Studensky 8a2ecff4fd ARTEMIS-274 ActiveMQThreadFactory has to be constructed within doPrivileged block 2015-10-22 09:30:14 -04:00
Clebert Suconic 852a5717ac This closes #210 2015-10-22 09:27:18 -04:00
Andy Taylor 31f2389343 ARTEMIS-269 - sett restartBackup to true by default
https://issues.apache.org/jira/browse/ARTEMIS-269
2015-10-22 13:20:28 +01:00
jbertram 2d3177a45b This closes #209 2015-10-21 15:55:12 -05:00
Clebert Suconic 9a98684846 ARTEMIS-197 fixing examples by using proper location on folders 2015-10-21 16:43:10 -04:00
jbertram b89e3f53b6 This closes #207 2015-10-21 08:47:09 -05:00
Martyn Taylor 6aae2cc5f1 ARTEMIS-273 Use data locations not dir in moveData 2015-10-21 11:54:41 +01:00
Clebert Suconic e1be56d7ee This closes #206 2015-10-20 18:24:09 -04:00
Julian Scheid aa492fb9b6 ARTEMIS-271 Expose HttpRequest in WebSocketServerHandler 2015-10-20 18:24:09 -04:00
Clebert Suconic 7afd337496 This closes #205 2015-10-20 18:23:41 -04:00
Julian Scheid aa7696e329 ARTEMIS-270 Supply RemotingConnection for authorization 2015-10-20 18:23:41 -04:00
Clebert Suconic 7dc839c07d Adding getDefaultFailbackDelay back to the interface
this is public interface, we can't remove methods...
It's being deprecated though
2015-10-20 18:03:09 -04:00
Clebert Suconic c35651fd6f This closes #204 failback changes 2015-10-20 14:55:31 -04:00
jbertram ef5a9809f2 ARTEMIS-256 orchestrate failback deterministically
The failback process needs to be deterministic rather than relying on various
incarnations of Thread.sleep() at crucial points. Important aspects of this
change include:

1) Make the initial replication synchronization process block at the very
last step and wait for a response from the replica to ensure the replica has
as the necessary data. This is a critical piece of knowledge during the
failback process because it allows the soon-to-become-backup server to know
for sure when it can shut itself down and allow the soon-to-become-live
server to take over. Also, introduce a new configuration element called
"initial-replication-sync-timeout" to conrol how long this blocking will occur.

2) Set the state of the server as 'LIVE' only after the server is fully
started. This is necessary because once the soon-to-be-backup server shuts
down it needs to know that the soon-to-be-live server has started fully before
it restarts itself as the new backup. If the soon-to-be-backup server restarts
before the soon-to-be-live is fully started then it won't actually become a
backup server but instead will become a live server which will break the
failback process.

3) Wait to receive the announcement of a backup server before failing-back.
2015-10-20 14:55:31 -04:00
Clebert Suconic 30b3463748 This closes #203 2015-10-20 13:03:41 -04:00
Clebert Suconic f0f920d455 ARTEMIS-265 & ARTEMIS-266 - small tweaks to Create 2015-10-20 13:03:41 -04:00
Clebert Suconic 9608c3165b This closes #202 2015-10-20 13:03:17 -04:00
Martyn Taylor 3e6f229436 ARTEMIS-262 Check connection status change before callbacks 2015-10-20 10:41:00 +01:00
Martyn Taylor efce1d7a71 Merge pr #201 2015-10-19 15:03:23 +01:00
Andy Taylor 2ea977db2d ARTEMIS-263 - added etc folder to runtime
https://issues.apache.org/jira/browse/ARTEMIS-263
2015-10-19 14:08:06 +01:00