Commit Graph

1367 Commits

Author SHA1 Message Date
Hector Sanjuan
753322cdc1
gx publish 0.5.0
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-08-24 15:04:17 +02:00
Hector Sanjuan
2f417eb632
Release 0.5.0
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-08-24 15:03:22 +02:00
Hector Sanjuan
a78a0bd940
Merge pull request #510 from ipfs/0.5.0/changelog
Changelog for v0.5.0
2018-08-24 15:01:32 +02:00
Hector Sanjuan
2655bf47d2 Changelog for v0.5.0
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-08-24 15:00:28 +02:00
Hector Sanjuan
2d072d8b53
Merge pull request #519 from ipfs/godocs
Add/improve godoc descriptions for some modules.
2018-08-23 17:19:41 +02:00
Hector Sanjuan
0c5de3a849 Add/improve godoc descriptions for some modules.
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-08-23 14:14:06 +02:00
Hector Sanjuan
b9485626d1
Merge pull request #517 from ipfs/update/gx-versions
Gx-go 1.8.0 it's WAY faster.
2018-08-23 10:18:03 +02:00
Hector Sanjuan
0764409a0a
Merge pull request #518 from ipfs/fix/status-output
Small adjustment to "pin ls" human output in ctl.
2018-08-23 10:17:51 +02:00
Hector Sanjuan
5c4ebe7554 Small adjustment to "pin ls" human output in ctl.
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-08-22 13:06:10 +02:00
Hector Sanjuan
cc1af87243 Gx-go 1.8.0 it's WAY faster.
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-08-22 12:03:40 +02:00
Hector Sanjuan
2559655c81
gx publish 0.5.0-rc1
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-08-21 20:51:49 +02:00
Hector Sanjuan
fa2ba13ae2
Release 0.5.0-rc1
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-08-21 20:50:59 +02:00
Hector Sanjuan
d6e516b84a
Merge pull request #513 from ipfs/remove-go-ipfs-dep
AddParams: support "cid-version" and "hash" function.
2018-08-21 20:49:02 +02:00
Hector Sanjuan
0b60e330a3 Fix duplicate dep
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-08-21 20:06:12 +02:00
Hector Sanjuan
b266ff2fbf
Merge pull request #514 from ipfs/fix/466-proxy-repo-stat
Fix #466: Hijack repo/stat in the proxy and return aggregates from the cluster
2018-08-21 19:39:03 +02:00
Hector Sanjuan
05102c13a0 AddParams: support "cid-version" and "hash" function.
Additionally, remove dependency to go-ipfs after extraction from
"go-mfs".

License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-08-21 19:38:41 +02:00
Hector Sanjuan
f99c7933dd
Merge pull request #515 from ipfs/fix/webfile-gx
Use cmdkit WebFile.
2018-08-21 11:23:18 +02:00
Hector Sanjuan
9c3826fdc5 Use cmdkit WebFile.
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-08-21 02:12:36 +02:00
Hector Sanjuan
2ffa3d80de Fix 466: Hijack repo/stat in the proxy and return aggregates from the cluster.
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-08-20 20:43:27 +02:00
Hector Sanjuan
0b21a404e5
Merge pull request #511 from ipfs/fix/pin-ls-check
Fix PinLsCid and pins with maxdepth 0 after migration
2018-08-20 13:40:28 +02:00
Hector Sanjuan
d900ff8ff5
Merge pull request #509 from ipfs/feat/client-add
rest/client: Implement .Add(paths), which adds from local files and web files
2018-08-20 12:41:15 +02:00
Hector Sanjuan
2061029313 Fix hanging add in sharness.
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-08-20 12:08:49 +02:00
Hector Sanjuan
6c28d6bf3e Fix PinLsCid and pins with maxdepth 0 after migration
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-08-20 11:39:34 +02:00
Hector Sanjuan
b6182e0621 rest/client: Implement .Add(paths), which adds from local files and web files
.Add(paths) will interpret http* paths as WebFiles. These are read performing
a GET request to the location. Otherwise, the path is interpreted as a local
disk file/folder, and read from disk. ipfs-cluster-ctl has been updated
accordingly.

