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 109
[DO NOT MERGE] Pushsync pss #1768
Closed
Closed
Changes from all commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
7a665c9
swarm: push sync
nonsense 4fc27ae
storage/pushsync: update NetStore api from master
nonsense 2665b9a
storage/pushsync: add sleeps and a bit more tracing, change subscript…
acud b0c8dd1
chunk; fix "already exists" error tags.Uid no need for rng obj
zelig 4e9f090
storage/pushsync: fix storer initialisation
zelig 0da0443
swarm: push sync
nonsense 4cc7016
chunk: tags improvement
zelig c6c9a86
shed: linting fix
zelig 9ffe9b1
pot: DistanceCmp opposite of ProxCmp reflecting doc
zelig 70c9d5d
network: add IsClosestTo(addr, filter) using pot.DistanceCmp
zelig dc90c66
pss: fix hashpool init to use keccak256
zelig 52df2b3
pushsync, swarm.go: complete protocol - all tests pass non-flaky
zelig fba341a
api, chunk, network, pss, pushsync: act on review comments
zelig 98263cb
pushsync: simulation test params for appveyor
zelig b2e077c
pushsync: asynchronous send in sync forever loop; disabled ordering test
nonsense 51f3676
api/http: remove periodicTagTrace
zelig f634c9e
pushsync: close item span at end of roundtrip
zelig 536ec86
pushsync: amend pusher test, remove loopback sync option
zelig 49db062
pushsync: if no new items set timer to half a second
zelig 4023b04
pushsync: address PR review feedback
zelig d879022
pushsync, testutil: address review comments
zelig 9e18234
removed accidentally added files
zelig b6788c8
pushsync, pss: adapt simulation to new retrieval
zelig 59a1267
pss: Rebase cleanup
nolash 0f60551
pushsync: Correct call for retrieve
nolash a5dd509
pss: Rehabilitate tests failing due to async handler
nolash 090bf86
pushsync: Correct bzzaddr constructor call
nolash File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -51,7 +51,7 @@ func TestClientUploadDownloadRaw(t *testing.T) { | |
|
|
||
| // check the tag was created successfully | ||
| tag := srv.Tags.All()[0] | ||
| chunktesting.CheckTag(t, tag, 1, 1, 0, 1) | ||
| chunktesting.CheckTag(t, tag, 1, 1, 0, 0, 0, 1) | ||
| } | ||
|
|
||
| func TestClientUploadDownloadRawEncrypted(t *testing.T) { | ||
|
|
@@ -69,7 +69,7 @@ func TestClientUploadDownloadRawEncrypted(t *testing.T) { | |
|
|
||
| // check the tag was created successfully | ||
| tag := srv.Tags.All()[0] | ||
| chunktesting.CheckTag(t, tag, 1, 1, 0, 1) | ||
| chunktesting.CheckTag(t, tag, 1, 1, 0, 0, 0, 1) | ||
| } | ||
|
|
||
| func testClientUploadDownloadRaw(srv *swarmhttp.TestSwarmServer, toEncrypt bool, t *testing.T, data []byte, toPin bool) string { | ||
|
|
@@ -228,7 +228,7 @@ func TestClientUploadDownloadDirectory(t *testing.T) { | |
|
|
||
| // check the tag was created successfully | ||
| tag := srv.Tags.All()[0] | ||
| chunktesting.CheckTag(t, tag, 9, 9, 0, 9) | ||
| chunktesting.CheckTag(t, tag, 8, 8, 0, 0, 0, 8) | ||
|
|
||
| // check we can download the individual files | ||
| checkDownloadFile := func(path string, expected []byte) { | ||
|
|
@@ -372,7 +372,7 @@ func TestClientMultipartUpload(t *testing.T) { | |
|
|
||
| // check the tag was created successfully | ||
| tag := srv.Tags.All()[0] | ||
| chunktesting.CheckTag(t, tag, 9, 9, 0, 9) | ||
| chunktesting.CheckTag(t, tag, 8, 8, 0, 0, 0, 8) | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. we should check why the modified use of context in http/server results in different number of tags. a manifest is missing maybe? |
||
|
|
||
| // check we can download the individual files | ||
| checkDownloadFile := func(path string) { | ||
|
|
||
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -945,7 +945,7 @@ func testBzzTar(encrypted bool, t *testing.T) { | |
|
|
||
| // check that the tag was written correctly | ||
| tag := srv.Tags.All()[0] | ||
| chunktesting.CheckTag(t, tag, 4, 4, 0, 4) | ||
| chunktesting.CheckTag(t, tag, 3, 3, 0, 0, 0, 3) | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. we should check why the modified use of context in http/server results in different number of tags. a manifest is missing maybe? |
||
|
|
||
| swarmHash, err := ioutil.ReadAll(resp2.Body) | ||
| resp2.Body.Close() | ||
|
|
@@ -1081,7 +1081,7 @@ func TestBzzCorrectTagEstimate(t *testing.T) { | |
| <-time.After(10 * time.Millisecond) | ||
| case 1: | ||
| tag := srv.Tags.All()[0] | ||
| chunktesting.CheckTag(t, tag, 0, 0, 0, v.expChunks) | ||
| chunktesting.CheckTag(t, tag, 0, 0, 0, 0, 0, v.expChunks) | ||
| srv.Tags.Delete(tag.Uid) | ||
| done = true | ||
| } | ||
|
|
||
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should check why the modified use of context in
http/serverresults in different number of tags. a manifest is missing maybe?