Commit Graph

3081 Commits

Author SHA1 Message Date
Martyn Taylor ee4692d5ca ARTEMIS-1418 AIO Shutdown on IOError and logging
(cherry picked from commit 520a40b1a1)
2017-09-26 14:28:07 -04:00
Justin Bertram f51023506e ARTEMIS-1417 Failback not working on NFSv4
With NFSv4 it is now necessary to lock/unlock the byte of the server
lock file where the state information is written so that the
information is then flushed to the other clients looking at the file.

(cherry picked from commit 2ec173bc70)
2017-09-26 14:28:07 -04:00
psakar b4bbdff456 add licenses tag to pom.xml 2017-09-26 14:28:07 -04:00
Erich Duda 0f4a8c3c2d ARTEMIS-1368 Artemis gets to state when it doesn't respond to producer
There is a leak on replication tokens in the moment when a backup is
shutdowned or killed and the ReplicationManager is stopped. If there
are some tasks (holding replication tokens) in the executor, these
tokens are simply ignored and replicationDone method isn't called on
them. Because of this, some tasks in OperationContextImpl cannot be
finished.

(cherry picked from commit 88a018e17fd49097de1186c65e25cd0af578b6a9)
(cherry picked from commit d6cbc0aa88)
2017-09-26 14:28:07 -04:00
Clebert Suconic 492b55e09a ARTEMIS-1353 Initial replication of large messages out of executor
This is based on the work @jbertram made at the github pr #1466 and the discussions we had there

(cherry picked from commit ce6942a9aa)
2017-09-26 14:28:07 -04:00
Martyn Taylor 5db0c8772e NO JIRA Remove failing tests due to cherrypick 2017-09-26 14:28:06 -04:00
Clebert Suconic fef0256bfa ARTEMIS-1305 Fix checkstyle and traces
https://issues.jboss.org/browse/JBEAP-9235
2017-09-26 14:28:06 -04:00
Howard Gao 6f0bebaad7 ARTEMIS-1220 removing broken test
Testsuite won't compile
2017-09-26 14:28:06 -04:00
xstefank 08fdae355c ARTEMIS-950 Change log level from INFO to WARN for "Invalid "host" value "0.0.0.0" detected for..." when Artemis is bound to 0.0.0.0
(cherry picked from commit 93ebbfdeaa)
(cherry picked from commit d402f67f4e6c14072213c2a2936edb032cee751b)
2017-09-26 14:28:06 -04:00
Howard Gao 7b1a1b058a ARTEMIS-1221 Duplicated ID causes LargeMessage lost at backup
When a large message is replicated to backup, a pendingID is generated
when the large message is finished. This pendingID is generated by a
BatchingIDGenerator at backup.

It is possible that a pendingID generated at backup may be a duplicate
to an ID generated at live server.

This can cause a problem when a large message with a messageID that is
the same as another largemessage's pendingID is replicated and stored
in the backup's journal, and then a deleteRecord for the pendingID
is appended. If backup becomes live and loads the journal, it will
drop the large message add record because there is a deleteRecord of
the same ID (even though it is a pendingID of another message).
As a result the expecting client will never get this large message.

So in summary, the root cause is that the pendingIDs for large
messages are generated at backup while backup is not alive.

The solution to this is that instead of the backup generating
the pendingID, we make them all be generated in advance
at live server and let them replicated to backup whereever needed.
The ID generater at backup only works when backup becomes live
(when it is properly initialized from journal).

(cherry picked from commit d50f577cd5)
2017-09-26 14:28:05 -04:00
Martyn Taylor 5faf2cd829 NO-JIRA Remove artemis-feature dep from integration tests 2017-09-26 14:28:05 -04:00
Andy Taylor 2c89287009 ARTEMIS-1224 - change the journal file size to nearest multiple
https://issues.apache.org/jira/browse/ARTEMIS-1224

(cherry picked from commit 30a6ac703e)
2017-09-26 14:28:05 -04:00
Dmitrii Tikhomirov 31fa7584ab ARTEMIS-1180 Artemis is logging warnings during server shut down
(cherry picked from commit 2443eaaa00)
2017-09-26 14:28:05 -04:00
Jeff Mesnil 6febd5e314 [ARTMIS-1431] Adapt transport configuration in ClientProtocolManagerFactory
add the adaptTransportConfiguration() method to the
ClientProtocolManagerFactory so that transport configurations used by
the ClientProtocolManager have an opportunity to adapt their transport
configuration.

