2993 Commits

Author SHA1 Message Date
Clebert Suconic
ee3669e422 ARTEMIS-1175 fix memory leak
(cherry picked from commit b136fed48f756071bbf9542e94ae6448c37881f2)
(cherry picked from commit f63ffc7af5d96fd1a6785a12d5ce3ae504831269)
2017-05-26 15:58:20 -04:00
Andy Taylor
1cbadb08d7 This closes #1273 ARTEMIS-1165 Artemis 1.x JMS bindings doesn't handle JDBC network problems 2017-05-17 14:21:06 +01:00
Francesco Nigro
fa8283f56c ARTEMIS-1165 Artemis 1.x JMS bindings doesn't handle JDBC network problems 2017-05-17 15:00:10 +02:00
Justin Bertram
7ed40326c8 ARTEMIS-1154 tweak logic to support previous semantics
(cherry picked from commit 88e185d2b915e4827803dc7302152c6087924211)
2017-05-11 20:29:42 -04:00
Justin Bertram
7e4de767b7 ARTEMIS-1154 isolated backup fails over
Even if there is no address/url configured for the NetworkHealthCheck
an isolated backup will still fail-over potentially causing split-brain.

(cherry picked from commit 5cb5c8a6dc7179078f099d5455343e1f18fd3398)
2017-05-09 16:41:14 -04:00
Clebert Suconic
c7dc04c2af [maven-release-plugin] prepare for next development iteration 2017-05-08 21:00:29 -04:00
Clebert Suconic
ae41632bbe [maven-release-plugin] prepare release 1.5.5 1.5.5 2017-05-08 21:00:17 -04:00
Francesco Nigro
25094f2721 ARTEMIS-1151 Adapting TimedBuffer and NIO Buffer Pooling
- NIO/ASYNCIO new TimedBuffer with adapting batch window heuristic
- NIO/ASYNCIO improved TimedBuffer write monitoring with
  lightweight concurrent performance counters
- NIO/ASYNCIO journal/paging operations benefit from less buffer copy
- NIO/ASYNCIO any buffer copy is always performed with raw batch copy
  using SIMD instrinsics (System::arrayCopy) or memcpy under the hood
- NIO improved clear buffers using SIMD instrinsics (Arrays::fill) and/or memset
- NIO journal operation perform by default TLABs allocation pooling (off heap)
  retaining only the last max sized buffer
- NIO improved file copy operations using zero-copy FileChannel::transfertTo
- NIO improved zeroing using pooled single OS page buffer to clean the file
  + pwrite (on Linux)
- NIO deterministic release of unpooled direct buffers to avoid OOM errors
  due to slow GC
- Exposed OS PAGE SIZE value using Env class

(cherry picked from commit 21c9ed85cf6b9a53debdd32747bd42b2e733da80)
2017-05-08 18:31:23 -04:00
Clebert Suconic
5ec545a792 This closes #1254 2017-05-05 14:48:44 -04:00
dOkI
e4c4539c8f ARTEMIS-874: ThreadGroup memory leak 2017-05-05 22:10:59 +05:00
Justin Bertram
94f721e88b This closes #1251 2017-05-04 10:08:00 -05:00
Bernd Gutjahr
88e629a7ae ARTEMIS-1112: Added wait-for-activation option to shared-store-master config
Added a wait-for-activation option to shared-store master HA policies.
This option is enabled by default to ensure unchanged server startup behavior.

If this option is enabled, ActiveMQServer.start() with a shared-store master server will not return
before the server has been activated.
If this options is disabled, start() will return after a background activation thread has been started.
The caller can use waitForActivation() to wait until server is activated, or just check the current activation status.

