Skip to content
This repository has been archived by the owner on Feb 18, 2021. It is now read-only.

Add test hook to have empty and very short extents #189

Merged
merged 6 commits into from
May 8, 2017

Conversation

GuillaumeBailey
Copy link
Contributor

No description provided.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.2%) to 67.785% when pulling 93e886b on inputEmpty into 0486887 on master.

if common.GetRandInt64(0, 1) == 0 { // 50% chance
length = 0 // Empty extent with 25% probability with the test override
}
length = common.GetRandInt64(1, 20) // 25% chance of very short extent with the test override
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"20" for a max is probably too small .. I'd go with something a little over the "initial-credits" sent by outputhost to a replica; so we have extents that are consumed with one credit refresh and some with a few. I think the default initial-credits is 10,000.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.1%) to 67.834% when pulling e7ea1d4 on inputEmpty into d659679 on master.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.2%) to 67.95% when pulling 50c7d84 on inputEmpty into d659679 on master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.05%) to 67.677% when pulling dd7f5c8 on inputEmpty into d659679 on master.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.4%) to 68.173% when pulling dd7f5c8 on inputEmpty into d659679 on master.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.05%) to 67.78% when pulling 93c9214 on inputEmpty into d659679 on master.

@GuillaumeBailey GuillaumeBailey merged commit 49e4b82 into master May 8, 2017
@GuillaumeBailey GuillaumeBailey deleted the inputEmpty branch May 8, 2017 19:20
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants