Otavio R. Piske
b0a148158d
ARTEMIS-2260 Refactor the library build code
...
This refactoring changes the native library build code to allow cross-compilation
and brings the following changes:
- Fix the link target to the one that was actually found by find_library
- Replace add definitions with standard CMake C flags handling options. Among
other things, this allow greater control over which compiler flags are used
and makes it easier to turn on/off debug flags by manipulating the
CMAKE_USER_C_FLAGS variable as documented in the README
- Updates the CMake scripts to allow cross-compilation of the artemis
native library into x86 32-bit code when building on a x86 64-bit system
- Updates the library documentation
- Defines C99 as the C standard in use so that the native library code can be
compiled in older GCC versions
- Renames the readme file so it can be better visualized on the web
2019-02-22 10:18:51 -05:00
Clebert Suconic
3de8b7bd96
This closes #2530
2019-02-22 10:11:22 -05:00
Otavio Rodolfo Piske
308486ad8e
ARTEMIS-2260 Refactor the context initialization code
...
The code is adjusted to ensure proper release of allocated memory when
failure occurs.
It also moves the common IOCB cleanup logic to allow reuse in the
deleteContext method.
2019-02-22 10:11:00 -05:00
Otavio Rodolfo Piske
24b3f08c88
ARTEMIS-2260 Fix an incorrect cleanup of the AIO I/O context.
...
Since the context is initialized on the stack, calling free on it is
incorrect and can lead to memory corruption. This replaces the cleanup
routines w/ io_queue_release which is the appropriate way to cleanup the
context.
2019-02-22 10:10:53 -05:00
Otavio Rodolfo Piske
6dafedb6af
ARTEMIS-2260 Prevent a null pointer dereference if unable to allocate memory for the
...
events member of the control structure. This could also cause the broker
to abruptly shutdown.
2019-02-22 10:10:39 -05:00
Otavio Rodolfo Piske
584a610f6a
ARTEMIS-2260 Fixes a potential NULL pointer dereference on the thin library
...
If the code fails to allocate native memory for the error message, it
will still perform the call to strcpy, which will result in a
segmentation fault to occur. This may cause the JVM to shutdown abruptly
potentially causing the original root cause to be hidden.
2019-02-22 10:10:28 -05:00
Clebert Suconic
059e56eb6a
This closes #2545
2019-02-21 19:59:26 -05:00
Francesco Nigro
c77e64a574
ARTEMIS-2245 Cleaning up Docker images preparation, run and docs
2019-02-21 19:59:25 -05:00
Clebert Suconic
75cebe90b4
This closes #2548
2019-02-21 19:58:35 -05:00
Michael André Pearce
c4e68b6046
ARTEMIS-2118 Enhanced Message Groups Support
...
Support using group buckets on a queue for better local group scaling
Support disabling message groups on a queue
Support rebalancing groups when a consumer is added.
2019-02-21 19:58:34 -05:00
Clebert Suconic
fead3e226f
This closes #2560
2019-02-21 15:04:44 -05:00
Otavio R. Piske
16909584c3
ARTEMIS-1952 NPE logged at warn if MQTT subscriber disconnects abruptly
...
Prevent a NullPointerException if no connection by the given clientId is
found on the cache of stored sessions
2019-02-21 19:36:37 +01:00
Clebert Suconic
951a061555
This closes #2557
2019-02-20 17:11:59 -05:00
Otavio R. Piske
6d65975f36
NO-JIRA Removes redundant initializers
2019-02-20 17:11:41 -05:00
Otavio R. Piske
69582ef642
NO-JIRA Inline some variables to simplify the code flow
2019-02-20 17:11:36 -05:00
Otavio R. Piske
d2bf02082f
NO-JIRA Simplify the assignment of the initialConnectors
2019-02-20 17:11:22 -05:00
Otavio R. Piske
3dce4e645a
NO-JIRA Remove unnecessary semicolon
2019-02-20 17:11:06 -05:00
Otavio R. Piske
eb582a676f
NO-JIRA Remove redundant modifiers
2019-02-20 17:11:00 -05:00
Clebert Suconic
38229dcbd0
This closes #2556
2019-02-20 17:04:52 -05:00
Clebert Suconic
285848969f
ARTEMIS-2251 Using Callbacks to delete large messages from IO
...
This closes #2549
2019-02-20 17:04:37 -05:00
Clebert Suconic
43c0868d72
NO-JIRA Improve test
2019-02-20 08:40:39 -05:00
Clebert Suconic
a68381904f
This closes #2552
2019-02-19 17:34:59 -05:00
Jiri Danek
b8df8dead3
NO-JIRA Fix a "Dereference null return value" Coverity Scan warning
...
The value checked for null was not the one that was subsequently used.
2019-02-19 17:34:59 -05:00
Clebert Suconic
8ff0cba3d6
This closes #2555
2019-02-19 16:10:40 -05:00
Clebert Suconic
d59bdca73f
ARTEMIS-2256 Update Topology back after a bridge reconnected
...
https://issues.apache.org/jira/browse/ARTEMIS-2256
2019-02-19 16:10:40 -05:00
Clebert Suconic
a797b7e5df
This closes #2553
2019-02-19 14:46:59 -05:00
Jiri Danek
99e39f5f1c
NO-JIRA Fix a "Inefficient Map Iterator" SpotBugs warning
...
https://spotbugs.readthedocs.io/en/stable/bugDescriptions.html#wmi-inefficient-use-of-keyset-iterator-instead-of-entryset-iterator-wmi-wrong-map-iterator
2019-02-19 14:46:58 -05:00
Clebert Suconic
5b535da984
This closes #2554
2019-02-19 14:46:15 -05:00
Justin Bertram
0cffe03d2e
ARTEMIS-2254 support useTopologyForLoadBalancing on JMS cf config
2019-02-19 14:46:15 -05:00
Clebert Suconic
d78cd81cc6
This closes #2551
2019-02-19 14:44:41 -05:00
Clebert Suconic
e1c1d6ef66
NO-JIRA Removing Debug Message from code
2019-02-19 14:44:40 -05:00
Michael Andre Pearce
603d72f4a0
This closes #2550
2019-02-14 13:42:14 +00:00
Jiri Danek
6fc6787227
NO-JIRA Fix a "Computation of average could overflow" SpotBugs warning
...
https://spotbugs.readthedocs.io/en/stable/bugDescriptions.html#im-computation-of-average-could-overflow-im-average-computation-could-overflow
2019-02-14 13:22:11 +01:00
Michael Andre Pearce
441c950302
This closes #2522
2019-02-14 00:20:52 +00:00
Francesco Nigro
4da9d84311
ARTEMIS-2239 Zero-copy NIO/MAPPED TimedBuffer
...
NIO/MAPPED journal types can use directly the buffer of TimedBuffer
to perform file writes, avoiding an expensive copy + zeroing.
2019-02-14 00:20:51 +00:00
Clebert Suconic
b80a78d885
ARTEMIS-1058 Fixing testsuite
...
Possible NPE that will happen on ReplicatedFailoverTest only
2019-02-12 09:42:31 +01:00
Clebert Suconic
8edca409f6
ARTEMIS-2246 Fixing testsuite
2019-02-08 18:42:02 -05:00
Justin Bertram
c41edf9bfd
This closes #2542
2019-02-07 15:20:04 -06:00
Michael André Pearce
efa48c9782
ARTEMIS-2081 listConfiguredQueues returns only queues created by config
...
Move configuration managed in persister before consumer dispatch so then the fix can be applied in 2.6.x branch safely.
2019-02-07 15:20:04 -06:00
Justin Bertram
14617936dc
This closes #2544
2019-02-07 14:19:19 -06:00
Clebert Suconic
d2df7b7e85
ARTEMIS-2246 Setting the max-disk-usage as 100 on the testsuite
...
This is to avoid issues with CI and Dev Machiens, while still preserving
a sensible default for production systems.
2019-02-07 15:07:49 -05:00
Justin Bertram
a38cdfa811
ARTEMIS-2246 clarify docs for defaults; change max-disk-usage default
2019-02-07 11:13:04 -05:00
Clebert Suconic
9b9fe8a73f
This closes #2532
2019-02-07 10:16:01 -05:00
Justin Bertram
4a1fc61fcc
ARTEMIS-2243 user/role ops for PropertiesLoginModule via mgmnt
2019-02-07 10:16:01 -05:00
Clebert Suconic
3f1a3ceb77
This closes #2539
2019-02-07 10:04:52 -05:00
Justin Bertram
98ca583313
ARTEMIS-2248 don't create sslEngine w/sniHost in NettyConnector
2019-02-07 10:04:52 -05:00
Clebert Suconic
cfc6fb4a83
This closes #2540
2019-02-06 18:32:30 -05:00
Justin Bertram
b31ac15760
ARTEMIS-2247 remove quotes from etc dir for Win service
2019-02-06 18:32:30 -05:00
Clebert Suconic
9c06d4b8b6
ARTEMIS-1058 Fixing checkstyle
2019-02-06 18:29:53 -05:00
Clebert Suconic
fe8c4a3bb5
This closes #2534
2019-02-06 10:02:25 -05:00