Bug 1096466 - Do not allow the state transfer chunk size to be <= 0
Summary: Do not allow the state transfer chunk size to be <= 0
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Data Grid 6
Classification: JBoss
Component: Infinispan
Version: 6.2.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ER2
: 6.3.0
Assignee: Tristan Tarrant
QA Contact: Martin Gencur
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-05-10 18:24 UTC by Dan Berindei
Modified: 2015-01-26 14:05 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2015-01-26 14:05:53 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker ISPN-4160 0 Major Resolved Do not allow the state transfer chunk size to be <= 0 2015-09-07 14:55:12 UTC

Description Dan Berindei 2014-05-10 18:24:54 UTC
The state transfer chunk size is used in other places as well, and the case of chunkSize <= 0 has to be handled everywhere independently. 

StateTransferConfigurationBuilder should validate that chunkSize > 0, so that users of the chunk size setting don't need a default value.

The users will still be able to force state transfer to transfer everything at once with chunkSize == Integer.MAX_VALUE.

Comment 2 Alan Field 2014-05-19 09:34:44 UTC
Verified in JDG 6.3.0 ER3


Note You need to log in before you can comment on or make changes to this bug.