[ 
https://issues.apache.org/jira/browse/ARTEMIS-2450?focusedWorklogId=297231&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-297231
 ]

ASF GitHub Bot logged work on ARTEMIS-2450:
-------------------------------------------

                Author: ASF GitHub Bot
            Created on: 19/Aug/19 15:59
            Start Date: 19/Aug/19 15:59
    Worklog Time Spent: 10m 
      Work Description: michaelpearce-gain commented on pull request #2791: 
ARTEMIS-2450 page-size-bytes should not be greater than Integer.MAX_VALUE
URL: https://github.com/apache/activemq-artemis/pull/2791#discussion_r315288862
 
 

 ##########
 File path: 
artemis-server/src/main/java/org/apache/activemq/artemis/core/deployers/impl/FileConfigurationParser.java
 ##########
 @@ -1756,17 +1758,17 @@ private void parseClusterConnectionConfiguration(final 
Element e, final Configur
 
       double retryIntervalMultiplier = getDouble(e, 
"retry-interval-multiplier", 
ActiveMQDefaultConfiguration.getDefaultClusterRetryIntervalMultiplier(), 
Validators.GT_ZERO);
 
-      int minLargeMessageSize = getTextBytesAsIntBytes(e, 
"min-large-message-size", ActiveMQClient.DEFAULT_MIN_LARGE_MESSAGE_SIZE, 
Validators.GT_ZERO);
+      int minLargeMessageSize = getTextBytesAsIntBytes(e, 
"min-large-message-size", ActiveMQClient.DEFAULT_MIN_LARGE_MESSAGE_SIZE, 
Validators.POSITIVE_INT);
 
       long maxRetryInterval = getLong(e, "max-retry-interval", 
ActiveMQDefaultConfiguration.getDefaultClusterMaxRetryInterval(), 
Validators.GT_ZERO);
 
       int initialConnectAttempts = getInteger(e, "initial-connect-attempts", 
ActiveMQDefaultConfiguration.getDefaultClusterInitialConnectAttempts(), 
Validators.MINUS_ONE_OR_GE_ZERO);
 
       int reconnectAttempts = getInteger(e, "reconnect-attempts", 
ActiveMQDefaultConfiguration.getDefaultClusterReconnectAttempts(), 
Validators.MINUS_ONE_OR_GE_ZERO);
 
-      int confirmationWindowSize = getTextBytesAsIntBytes(e, 
"confirmation-window-size", 
ActiveMQDefaultConfiguration.getDefaultClusterConfirmationWindowSize(), 
Validators.GT_ZERO);
+      int confirmationWindowSize = getTextBytesAsIntBytes(e, 
"confirmation-window-size", 
ActiveMQDefaultConfiguration.getDefaultClusterConfirmationWindowSize(), 
Validators.POSITIVE_INT);
 
-      int producerWindowSize = getTextBytesAsIntBytes(e, 
"producer-window-size", 
ActiveMQDefaultConfiguration.getDefaultBridgeProducerWindowSize(), 
Validators.MINUS_ONE_OR_GT_ZERO);
+      int producerWindowSize = getTextBytesAsIntBytes(e, 
"producer-window-size", 
ActiveMQDefaultConfiguration.getDefaultBridgeProducerWindowSize(), 
Validators.MINUS_ONE_OR_POSITIVE_INT);
 
 Review comment:
   revert not needed
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Issue Time Tracking
-------------------

    Worklog Id:     (was: 297231)
    Time Spent: 3h  (was: 2h 50m)

> page-size-bytes should not be greater than Integer.MAX_VALUE
> ------------------------------------------------------------
>
>                 Key: ARTEMIS-2450
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-2450
>             Project: ActiveMQ Artemis
>          Issue Type: Bug
>          Components: Broker
>            Reporter: yangwei
>            Priority: Major
>          Time Spent: 3h
>  Remaining Estimate: 0h
>




--
This message was sent by Atlassian Jira
(v8.3.2#803003)

Reply via email to