(cherry picked from commit 6017e305d90664b4bf5b8f891e43514907df9a4b)
(cherry picked from commit 7aa50546b3dc6c012bd7d4118d82055ffd1e1226)
2017-05-04 11:28:12 +02:00
Clebert Suconic
468b8a954b ARTEMIS-1140: Trivial test fix
(cherry picked from commit 0146109d6a06f9702f245034a43c49dffc5779bd)
2017-05-03 16:41:42 -04:00
Clebert Suconic
534fd8093d ARTEMIS-1140 Avoid lock on queue for message counts
(cherry picked from commit 33f2ad65c915a8fa2c3606271f106bf5703ace83)
2017-05-03 16:41:31 -04:00
Clebert Suconic
6f0babb368 This closes #1245 2017-05-03 12:31:45 -04:00
Jeff Mesnil
64c89b6874 [ARTEMIS-1043] Support IPv6 in NettyConnector
Wrap the host added to the HTTP request headers with
IPV6Util.encloseHost to ensure that load balancers that reads the header
will have a valid IPv6 address.

JIRA: https://issues.apache.org/jira/browse/ARTEMIS-1043
2017-05-03 09:56:24 +02:00
Andy Taylor
a03db5baf0 This closes #1219 JDBC update and test fix 2017-04-21 10:55:56 +01:00
Andy Taylor
56a18759a7 no jira - fix test 2017-04-21 10:39:25 +01:00
Martyn Taylor
9c013e74cb ARTEMIS-1125 Persist JMS Bindings in Database on JDBC 2017-04-20 21:04:26 +01:00
Martyn Taylor
8a3f4ccd6f This closes #1216 2017-04-20 19:52:20 +01:00
Francesco Nigro
87bde15f38 ARTEMIS-1124 JDBC Network Timeout configuration
(cherry picked from commit a639774b54d31fd06c906f8ae42b9733f96e569b)
2017-04-20 19:45:19 +02:00
Martyn Taylor
ec085b8ea0 This closes #1212 2017-04-19 09:36:37 +01:00
Clebert Suconic
d8ff3f500f ARTEMIS-1115 Traces and tests on JDBC Persistence 2017-04-19 00:43:40 -04:00
Martyn Taylor
2ccc4e14f1 ARTEMIS-1115 Call CriticalIOListener on JDBC Error 2017-04-19 00:35:48 -04:00
Francesco Nigro
c35960f6a4 ARTEMIS-1084 Throw RunTime on bad Oracle table size
(cherry picked from commit aa9ac4a914c18ef9421c769f8cb40e1a6b3b9972)
2017-04-17 11:04:46 +01:00
Clebert Suconic
65481ef46a ARTEMIS-1114 Improving some comment 2017-04-14 18:07:54 -04:00
Clebert Suconic
ec9615a01a ARTEMIS-1114 Missing records after compacting
This is fixing an issue introduced on 4b47461f03a607b9ef517beb2a1666ffae43a2a7 (ARTEMIS-822)
The Transactions were being looked up without the readLock and some of the controls for Read and Write lock
were broken after this.

(cherry picked from commit ddacda50626ef2cd5ccf74a3149eccbbda4a9d84)
2017-04-14 01:24:45 -04:00
Bernd Gutjahr
f07e592a66 ARTEMIS-1108: Removed AIOFileLockManager
AIOFileLockManager doesn't work on NFS-mounted share store directories.
Since the GFS2 bug https://bugzilla.redhat.com/show_bug.cgi?id=678585
has been fixed end of 2011, the class AIOFileLockManager is no longer needed and I have removed it.

(cherry picked from commit 557f02ba4d721620e53ae1a45cb879d653e4fab2)
2017-04-12 11:07:31 -04:00
Martyn Taylor
75994b5fb2 This closes #1195 2017-04-11 10:47:47 +01:00
Francesco Nigro
3c33632882 ARTEMIS-1098 Improve flow control while streaming large messages
(cherry picked from commit c6d24e9073d0793350c24234f85f8d4532d250ff)
2017-04-11 10:47:46 +01:00
Martyn Taylor
e82ef026b3 This closes #1192 2017-04-11 10:46:57 +01:00
Francesco Nigro
a9fbd22fcb ARTEMIS-1089 fixing compilation 2017-04-11 07:30:06 +02:00
Clebert Suconic
c30e7cd1da ARTEMIS-1089 fixing compilation 2017-04-10 12:50:15 -04:00
Clebert Suconic
8a4a307653 ARTEMIS-1089 Improving flow control on replication
(Cherry picked from 911888e8d19c98400a68f969b1c8f86bff51fa17)
2017-04-07 15:30:21 -04:00
Justin Bertram
f8be6a460d This closes #1178 2017-04-06 19:58:47 -05:00
Jeff Mesnil
a97303118b [ARTEMIS-1043] Support IPv6 in NettyConnector
Call IPV6Util.encloseHost when creating the uri used to send the HTTP
ugrade request to ensure that IPv6 address are properly enclosed.

