good morning!!!!

Skip to content
Snippets Groups Projects
  1. May 15, 2019
  2. May 13, 2019
  3. May 11, 2019
  4. May 10, 2019
  5. Apr 25, 2019
    • Janoš Guljaš's avatar
      swarm/network: fix data races in TestInitialPeersMsg test (#19490) · 3873a731
      Janoš Guljaš authored
      * swarm/network: fix data races in TestInitialPeersMsg test
      
      * swarm/network: add Kademlia.Saturation method with lock
      
      * swarm/network: add Hive.Peer method to safely retrieve a bzz peer
      
      * swarm/network: remove duplicate comment
      
      * p2p/testing: prevent goroutine leak in ProtocolTester
      
      * swarm/network: fix data race in newBzzBaseTesterWithAddrs
      
      * swarm/network: fix goroutone leaks in testInitialPeersMsg
      
      * swarm/network: raise number of peer check attempts in testInitialPeersMsg
      
      * swarm/network: use Hive.Peer in Hive.PeerInfo function
      
      * swarm/network: reduce the scope of mutex lock in newBzzBaseTesterWithAddrs
      
      * swarm/storage: disable TestCleanIndex with race detector
      3873a731
  6. Apr 19, 2019
  7. Apr 17, 2019
  8. Apr 16, 2019
  9. Apr 11, 2019
    • Ferenc Szabo's avatar
      cmd/swarm: fix resource leaks in tests (#19443) · 26b50e3e
      Ferenc Szabo authored
      * swarm/api: fix file descriptor leak in NewTestSwarmServer
      
      Swarm storage (localstore) was not closed. That resulted a
      "too many open files" error if `TestClientUploadDownloadRawEncrypted`
      was run with `-count 1000`.
      
      * cmd/swarm: speed up StartNewNodes() by parallelization
      
      Reduce cluster startup time from 13s to 7s.
      
      * swarm/api: disable flaky TestClientUploadDownloadRawEncrypted with -race
      
      * swarm/storage: disable flaky TestLDBStoreCollectGarbage (-race)
      
      With race detection turned on the disabled cases often fail with:
      "ldbstore_test.go:535: expected surplus chunk 150 to be missing, but got no error"
      
      * cmd/swarm: fix process leak in TestACT and TestSwarmUp
      
      Each test run we start 3 nodes, but we did not terminate them. So
      those 3 nodes continued eating up 1.2GB (3.4GB with -race) after test
      completion.
      
      6b6c4d1c changed how we start clusters
      to speed up tests. The changeset merged together test cases
      and introduced a global cluster. But "forgot" about termination.
      
      Let's get rid of "global cluster" so we have a clear owner of
      termination (some time sacrifice), while leaving subtests to use the
      same cluster.
      26b50e3e
  10. Apr 10, 2019
  11. Apr 09, 2019
  12. Apr 08, 2019
  13. Apr 02, 2019
    • Viktor Trón's avatar
      swarm/network: hive bug: needed shallow peers are not sent to nodes beyond... · 05290150
      Viktor Trón authored
      swarm/network:   hive bug: needed shallow peers are not sent to nodes beyond connection's proximity order (#19326)
      
      * swarm/network: fix hive bug not sending shallow peers
      
      -  hive bug: needed shallow peers were not sent to nodes beyond connection's proximity order
      - add extensive protocol exchange tests for initial subPeersMsg-peersMsg exchange
      - modify bzzProtocolTester to allow pregenerated overlay addresses
      
      * swarm/network: attempt to fix hive persistance test
      
      * swarm/network: fix TestHiveStatePersistance (#1320)
      
      * swarm/network: remove trace lines from the hive persistance test
      
      * address PR review comments
      
      * swarm/network: address PR comments on TestInitialPeersMsg
      
       * eliminate *testing.T argument from bzz/hive protocoltesters
       * add sorting (only runs in test code) on peersMsg payload
       * add random (0 to MaxPeersPerPO) peers for each po
       * add extra peers closer to pivot than control
      05290150
  14. Mar 22, 2019
    • Louis Holbrook's avatar
      swarm/network: Use different privatekey for bzz overlay in sim (#19313) · 2f5b6cb4
      Louis Holbrook authored
      * cmd/swarm, p2p, swarm: Enable ENR in binary/execadapter
      
      * cmd/p2p/swarm: Remove comments + config.Enode nomarshal
      
      * p2p/simulations: Remove superfluous error check
      
      * p2p/simulation: Move init enode comment
      
      * swarm, p2p/simulations, cmd/swarm: Use nodekey in binary record sign
      
      * swarm/network, swarm/pss: Dervice bzzkey
      
      * swarm/pss: Remove unused function
      
      * swarm/network: Store swarm private key in simulation bucket
      
      * swarm/pss: Shorten TextProxNetwork shortrunning test timeout
      
      * swarm/pss: Increase prox test timeout
      
      * swarm/pss: Increase timeout slightly on shortrunning proxtest
      
      * swarm/network: Simplify bucket instantiation in servicectx func
      
      * p2p/simulations: Tcpport -> udpport
      
      * swarm/network, swarm/pss: Simplify + correct lock in servicefunc sim
      
      * swarm/network: Cleanup after rebase on extract swarm enode new
      
      * p2p/simulations, swarm/network: Make exec disc test pass
      
      * swarm/network: Prune ye olde comment
      
      * swarm/pss: Correct revised bzzkey method call
      
      * swarm/network: Clarify comment about privatekey generation data
      
      * swarm/pss: Fix syntax errors after rebase
      
      * swarm/network: Rename misleadingly named method
      
      (amend commit to trigger ci - attempt 5)
      2f5b6cb4
    • gluk256's avatar
      p2p/simulations: wait until all connections are recreated when uploading snapshot (#19312) · 8d041546
      gluk256 authored
      * swarm/network/simulation: test cases refactored
      
      * swarm/pss: minor refactoring
      
      * swarm/simulation: UploadSnapshot updated
      
      * swarm/network: style fix
      
      * swarm/pss: bugfix
      8d041546
    • Louis Holbrook's avatar
      cmd/swarm, p2p, swarm: Enable ENR in binary/execadapter (#19309) · 09924cbc
      Louis Holbrook authored
      * cmd/swarm, p2p, swarm: Enable ENR in binary/execadapter
      
      * cmd/p2p/swarm: Remove comments + config.Enode nomarshal
      
      * p2p/simulations: Remove superfluous error check
      
      * p2p/simulation: Move init enode comment
      
      * swarm/api: Check error in config test
      
      * swarm, p2p/simulations, cmd/swarm: Use nodekey in binary record sign
      
      * cmd/swarm: Make nodekey available for swarm api config
      09924cbc
  15. Mar 20, 2019
  16. Mar 16, 2019
    • gluk256's avatar
      swarm/pss: negihbourhood addressing simulation tests (#19278) · 6e401792
      gluk256 authored
      * swarm/pss: fixed bug in pss.process, test added
      
      * swarm/pss: test case updated
      
      * swarm/pss: WaitTillSnapshotRecreated() func added
      
      * swarm/pss: snapshot test updated
      
      * swarm/pss: WaitTillSnapshotLoaded() fixed
      
      * swarm/pss: gofmt applied
      
      * swarm/pss: refactoring, file renamed
      
      * swarm/pss: input data fixed
      
      * swarm/pss: race condition fixed
      
      * swarm/pss: test timeout increased
      
      * swarm/pss: eliminated the global variables
      
      * swarm/pss: tests added
      
      * swarm/pss: comments added
      
      * swarm/pss: comment fixed
      
      * swarm/pss: refactored according to review
      
      * swarm/pss: style fix
      
      * swarm/pss: increased timeout
      6e401792
  17. Mar 15, 2019
    • Janoš Guljaš's avatar
      f1809812
    • Louis Holbrook's avatar
      swarm, p2p: Prerequities for ENR replacing handshake (#19275) · 4b4f03ca
      Louis Holbrook authored
      * swarm/api, swarm/network, p2p/simulations: Prerequisites for handshake remove
      
      * swarm, p2p: Add full sim node configs for protocoltester
      
      * swarm/network: Make stream package pass tests
      
      * swarm/network: Extract peer and addr types out of protocol file
      
      * p2p, swarm: Make p2p/protocols tests pass + rename types.go
      
      * swarm/network: Deactivate ExecAdapter test until binary ENR prep
      
      * swarm/api: Remove comments
      
      * swarm/network: Uncomment bootnode record load
      4b4f03ca
  18. Mar 11, 2019
  19. Mar 08, 2019
    • Janoš Guljaš's avatar
      swarm/storage/localstore: global batch write lock (#19245) · 9a58a9b9
      Janoš Guljaš authored
      * swarm/storage/localstore: most basic database
      
      * swarm/storage/localstore: fix typos and comments
      
      * swarm/shed: add uint64 field Dec and DecInBatch methods
      
      * swarm/storage/localstore: decrement size counter on ModeRemoval update
      
      * swarm/storage/localstore: unexport modeAccess and modeRemoval
      
      * swarm/storage/localstore: add WithRetrievalCompositeIndex
      
      * swarm/storage/localstore: add TestModeSyncing
      
      * swarm/storage/localstore: fix test name
      
      * swarm/storage/localstore: add TestModeUpload
      
      * swarm/storage/localstore: add TestModeRequest
      
      * swarm/storage/localstore: add TestModeSynced
      
      * swarm/storage/localstore: add TestModeAccess
      
      * swarm/storage/localstore: add TestModeRemoval
      
      * swarm/storage/localstore: add mock store option for chunk data
      
      * swarm/storage/localstore: add TestDB_pullIndex
      
      * swarm/storage/localstore: add TestDB_gcIndex
      
      * swarm/storage/localstore: change how batches are written
      
      * swarm/storage/localstore: add updateOnAccess function
      
      * swarm/storage/localhost: add DB.gcSize
      
      * swarm/storage/localstore: update comments
      
      * swarm/storage/localstore: add BenchmarkNew
      
      * swarm/storage/localstore: add retrieval tests benchmarks
      
      * swarm/storage/localstore: accessors redesign
      
      * swarm/storage/localstore: add semaphore for updateGC goroutine
      
      * swarm/storage/localstore: implement basic garbage collection
      
      * swarm/storage/localstore: optimize collectGarbage
      
      * swarm/storage/localstore: add more garbage collection tests cases
      
      * swarm/shed, swarm/storage/localstore: rename IndexItem to Item
      
      * swarm/shed: add Index.CountFrom
      
      * swarm/storage/localstore: persist gcSize
      
      * swarm/storage/localstore: remove composite retrieval index
      
      * swarm/shed: IterateWithPrefix and IterateWithPrefixFrom Index functions
      
      * swarm/storage/localstore: writeGCSize function with leveldb batch
      
      * swarm/storage/localstore: unexport modeSetRemove
      
      * swarm/storage/localstore: update writeGCSizeWorker comment
      
      * swarm/storage/localstore: add triggerGarbageCollection function
      
      * swarm/storage/localstore: call writeGCSize on DB Close
      
      * swarm/storage/localstore: additional comment in writeGCSizeWorker
      
      * swarm/storage/localstore: add MetricsPrefix option
      
      * swarm/storage/localstore: fix a typo
      
      * swamr/shed: only one Index Iterate function
      
      * swarm/storage/localstore: use shed Iterate function
      
      * swarm/shed: pass a new byte slice copy to index decode functions
      
      * swarm/storage/localstore: implement feed subscriptions
      
      * swarm/storage/localstore: add more subscriptions tests
      
      * swarm/storage/localsore: add parallel upload test
      
      * swarm/storage/localstore: use storage.MaxPO in subscription tests
      
      * swarm/storage/localstore: subscription of addresses instead chunks
      
      * swarm/storage/localstore: lock item address in collectGarbage iterator
      
      * swarm/storage/localstore: fix TestSubscribePull to include MaxPO
      
      * swarm/storage/localstore: improve subscriptions
      
      * swarm/storage/localstore: add TestDB_SubscribePull_sinceAndUntil test
      
      * swarm/storage/localstore: adjust pull sync tests
      
      * swarm/storage/localstore: remove writeGCSizeDelay and use literal
      
      * swarm/storage/localstore: adjust subscriptions tests delays and comments
      
      * swarm/storage/localstore: add godoc package overview
      
      * swarm/storage/localstore: fix a typo
      
      * swarm/storage/localstore: update package overview
      
      * swarm/storage/localstore: remove repeated index change
      
      * swarm/storage/localstore: rename ChunkInfo to ChunkDescriptor
      
      * swarm/storage/localstore: add comment in collectGarbageWorker
      
      * swarm/storage/localstore: replace atomics with mutexes for gcSize and tests
      
      * swarm/storage/localstore: protect addrs map in pull subs tests
      
      * swarm/storage/localstore: protect slices in push subs test
      
      * swarm/storage/localstore: protect chunks in TestModePutUpload_parallel
      
      * swarm/storage/localstore: fix a race in TestDB_updateGCSem defers
      
      * swarm/storage/localstore: remove parallel flag from tests
      
      * swarm/storage/localstore: fix a race in testDB_collectGarbageWorker
      
      * swarm/storage/localstore: remove unused code
      
      * swarm/storage/localstore: add more context to pull sub log messages
      
      * swarm/storage/localstore: BenchmarkPutUpload and global lock option
      
      * swarm/storage/localstore: pre-generate chunks in BenchmarkPutUpload
      
      * swarm/storage/localstore: correct useGlobalLock in collectGarbage
      
      * swarm/storage/localstore: fix typos and update comments
      
      * swarm/storage/localstore: update writeGCSize comment
      
      * swarm/storage/localstore: global batch write lock
      
      * swarm/storage/localstore: remove global lock option
      
      * swarm/storage/localstore: simplify DB.Close
      9a58a9b9
    • Anton Evangelatov's avatar
      swarm/storage: add comparison towards leveldb.ErrNotFound (#19243) · bb55b0fb
      Anton Evangelatov authored
      * swarm/storage: add comparison towards leveldb.ErrNotFound
      
      * swarm/storage: wrap leveldb ErrNotFound
      bb55b0fb
    • Anton Evangelatov's avatar
      swarm: fix relationship between spans in open tracing (#19236) · 2cfe0bed
      Anton Evangelatov authored
      * swarm/network: propagate span with ctx
      
      * swarm/network: try to stop stream.send.request spans on time
      
      * swarm/storage: add chunk ref as a log to netstore.fetcher span
      2cfe0bed
    • Janoš Guljaš's avatar
  20. Mar 07, 2019
Loading