Hector Sanjuan
b34a2d54f9
Merge pull request #820 from ipfs/fix/small-fixes-crdts
...
Some more small fixes
2019-06-27 17:52:03 +01:00
Hector Sanjuan
80cf0ed695
Merge pull request #815 from ipfs/fix/false-positive-alerts
...
fix how accrual fd treats ttls
2019-06-27 17:50:51 +01:00
Hector Sanjuan
e240c2a19f
Simplify failed peer detection
2019-06-27 16:55:51 +01:00
Adrian Lanzafame
2255ba737b
fix ttl expiration check
...
License: MIT
Signed-off-by: Adrian Lanzafame <adrianlanzafame92@gmail.com>
2019-06-25 12:54:41 +02:00
Hector Sanjuan
563a0da9ae
Do alert for all metric types
2019-06-23 10:14:29 +01:00
Adrian Lanzafame
27295c10ac
fix check failed
...
License: MIT
Signed-off-by: Adrian Lanzafame <adrianlanzafame92@gmail.com>
2019-06-23 10:14:29 +01:00
Adrian Lanzafame
5e09da9d63
address pr feedback
...
License: MIT
Signed-off-by: Adrian Lanzafame <adrianlanzafame92@gmail.com>
2019-06-23 10:14:29 +01:00
Adrian Lanzafame
e1b40d49c1
fix how accrual fd treats ttls
...
License: MIT
Signed-off-by: Adrian Lanzafame <adrianlanzafame92@gmail.com>
2019-06-23 10:14:29 +01:00
Hector Sanjuan
1802fd9705
Merge pull request #823 from ipfs/fix/badger-deps
...
Fix badger breaking
2019-06-23 10:13:56 +01:00
Hector Sanjuan
353d403b3a
Fix badger breaking EVERYTHING
2019-06-23 09:57:45 +01:00
Kishan Mohanbhai Sagathiya
9b98e5cd18
Addressed review
...
- Fixed coverage by adding progress to response in mock
- Used switch instead of ifs
License: MIT
Signed-off-by: Kishan Mohanbhai Sagathiya <kishansagathiya@gmail.com>
2019-06-20 23:19:07 +05:30
Hector Sanjuan
d5f8a30da9
Release 0.11.0-rc4
2019-06-14 14:43:31 +02:00
Hector Sanjuan
9d5a5b77c7
Merge pull request #819 from ipfs/deps/libp2p-core-refactor
...
Update deps along with go-libp2p-core refactor
2019-06-14 13:42:54 +01:00
Hector Sanjuan
b804e61ef0
Update deps along with go-libp2p-core refactor
...
Lots of rewrites in imports...
2019-06-14 13:10:45 +02:00
Hector Sanjuan
10947c837a
pstoremgr: reduce verbosity
...
Since we bootstrap regularly know this causes lots of verbosity
in the console, specially when a bootstrap peer is not there.
2019-06-13 23:16:58 +02:00
Hector Sanjuan
97549152cc
Release 0.11.0-rc3
2019-06-13 17:31:51 +02:00
Hector Sanjuan
b1b0e119d3
Merge pull request #818 from ipfs/fix/dnsaddr
...
Fix importing peers using /dnsaddr/
2019-06-13 16:31:32 +01:00
Hector Sanjuan
83c4866100
Remove Leftover println
2019-06-13 17:27:31 +02:00
Hector Sanjuan
0b610dead1
Fix importing peers using /dnsaddr/
...
In this case we need to resolve (unlike with /dns4/), since otherwise
we may not know which peer ID the /dnsaddr is about.
2019-06-13 17:24:07 +02:00
Hector Sanjuan
0e1c0d2eb1
Merge pull request #814 from ipfs/fix/alerts-never-stop
...
alerting for peers stops after one alert
2019-06-11 13:09:34 +01:00
Hector Sanjuan
27368ab077
Fix: alert at most once PER METRIC
...
Before it would alert at most once per peer, which prevented some metrics
from alerting at all.
2019-06-11 11:44:12 +02:00
Hector Sanjuan
a0d93fc62c
Change MaxAlertThreshold to 1
2019-06-11 10:54:12 +02:00
Adrian Lanzafame
14841e4e24
address pr feedback
...
License: MIT
Signed-off-by: Adrian Lanzafame <adrianlanzafame92@gmail.com>
2019-06-11 10:54:12 +02:00
Adrian Lanzafame
7459917275
alerting for peers stops after one alert
...
License: MIT
Signed-off-by: Adrian Lanzafame <adrianlanzafame92@gmail.com>
2019-06-11 10:54:12 +02:00
Hector Sanjuan
6d7daee875
Release 0.11.0-rc2
2019-06-10 16:18:34 +02:00
Hector Sanjuan
ad58420bdd
Merge pull request #808 from ipfs/fix/base32
...
Fix: default base32 in IPFS breaks cluster pin-ls
2019-06-10 14:53:48 +01:00
Hector Sanjuan
f1707e40f2
Merge pull request #811 from ipfs/rpi-fixes
...
Multiple fixes to CRDTs
2019-06-10 14:53:34 +01:00
Hector Sanjuan
ad710d5ca6
Merge pull request #816 from ipfs/crdt/trust-all
...
crdt: Allow to configure CRDT in "TrustAll" mode
2019-06-10 13:21:35 +01:00
Hector Sanjuan
b349aacc83
crdt: Allow to configure CRDT in "TrustAll" mode
...
Specifying "*" as part of "trusted_peers" in the configuration will
result in trusting all peers.
This is useful for private clusters where we don't want to list every
peer ID in the config.
2019-06-10 13:35:25 +02:00
Hector Sanjuan
65ad06c9c9
pstoremgr: Rename success to connectedPeers
2019-06-10 11:22:39 +02:00
Hector Sanjuan
2d5b31ad6a
Fix #787 : reBoostrap reguarly
...
This should fix a problem pointed out in #787 about a peer not
being able to recover in CRDT mode after a router re-start (when we lose
all connections to all peers). We attempt to re-open connections to
boostrap peers regularly.
2019-06-09 15:12:19 +02:00
Hector Sanjuan
e665704962
cluster.go: collect active goroutines on shutdown
...
It seems we did not add any c.wg.Add(1) goroutines so shutdown
did not wait for anything to finish.
2019-06-09 15:12:19 +02:00
Hector Sanjuan
ef2ec2f5b0
Fix #805 : Make bootstrapped peers appear as part of the pinset right away
2019-06-09 15:12:19 +02:00
Hector Sanjuan
f0b7d2a839
crdt: fix: Create the ipfslite peer before peermanager bootstrapping
...
Bitswap needs to exist before connections are opened!
Fixes #798
2019-06-09 15:12:19 +02:00
Hector Sanjuan
451b91d8d1
crdt: fix wrapping the ipfslite dag syncer
...
No need to wrap it anymore since we don't time out in it.
Also, it was preventing the use of bitswap sessions because it does
not implement them.
2019-06-07 23:33:52 +02:00
Hector Sanjuan
cded46f377
Merge pull request #776 from ipfs/fix/expose-badger-conf
...
expose badger loading mode conf
2019-06-07 20:48:28 +01:00
Hector Sanjuan
588596d28e
Merge branch 'master' into fix/expose-badger-conf
2019-06-07 21:38:09 +02:00
Hector Sanjuan
445e48445e
Release 0.11.0-rc1
2019-06-07 19:16:15 +02:00
Hector Sanjuan
db050ab435
Fix: default base32 in IPFS breaks cluster pin-ls
...
The switch to base32 as default output format for cidv1 keys in IPFS pin/ls
responses causes an error in PinLsCid as the base32 string does not correspond
to the base58 string expected by cluster when using an old peer.
This affects old Cluster peers running with new IPFS versions and new cluster
peers running with old IPFS versions for v1 CIDs.
Since Current master uses an updated cid dependency which also uses base32 by
default, master would already work with the latest IPFS daemon, so this is
just allowing to use cluster peers with older ipfs daemons, and preventing a
similar breakage in the future.
2019-06-07 19:08:26 +02:00
Adrian Lanzafame
7ffbbef8de
Merge pull request #807 from ipfs/fix/benchmark-ipfs-status
...
add IPFSPinStatusFromString benchmark
2019-06-07 11:55:18 +10:00
Hector Sanjuan
6370c1392f
Merge pull request #804 from ipfs/feat/crdt-tracing-hooks
...
Feat/crdt tracing hooks
2019-06-05 18:32:17 +01:00
Hector Sanjuan
16a2a3611f
Reorder imports
2019-06-05 19:31:51 +02:00
Adrian Lanzafame
5a61d5bef8
add IPFSPinStatusFromString benchmark
...
License: MIT
Signed-off-by: Adrian Lanzafame <adrianlanzafame92@gmail.com>
2019-06-05 11:48:39 +10:00
Adrian Lanzafame
a5a44b4049
Merge pull request #806 from MichaelMure/fix-mem-usage
...
Fix: api: replace two regexes with strings.HasPrefix()
2019-06-05 11:45:40 +10:00
Michael Muré
5515bdd7d7
Fix: api: replace two regex with strings.HasPrefix()
...
Those regex were compiled with each call to the function. As it's
called by PinLs, this resulted in a significant amount of memory used,
500MB in my case after a single call.
License: MIT
Signed-off-by: Michael Muré <batolettre@gmail.com>
2019-06-04 20:13:35 +02:00
Adrian Lanzafame
21c2b6fbdd
add tracing to all crdt methods
...
License: MIT
Signed-off-by: Adrian Lanzafame <adrianlanzafame92@gmail.com>
2019-05-31 12:58:26 +10:00
Adrian Lanzafame
4cc5182502
add tracing to crdt hooks
...
License: MIT
Signed-off-by: Adrian Lanzafame <adrianlanzafame92@gmail.com>
2019-05-31 12:56:33 +10:00
Kishan Mohanbhai Sagathiya
33602b9188
Remove printing the error
...
License: MIT
Signed-off-by: Kishan Mohanbhai Sagathiya <kishansagathiya@gmail.com>
2019-05-28 14:08:22 +05:30
Kishan Mohanbhai Sagathiya
96d230a195
Tests to check Timeout is for an update
...
License: MIT
Signed-off-by: Kishan Mohanbhai Sagathiya <kishansagathiya@gmail.com>
2019-05-28 14:05:04 +05:30
Hector Sanjuan
35860d337f
Merge pull request #792 from ipfs/feat/protect
...
Fix #787 : Connectivity fixes
2019-05-27 13:27:36 +01:00