This repository was archived by the owner on Aug 2, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 112
GC quantiles (continuation) #2077
Open
tzdybal
wants to merge
18
commits into
ethersphere:master
Choose a base branch
from
etclabscore:gc-quantiles-continuation
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
GC quantiles (continuation) #2077
tzdybal
wants to merge
18
commits into
ethersphere:master
from
etclabscore:gc-quantiles-continuation
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4c2c460
to
72f23b8
Compare
72f23b8
to
3355287
Compare
9635f35
to
4fe64b9
Compare
4fe64b9
to
365ffb7
Compare
9b954e5
to
946c411
Compare
Reference to local variable was returned instead of reference to element in underlying slice.
Even more complicated test - assumes that there are multiple indexes in database (there are many index prefixes), including empty index. There are test cases that checks both positive and erroneous scenarios. Tests are failing, as implementation is incorrect (in many ways).
+ more test cases
Most important issue: quantiles.Set was not altering the original object. This is because, reference to the receiver is passed as a value, so the substitution of `q` with `append` function has only local scope. Second of all, fraction fields needs public visibility, in order to be properly JSON encoded/decoded.
946c411
to
5169578
Compare
6 tasks
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Work in Progress PR for work related to garbage collection with quantiles, for better visibility.