3088 Commits

Author SHA1 Message Date
Martyn Taylor
466f5f8ebe ARTEMIS-1482 Catch malformed SimpleString 2017-10-25 14:23:53 +01:00
Clebert Suconic
459e5976ca This closes #1604 2017-10-23 14:58:54 -04:00
Jeff Mesnil
79e307e9f9 [ARTEMIS-1475] Fix NPE in ActiveMQMessageHandler#setup
* initialize ActiveMQActivationSpec#shareSubscriptions to false
* i18n of the exception thrown by ActiveMQMessageHandler if it is not
  possible to create a non-shared subscriber

JIRA: https://issues.apache.org/jira/browse/ARTEMIS-1475
2017-10-23 15:31:27 +02:00
Clebert Suconic
e42433f70e Revert "add licenses tag to pom.xml"
This reverts commit b4bbdff456c519cb34df444fb15cee8b2ce0bb46.
2017-09-27 12:59:19 -04:00
Clebert Suconic
b56950c351 This closes #1553 2017-09-26 14:48:08 -04:00
Clebert Suconic
e03c41aabd NO-JIRA fixing TimedbufferTest as fixed on master 2017-09-26 14:43:56 -04:00
Paul Ferraro
313e816707 NO-JIRA: Allow subclasses to more easily override BroadcastEndpointFactory used during connection factory creation.
(cherry picked from commit 4bf204c01225e058a5b723e301e53a79f3128f3a)
2017-09-26 14:28:08 -04:00
Martyn Taylor
ee4692d5ca ARTEMIS-1418 AIO Shutdown on IOError and logging
(cherry picked from commit 520a40b1a1431fb0fdc1666c556342410a56e4eb)
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 2ec173bc708daca163c9356cf12440432abc61c4)
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 d6cbc0aa885fa88beb7f1b2450cdfe4da9466947)
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 ce6942a9aa9375efaa449424fe89de2db3f22e36)
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 93ebbfdeaaa3f79c76d6028703c3c7b23bb3783e)
(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 d50f577cd50df37634f592db65200861fe3e13d3)
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 30a6ac703efe3539d13152f9311bedd7fd68aa9d)
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 2443eaaa003ef913187c14dbc567544788224821)
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 652573a5a98e88027004b7d457b184d5c6a5ccce)
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 96c6268f5a68a293589ac0061d561265d9e79972)
2017-08-10 22:24:37 -04:00
Clebert Suconic
393cf9bfef ARTEMIS-1334 Scheduled component shouldn't be synchronized
(cherry picked from commit 8bc15b1199e9aa82c1cb92586deaba46174473ad)
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 14fe149fa5c8a0e7851e4dd52ddf6361adf98bf0)
2017-08-02 12:51:57 -04:00
Clebert Suconic
17d4ec496a ARTEMIS-1265 Adding helper script for coverage tests
(cherry picked from commit e27a0f8159643dd9beddc5a69118c5241ad4b763)
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 22b4755fbbfd680a0ef979781c3f046e930837c1)
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 7adc8339c71621a9bd20f0632d5d0a7dfd652de3)
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 54d220edf309647d3f9e17854ebbda7a984dfedf)
2017-07-28 10:35:04 -04:00
Martyn Taylor
b691fabe21 ARTEMIS-1303 Fix interleave during replication sync
(cherry picked from commit 69f82632675c9b4a1327cf70ce53440358b6dc3e)
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 7bf8e4e8900fad3f205aac95f3f5835f580baa43)
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 08d8c08ed3825d53666d774d0b919b6cd2caa545)
2017-07-25 16:59:48 -04:00
Clebert Suconic
8def77b8bf NO-JIRA Traces on Resource Adapter Message Handler
(cherry picked from commit 1796e5935f51555651fd686b5b5c559300ddd807)
2017-07-25 12:57:24 -04:00
Martyn Taylor
c3eeea4910 ARTEMIS-1271 FileSystemMonitor locking improvement
(cherry picked from commit ce756d46f9c90e4d7d0eb0e0090384d6d646af3e)
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 06986e4ee1eb32fc2642b111ca3955518f684adb)
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 177bda4892b0aabd89311ec28b91762fb22ebaae)
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 045021f7df583f6109cb0749dc1601c9a85dbe75)
2017-07-25 11:52:28 -04:00
Clebert Suconic
cba7af50b6 ARTEMIS-1304 ignoring invalid test
(cherry picked from commit cd9ce6a5025c5ad702ce5a0f0b2251ffb8d3ff82)
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 50a900c04b497c470eeb5c69985944cd6666ffa0)
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 32fe21d59591788f67cbb65d7cb7e641f74c44d1)
2017-07-24 09:43:43 -04:00