JIRA: https://issues.apache.org/jira/browse/ARTEMIS-1043
2017-04-06 19:58:47 -05:00
Clebert Suconic
f428f53e16 This closes #1152 2017-04-06 13:36:18 -04:00
Francesco Nigro
55f5124932 ARTEMIS-1025 Improve flow control on NettyConnection
(cherry picked from commit 27cfb2d90208403cec6727dd595f9dd1380ef441)
2017-04-06 18:51:58 +02:00
Clebert Suconic
7929fff893 ARTEMIS-1089 Fixing Replication catchup slow 2017-04-03 12:58:13 +01:00
Clebert Suconic
b819026dfc ARTEMIS-1056 Improving allocations on InVM Transport 2017-04-03 12:58:13 +01:00
Clebert Suconic
c2989e1742 ARTEMIS-1056 Removing PartialPooledByteBufAllocator 2017-04-03 12:56:21 +01:00
Martyn Taylor
200088778e ARTEMIS-1085 Perform storelineup on appendRecord
(cherry picked from commit 120b8aa7ad314b30bca082fb4f809bfa15a1dea1)
2017-04-03 12:12:33 +01:00
Martyn Taylor
bae011bafb ARTEMIS-1087 Make InVM buffer pooling configurable
(cherry picked from commit 8760b3ddfd0ea52a0417ce91b6abe4840ca5ddca)
2017-04-03 12:12:33 +01:00
Martyn Taylor
7e4cb4d181 ARTEMIS-1084 Throw RunTime on bad Oracle table size
(cherry picked from commit 42bf845)
2017-04-03 12:12:33 +01:00
Bernd Gutjahr
f94f8f4718 ARTEMIS-1078 Improving ActiveMQThreadPoolExecutor
This is now considering only threads waiting for the queue to get new tasks as idle.

The thread pool maintained a counter of active threads, but that counter was increased
too late in the beforeExecute method. Submitting a task created a new thread.
If now a second task was submitter before the new thread had started to execute it's task,
the second task was queued without creating a 2nd thread. So the second task was only
executed after the first task had been completed - even if the thread pool's
maximum number of thread had not been reached.

This fix now maintains the delta between the number those threads that are currently waiting
in the queue's poll or take methods as idle threads, and the number of queued tasks.
It creates new threads unless there are enough idle threads to pick up all queued tasks.

This closes #1144

(cherry picked from commit 5a31e7035354516664087a65ac97e1a6f4c13f14)
2017-03-31 19:02:24 -04:00
Clebert Suconic
ea01aeb65e This closes #1154 2017-03-29 09:59:09 -04:00
Francesco Nigro
ec3ed04d08 ARTEMIS-1036 Streaming huge messages between cluster nodes causes java.lang.OutOfMemoryError: Direct buffer memory
(cherry picked from commit 1686b3545d14cdf591e00e6d04228b48b2b74a9f)
2017-03-29 15:09:25 +02:00
Justin Bertram
20f5554e8d This closes #1148 2017-03-28 20:33:39 -05:00
Armand Roelens
9330fc8546 ARTEMIS-1074 Acceptors/Connectors now start up when configured to use SSL and a password codec
(cherry picked from commit 3ceb3328664e3dfa1dbeb24bad45115e2f1970c4)
2017-03-28 17:40:35 -07:00
Justin Bertram
4e8a98f2be This closes #1137 2017-03-27 22:02:24 -05:00