plugeth/swarm/storage
Ferenc Szabo 26b50e3ebe cmd/swarm: fix resource leaks in tests (#19443)
* 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.

6b6c4d1c27 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.
2019-04-11 12:44:15 +02:00
..
encryption vendor, crypto, swarm: switch over to upstream sha3 package 2019-01-04 09:26:07 +02:00
feed swarm/*: remove redundant type specifiers (#19089) 2019-02-25 08:58:18 +01:00
localstore swarm/storage/localstore: global batch write lock (#19245) 2019-03-09 00:06:39 +01:00
mock swarm: mock store listings (#19157) 2019-02-23 10:47:33 +01:00
chunker_test.go vendor, crypto, swarm: switch over to upstream sha3 package 2019-01-04 09:26:07 +02:00
chunker.go swarm/network: measure time of messages in priority queue (#19250) 2019-03-20 21:30:34 +01:00
common_test.go swarm/chunk: move chunk related declarations to chunk package (#19170) 2019-02-26 16:09:32 +01:00
database.go swarm: remove unused/dead code (#18351) 2018-12-23 17:31:32 +01:00
error.go swarm/chunk: move chunk related declarations to chunk package (#19170) 2019-02-26 16:09:32 +01:00
filestore_test.go cmd/swarm: hashes command (#19008) 2019-02-07 13:51:24 +01:00
filestore.go swarm/storage: fix HashExplore concurrency bug ethersphere#1211 (#19028) 2019-02-13 00:17:44 +01:00
hasherstore_test.go swarm: Chunk refactor (#17659) 2018-09-13 11:42:19 +02:00
hasherstore.go swarm/chunk: move chunk related declarations to chunk package (#19170) 2019-02-26 16:09:32 +01:00
ldbstore_test.go cmd/swarm: fix resource leaks in tests (#19443) 2019-04-11 12:44:15 +02:00
ldbstore.go swarm/storage: add comparison towards leveldb.ErrNotFound (#19243) 2019-03-08 17:28:57 +01:00
localstore_test.go swarm/chunk: move chunk related declarations to chunk package (#19170) 2019-02-26 16:09:32 +01:00
localstore.go swarm/chunk: move chunk related declarations to chunk package (#19170) 2019-02-26 16:09:32 +01:00
memstore_test.go swarm: CI race detector test adjustments (#19017) 2019-02-08 17:07:11 +01:00
memstore.go swarm: Debug API and HasChunks() API endpoint (#18980) 2019-02-07 15:49:19 +01:00
netstore_test.go swarm/chunk: move chunk related declarations to chunk package (#19170) 2019-02-26 16:09:32 +01:00
netstore.go swarm/network: measure time of messages in priority queue (#19250) 2019-03-20 21:30:34 +01:00
pyramid.go swarm/chunk: move chunk related declarations to chunk package (#19170) 2019-02-26 16:09:32 +01:00
schema.go swarm/storage: fix garbage collector index skew (#18080) 2018-11-13 15:22:53 +01:00
swarmhasher.go swarm: network rewrite merge 2018-06-21 21:10:31 +02:00
types.go swarm/chunk: move chunk related declarations to chunk package (#19170) 2019-02-26 16:09:32 +01:00