This allows the HornetQClientProtocolManagerFactory to adapt the
transport configuration received by remote HornetQ broker to replace the
HornetQ-based NettyConnectorFactory by the Artemis-based one.

JIRA: https://issues.apache.org/jira/browse/ARTEMIS-1431
2017-09-26 14:28:04 -04:00
Clebert Suconic c85575f435 This closes #1547 2017-09-25 10:35:50 -04:00
Jeff Mesnil 492022618d [ARTMIS-1431] Adapt transport configuration in ClientProtocolManagerFactory
add the adaptTransportConfiguration() method to the
ClientProtocolManagerFactory so that transport configurations used by
the ClientProtocolManager have an opportunity to adapt their transport
configuration.

This allows the HornetQClientProtocolManagerFactory to adapt the
transport configuration received by remote HornetQ broker to replace the
HornetQ-based NettyConnectorFactory by the Artemis-based one.

JIRA: https://issues.apache.org/jira/browse/ARTEMIS-1431
2017-09-22 16:35:36 +02:00
Martyn Taylor eacaffe16a ARTEMIS-1354 Critical IO Error on AIO write failure
(cherry picked from commit 652573a5a9)
2017-08-18 14:02:49 +01:00
Clebert Suconic e5ef406e4e ARTEMIS-1333 Fix SendACK
(fix copied manually from master.. not possible to cherry-pick)
2017-08-10 22:27:57 -04:00
Clebert Suconic 9724571a98 ARTEMIS-1333 SendACK listener message loss (adding test)
next commit should have the fix.
this is to make it easy to confirm the fix by people looking.

(cherry picked from commit 96c6268f5a)
2017-08-10 22:24:37 -04:00
Clebert Suconic 393cf9bfef ARTEMIS-1334 Scheduled component shouldn't be synchronized
(cherry picked from commit 8bc15b1199)
2017-08-10 14:12:13 -04:00
Clebert Suconic 0c5962f1b8 This closes #1448 2017-08-08 14:01:36 -04:00
Clebert Suconic 25c0f93ad5 ARTEMIS-1328 Improving direct delivery check
Based on #1447 as it is not possible to cherry-pick here
2017-08-08 13:00:37 -04:00
Clebert Suconic 9672dc23e2 This closes #1429 2017-08-02 12:51:57 -04:00
Clebert Suconic d96957ea70 ARTEMIS-1265 Fixing jacoco profile for IDE integration
Idea and Eclipse integration was broken because of the surefire plugin options

(cherry picked from commit 14fe149fa5)
2017-08-02 12:51:57 -04:00
Clebert Suconic 17d4ec496a ARTEMIS-1265 Adding helper script for coverage tests
(cherry picked from commit e27a0f8159)
2017-08-02 12:51:57 -04:00
Erich Duda c04fb0f7da ARTEMIS-1265 JaCoCo profile for getting code coverage report
Added two maven profiles for:
 - generating JaCoCo exec files
 - generating JaCoCo reports

(cherry picked from commit 22b4755fbb)
2017-08-02 12:51:57 -04:00
Clebert Suconic 8e7d4fb34e ARTEMIS-1305 Avoid deadlock when shutting down RA and reconnects
(cherry picked from commit 7adc8339c7)
2017-07-28 11:58:58 -04:00
Clebert Suconic e1d6f6cb87 ARTEMIS-1305 Server frozen during shutdown on Resource Adapter
this is a better fix than the previous one

(cherry picked from commit 54d220edf3)
2017-07-28 10:35:04 -04:00
Martyn Taylor b691fabe21 ARTEMIS-1303 Fix interleave during replication sync
(cherry picked from commit 69f8263267)
2017-07-26 11:25:17 +01:00
Andy Taylor 3ae55c0680 This closes #1420 ARTEMIS-1305 Server Frozen during shutdown if RA is retrying 2017-07-26 10:27:09 +01:00
Clebert Suconic 41bd6c7cfb ARTEMIS-1261 Fix compilation 2017-07-25 22:43:57 -04:00
Clebert Suconic 9eb2799cb5 ARTEMIS-1305 Server Frozen during shutdown if RA is retrying
(cherry picked from commit 7bf8e4e890)
2017-07-25 22:40:47 -04:00
Clebert Suconic 1865e9feef NO-JIRA Traces on the Resource Adapter 2017-07-25 17:46:22 -04:00
Clebert Suconic 5298a3979b ARTEMIS-1257 Fixing hashCode
ResourceAdapterTest had a few failures with a NPE

