Commit Graph

2563 Commits

Author SHA1 Message Date
Hector Sanjuan
08aea3b3aa Fix: ttl for tags should be default when not provided (now 0). 2022-01-07 14:52:35 +01:00
Hector Sanjuan
aac244fc5f
Merge pull request #1517 from ipfs/state-io-buffering
service: add buffered io for import and export
2022-01-07 01:03:24 +01:00
Hector Sanjuan
e7ae13e6cf service: add buffered io for import and export 2022-01-04 18:15:06 +01:00
Hector Sanjuan
e22655a3dc
Set development version v0.14.3-next 2022-01-03 18:01:52 +01:00
Hector Sanjuan
9704bb62e6
Release v0.14.3 2022-01-03 18:00:43 +01:00
Hector Sanjuan
9632d416e1
Changelog for v0.14.3 (#1515) 2022-01-03 17:59:21 +01:00
Hector Sanjuan
590791b647
Merge pull request #1514 from ipfs/cors/options
API: update basic-auth tests to allow OPTIONS
2021-12-22 14:07:14 +01:00
Hector Sanjuan
c71e42f5ad API: update basic-auth tests to allow OPTIONS 2021-12-22 14:06:29 +01:00
Hector Sanjuan
a4b53845c1
Merge pull request #1513 from ipfs/cors/options
API: OPTIONS requests should bypass authentication
2021-12-22 13:31:01 +01:00
Hector Sanjuan
bba410af32 API: OPTIONS requests should bypass authentication
They need to be handled directly by the CORS handler.

Fixes #1512
2021-12-22 13:26:03 +01:00
Hector Sanjuan
9488621b4e
Merge pull request #1511 from ipfs/fix/publish-invalid-metrics
Avoid publishing invalid metrics
2021-12-17 12:13:41 +01:00
Hector Sanjuan
b0df2942d9
Merge pull request #1510 from ipfs/feat/query-improvements
Performance improvements to state List() and other minor things
2021-12-17 12:02:00 +01:00
Hector Sanjuan
37f9728f49 Avoid publishing invalid metrics
Invalid metrics returned by informers should not be sent around
2021-12-17 11:57:01 +01:00
Hector Sanjuan
67eeb45798 pintracker: clean exit during recover
Shutting down the cluster while a recover operation is ongoing resulted in
each remaining pin in the recover loop producing an error in the logs, as the
loop kept going even though compontents were already shutdown.

With 8 million items, this meant a lot of log messages, and a shutdown delay
that forced the killing of the process in most cases.

The recover loop now exits when the component's context is cancelled.
2021-12-17 11:47:50 +01:00
Hector Sanjuan
7e85d90bae misc: re-order some imports 2021-12-17 11:47:50 +01:00
Hector Sanjuan
e64b6be8f6 Update go-ds-crdt: List() performance improvements
This results in 4x improvements when listing the pins in the state, when no
pin has been deleted.

This affects not only the `pin ls`/`/allocations` operation, but also internal
Recover and StateSync calls restart failed pins and unpin expired pins.
2021-12-17 11:47:50 +01:00
Hector Sanjuan
9b61a007e9 State: Log pin listing progress every 500k pins. 2021-12-17 11:47:50 +01:00
Hector Sanjuan
3e32a40abf
Merge pull request #1508 from ipfs/feat/import-alloc-overwrite
State import: allow replication factor and allocations overwrite on import
2021-12-16 15:20:03 +01:00
Hector Sanjuan
f4c3fc4ce5 State import: allow replication factor and allocations overwrite on import 2021-12-14 11:21:19 +01:00
Hector Sanjuan
cdc01ebf3c
Merge pull request #1507 from ipfs/fix/multiaddr-origins-type
Fix state deserialization
2021-12-13 19:32:28 +01:00
Hector Sanjuan
93e2cca49b Fix state deserialization
The pin objects now include an Origin field which was set to
multiaddr.Multiaddr.

This type is an interface and has no idea how to deserialize itself. As a
result, an state json export cannot be deseralized.

We had already added a wrapper Multiaddr type to handle these issues. I
believe this fix does not affect anything else other than fixing
UnmarshalJSON. PB types are deserialized by hand and it should not make a
difference.
2021-12-13 17:31:18 +01:00
Hector Sanjuan
5a1d835d90
Set development version v0.14.2-next 2021-12-09 10:02:37 +01:00
Hector Sanjuan
c7cbdee01f
Release v0.14.2 2021-12-09 10:01:33 +01:00
Hector Sanjuan
9f2aecb0cb changelog: Set final release date 2021-12-09 10:01:12 +01:00
Hector Sanjuan
9b4e1666cd
Merge pull request #1506 from ipfs/feat/ctl-improve-metric-fmt
ipfs-cluster-ctl: improve printing of health metrics
2021-12-08 12:47:52 +01:00
Hector Sanjuan
3dba023c2d Update changelog 2021-12-08 12:04:25 +01:00
Hector Sanjuan
54d696da60 ipfs-cluster-ctl: improve printing of health metrics
Make sure we print the value in all cases. Use the weight for the free-space
metric, no need to parse the value anymore.
2021-12-08 12:01:59 +01:00
Hector Sanjuan
ea8b392b72
Release candidate v0.14.2-rc1 2021-12-01 02:04:07 +01:00
Hector Sanjuan
9821e88ff1
Merge pull request #1505 from ipfs/v0.14.2/changelog
Changelog for v0.14.2
2021-12-01 01:50:09 +01:00
Hector Sanjuan
06d5a14102
Merge pull request #1504 from ipfs/fix/docker-compose-test
Be more verbose in the docker compose test
2021-12-01 01:49:31 +01:00
Hector Sanjuan
e32341363d Docker: set ipfs as file owner when adding 2021-12-01 01:47:15 +01:00
Hector Sanjuan
ff104a9220 mdns fix: ensure the new mdns service is started 2021-12-01 01:27:59 +01:00
Hector Sanjuan
3b1b9bd142 Tests: Separate docker build and compose tests to different jobs 2021-12-01 01:27:59 +01:00
Hector Sanjuan
04efcff6fe Changelog for v0.14.2 2021-12-01 01:25:57 +01:00
Hector Sanjuan
24d559f212 Be more verbose in the docker compose test 2021-12-01 00:10:32 +01:00
Hector Sanjuan
0d21896883
Merge pull request #1490 from ipfs/fix/1469-pin-prio
Pintracker: support prioritary pinning for recent pins with small number of retries
2021-11-30 20:55:42 +01:00
Hector Sanjuan
30fba6906f
Merge pull request #1501 from ipfs/dependency-upgrades
Dependency upgrades
2021-11-30 20:54:45 +01:00
Hector Sanjuan
f05aa7e1a3 Ipfs-lite v1.2.0 2021-11-30 16:04:01 +01:00
Hector Sanjuan
db93c50c2d Fix rest client tests: do not use QUIC 2021-11-30 07:05:35 +01:00
Hector Sanjuan
5638ed4ebf Fix dependency error 2021-11-30 06:54:26 +01:00
Hector Sanjuan
23dd3ba41b Go1.17 2021-11-30 06:51:06 +01:00
Hector Sanjuan
28dcb132b0 Disable QUIC for cluster peers (no private network support) 2021-11-30 06:34:13 +01:00
Hector Sanjuan
4b2d3a0561 Correctly switch to new relay options 2021-11-30 06:33:41 +01:00
Hector Sanjuan
4739ed9210 Changes pertaining to go-libp2p v0.16.0 2021-11-30 06:25:15 +01:00
Hector Sanjuan
fdc3abcb23 api: use default transports for the libp2p host. 2021-11-30 06:06:10 +01:00
Hector Sanjuan
33343751b0 Stateless: add tests to make sure AttemptCounts are set correctly 2021-11-30 04:43:16 +01:00
Hector Sanjuan
c4ca5b7abe pintracker: carry over attempt account only for operations of the same type 2021-11-30 04:20:35 +01:00
Hector Sanjuan
7cf40de354 pintracker: Fix attempt count not increasing. Expose priority queueing.
"RetryCount" has been renamed to "AttemptCount", because it counts attempts.
2021-11-30 04:20:35 +01:00
Hector Sanjuan
be5c2d1569 pintracker: PriorityPinMaxAge and PriorityPinMaxRetries
These new configuration settings control whether pins are enqueued in the
priority queue or not.
2021-11-30 04:20:35 +01:00
Hector Sanjuan
0a146dae76 pintracker: support a priority channel for pinning 2021-11-30 04:20:35 +01:00