License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-08-20 11:07:23 +02:00
Hector Sanjuan
63fa1ba213
Merge pull request #505 from ipfs/fix/495-proxy-add
Fix #495: Hijack proxy /add correctly. Disable keep-alives.
2018-08-20 10:29:20 +02:00
Hector Sanjuan
77df433c2d
Merge pull request #504 from ipfs/fix/pinls
IPFSPinLsCid should try to find pins in the direct pinset too.
2018-08-20 10:10:32 +02:00
Hector Sanjuan
8d3510e98a
Merge pull request #507 from ipfs/fix/fast-repo-stat
IPFSHttp: Add "size-only=true" flag to repo/stat calls
2018-08-20 10:10:05 +02:00
Hector Sanjuan
2f59eaf966
Merge pull request #503 from ipfs/fix/sharding-state-upgrade
State migrations for sharding
2018-08-20 10:09:49 +02:00
Hector Sanjuan
5d991d651b
Merge pull request #508 from ipfs/feat/fix-testclusterspeerrejoin
Fix: TestClustersPeerRejoin was failing a lot since DHT feature.
2018-08-20 10:09:34 +02:00
Hector Sanjuan
be651da0d0 Fix: disable KeepAlives in server
See discussion in https://github.com/ipfs/go-ipfs/issues/5168

We cannot stream responses with keep-alives enabled.

I prefer this to not be a client feature, as otherwise users might end up
shooting themselves in the foot.

Note, the price is a corrupted request body which gets added
normally and gives wrong hashes!

License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-08-18 02:48:36 +02:00
Hector Sanjuan
0709652d38 Run sharness tests verbose
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-08-18 02:48:35 +02:00
Hector Sanjuan
ff8476e9b7 Fix: TestClustersPeerRejoin was failing a lot since DHT feature.
This uses Join rather than PeerAdd. Join ensures a DHT bootstrap
after successfully joining.

License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-08-18 02:48:35 +02:00
Hector Sanjuan
00a757fc0b Proxy/add: flush AddedOutput
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-08-18 02:48:35 +02:00
Hector Sanjuan
b2914c2516 Fix #495: Hijack proxy /add correctly.
No more hacks around /add. This uses the local adder when hijacking /add.
It supports the parameters and works pretty well with the ipfs CLI, showing
progress and everything.

License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-08-18 02:48:35 +02:00
Hector Sanjuan
eba96c3a26 Merge branch 'feat/fix-testclusterspeerrejoin' into fix/pinls
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-08-17 23:07:09 +02:00
Hector Sanjuan
5a0d4ed9a2 Merge branch 'feat/fix-testclusterspeerrejoin' into fix/fast-repo-stat
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-08-17 23:04:26 +02:00
Hector Sanjuan
c8e713134f Fix: TestClustersPeerRejoin was failing a lot since DHT feature.
This uses Join rather than PeerAdd. Join ensures a DHT bootstrap
after successfully joining.

License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-08-17 22:54:53 +02:00
Hector Sanjuan
ee8d7f7098 IPFSHttp: Add "size-only=true" flag to repo/stat calls
This will make them very fast.

Fixes #280

License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-08-17 16:53:40 +02:00
Hector Sanjuan
0f2a978bcd
Merge pull request #458 from ipfs/fix/340-races
Issue #340: fix some data races
2018-08-17 10:55:23 +02:00
Hector Sanjuan
e66a68dbef State migrations for sharding
This adds state migration to new state format version 5.

License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-08-15 13:28:24 +02:00
Hector Sanjuan
2e7e71d13f IPFSPinLsCid should try to find pins in the direct pinset too.
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-08-15 13:19:39 +02:00
Hector Sanjuan
5bbc699bb4 Issue #340: Fix some data races
Unfortunately, there are still some data races in yamux
https://github.com/libp2p/go-libp2p/issues/396 so we can't
enable this by default.

License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-08-15 12:27:01 +02:00
Hector Sanjuan
e86c2e6c59
Merge pull request #460 from ipfs/statelesstracker
implements a stateless pintracker
2018-08-15 11:04:38 +02:00
Hector Sanjuan
949abb25f0 Align stateless tracker with sharding
Also: Fixes #500

License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-08-14 20:51:01 +02:00
Hector Sanjuan
10fa7a13b5 Allow selecting pintracker with ipfs-cluster-service
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-08-14 19:57:14 +02:00
Hector Sanjuan
b8194143c2 Test with stateless tracker. Make map tracker default for tests.
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-08-14 19:18:26 +02:00
Hector Sanjuan
95683ac8f0 Remove unreachable code
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-08-14 18:38:38 +02:00
Hector Sanjuan
584f532bb1 Fix tests after rebase to master
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-08-14 15:18:16 +02:00
Adrian Lanzafame
c6eada9db5 uses new gorpc method to distinguish err type
License: MIT
Signed-off-by: Adrian Lanzafame <adrianlanzafame92@gmail.com>
2018-08-14 13:34:02 +02:00
Adrian Lanzafame
33f56e8867 stateless: reduce num of methods
License: MIT
Signed-off-by: Adrian Lanzafame <adrianlanzafame92@gmail.com>
2018-08-14 13:33:39 +02:00