3075 Commits

Author SHA1 Message Date
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
xstefank
e2d9e1bb63 ARTEMIS-1257 ActiveMQActivationSpec.java should use boxed types for attributes values according to the JCA specification
(cherry picked from commit 553043393e0665795725b2a0f9de1c4137d6b2ef)
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 ad372ec98e0d8e5765eef56883ea29b10768c70e)
2017-07-19 10:48:12 -04:00
Francesco Nigro
38cd0cd9f4 ARTEMIS-1294 Reverted TimedBuffer timeout policy
(cherry picked from commit 3dc9566fb66b31729c3e04a8d06ff391a8c850b4)
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
Erich Duda
f0907f6f3f ARTEMIS-1274 MultipleProducersTest.wrongQueue fails
(cherry picked from commit ab92306d81df10e6cfdc771973b39980721a6f98)
2017-07-11 13:49:50 +02:00
Clebert Suconic
3ac1a16f97 This closes #1387 2017-07-07 09:12:38 -04:00
Clebert Suconic
276319d72b ARTEMIS-1269 Fixing blocked replication
If replication blocked anything on the journal
the processing from clients would be blocked
and nothing would work.

As part of this fix I am using an executor on ServerSessionPacketHandler
which will also scale better as the reader from Netty would be feed immediately.
2017-07-07 08:56:31 -04:00
Clebert Suconic
c54120a47f This closes #1383 2017-07-01 10:39:26 -04:00
Clebert Suconic
f744904fdb ARTEMIS-1269 replication won't finish synchronization
(cherry picked from commit 6b2798a0fe02bcb5ca2f13b1431fd8dfe327d20e)
2017-07-01 00:47:50 -04:00
Clebert Suconic
c5e88c5e2d ARTEMIS-1256 PagingOMETest.testPageCleanup fails
Using a Wait condition.

This closes #1370

(cherry picked from commit 5c2144b7826c25e8510f870b588e873685291d74)
2017-06-28 10:09:44 -04:00