[
https://issues.apache.org/jira/browse/ARTEMIS-2450?focusedWorklogId=295928&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-295928
]
ASF GitHub Bot logged work on ARTEMIS-2450:
-------------------------------------------
Author: ASF GitHub Bot
Created on: 16/Aug/19 01:36
Start Date: 16/Aug/19 01:36
Worklog Time Spent: 10m
Work Description: wy96f 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_r314557230
##########
File path:
artemis-server/src/test/java/org/apache/activemq/artemis/core/config/impl/FileConfigurationParserTest.java
##########
@@ -257,6 +257,26 @@ public void
testParsingDefaultServerConfigWithENCMaskedPwd() throws Exception {
assertEquals("helloworld", bconfig.getPassword());
}
+ @Test
+ public void testParsingOverflowPageSize() throws Exception {
+ FileConfigurationParser parser = new FileConfigurationParser();
Review comment:
> E.g. other sizes are quite happily long currently also. Why is this special
I see in Page::write()/Page::read() all operations are limited to int range,
such as PagingStoreImpl::currentPageSize, Page::size, and local variables like
fileSize, processedBytes in Page::readFromSequentialFile(), etc.
> This test, test the new change, but doesnt test for what we are protecting
from. E.g whats the underlying issue being fixed
I'm not sure what you mean. We're protecting page-size-bytes from being
greater than Integer.MAX_VALUE(2147483647). So if we set page-size-bytes to
2147483648, the broker is expected to fail fast to throw exception , correct?
----------------------------------------------------------------
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:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 295928)
Time Spent: 1h (was: 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: 1h
> Remaining Estimate: 0h
>
--
This message was sent by Atlassian JIRA
(v7.6.14#76016)