Bug 1096466

Summary: Do not allow the state transfer chunk size to be <= 0
Product: [JBoss] JBoss Data Grid 6 Reporter: Dan Berindei <dberinde>
Component: InfinispanAssignee: Tristan Tarrant <ttarrant>
Status: CLOSED CURRENTRELEASE QA Contact: Martin Gencur <mgencur>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.2.0CC: afield, jdg-bugs
Target Milestone: ER2   
Target Release: 6.3.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-01-26 14:05:53 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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