(cherry picked from commit 08d8c08ed3)
2017-07-25 16:59:48 -04:00
Clebert Suconic 8def77b8bf NO-JIRA Traces on Resource Adapter Message Handler
(cherry picked from commit 1796e5935f)
2017-07-25 12:57:24 -04:00
Martyn Taylor c3eeea4910 ARTEMIS-1271 FileSystemMonitor locking improvement
(cherry picked from commit ce756d46f9)
2017-07-25 12:19:59 -04:00
Howard Gao 004c86804f ARTEMIS-1261 Adjust default confirmation-window-size for bridges
The default id-cache-size is 20000 and the default
confirmation-window-size is 1MB. It turns out the 1MB
size is too small for id-cache-size.

To fix it we adjust the confirmation-window-size to 10MB. Also
a test is added to guarantee it won't break this rule when this
default value is to be changed to any new value.

(cherry picked from commit 06986e4ee1)
2017-07-25 12:11:37 -04:00
Josh Reagan 21f86a4844 ARTEMIS-1255 Fixed authentication issues with XAConnectionFactory
Added the global user/password variables to all of the variations of the createContext/createConnectionFactory methods.

(cherry picked from commit 177bda4892)
2017-07-25 12:03:50 -04:00
Howard Gao 144a7c8a42 ARTEMIS-1220 Diverted LargeMessage file corrupted during replication
When a large message is being diverted, a new copy of the original
message is created and replicated (if there is a backup) to the backup.

In LargeServerMessageImpl.copy(long) it reuse a byte array to copy
message body. It is possible that one block of date is read into
the byte array before the previous read has been replicated,
causing the replicated bytes to corrupt.

If we make a copy of the byte array before replication, the corruption
of data will be avoided.

(cherry picked from commit 045021f7df)
2017-07-25 11:52:28 -04:00
Clebert Suconic cba7af50b6 ARTEMIS-1304 ignoring invalid test
(cherry picked from commit cd9ce6a502)
2017-07-25 10:09:04 -04:00
Clebert Suconic ffa09afb1f ARTEMIS-1304 fixing compilation 1.x 2017-07-24 22:55:07 -04:00
Clebert Suconic 2a2f25664c ARTEMIS-1304 Message loss on Commmit timeout during failover
(cherry picked from commit 50a900c04b)
2017-07-24 20:27:56 -04:00
Francesco Nigro 44d3be5a7e ARTEMIS-1301 Network failures recognition on backpressure while streaming large messages
(cherry picked from commit 32fe21d595)
2017-07-24 09:43:43 -04:00
xstefank e2d9e1bb63 ARTEMIS-1257 ActiveMQActivationSpec.java should use boxed types for attributes values according to the JCA specification
(cherry picked from commit 553043393e)
2017-07-24 09:42:25 -04:00
Clebert Suconic b6b5b4caa7 ARTEMIS-1294 Using older sleep on TimedBuffer
And also adding test

(cherry picked from commit ad372ec98e)
2017-07-19 10:48:12 -04:00
Francesco Nigro 38cd0cd9f4 ARTEMIS-1294 Reverted TimedBuffer timeout policy
(cherry picked from commit 3dc9566fb6)
2017-07-19 10:47:34 -04:00
Clebert Suconic 423f26f027 ARTEMIS-1288 crash during compact control files issues
The system would become irresponsive if crashed right at the
control file writing.
2017-07-13 17:16:30 -04:00
Clebert Suconic e9b7b94de7 ARTEMIS-1269 fixing checkstyle 2017-07-11 14:53:21 -04:00
Clebert Suconic 8326a24fd8 ARTEMIS-1280 Avoiding leak on Queue futures 2017-07-11 14:51:03 -04:00
Clebert Suconic 311072b28b This closes #1397 2017-07-11 08:39:15 -04:00