-
Enhancement
-
Resolution: Done
-
Major
-
11.0.0.CR1
-
None
There are several attributes defined from ActiveMQ Artemis configuration parameters in ActiveMQClient.java and ActiveMQDefaultConfiguration.java are allowed to take value -1.
As they miss proper InfiniteOrPositiveValidators, they can also take any negative values which is incorrect.
ActiveMQClient.java public static final long DEFAULT_CLIENT_FAILURE_CHECK_PERIOD_INVM = -1; public static final long DEFAULT_CONNECTION_TTL_INVM = -1; public static final int DEFAULT_CONSUMER_MAX_RATE = -1; public static final int DEFAULT_CONFIRMATION_WINDOW_SIZE = -1; public static final int DEFAULT_PRODUCER_MAX_RATE = -1; public static final int DEFAULT_THREAD_POOL_MAX_SIZE = -1; ActiveMQDefaultConfiguration.java private static long DEFAULT_CONNECTION_TTL_OVERRIDE = -1; private static int DEFAULT_JOURNAL_POOL_FILES = -1; private static long DEFAULT_CONNECTION_TTL_OVERRIDE = -1; private static int DEFAULT_JOURNAL_PERF_BLAST_PAGES = -1; private static long DEFAULT_SERVER_DUMP_INTERVAL = -1; private static long DEFAULT_MEMORY_MEASURE_INTERVAL = -1; private static int DEFAULT_BRIDGE_INITIAL_CONNECT_ATTEMPTS = -1; private static int DEFAULT_BRIDGE_RECONNECT_ATTEMPTS = -1; private static int DEFAULT_BRIDGE_PRODUCER_WINDOW_SIZE = -1; private static int DEFAULT_CLUSTER_INITIAL_CONNECT_ATTEMPTS = -1; private static int DEFAULT_CLUSTER_RECONNECT_ATTEMPTS = -1; private static int DEFAULT_HAPOLICY_BACKUP_REQUEST_RETRIES = -1; private static int DEFAULT_GROUPING_HANDLER_GROUP_TIMEOUT = -1;
- is cloned by
-
JBEAP-14110 Apply InfiniteOrPositiveValidators to messaging attributes allow valid value -1
- Closed
- relates to
-
WFLY-9706 Newly added InfiniteOrPositiveValidators to messaging attributes should just print warning if negative values are not -1
- Closed
-
JBEAP-13451 [GSS](7.2.0) Cannot set -1 value for connection-ttl via management console
- Closed