influxdata / influxdb

Scalable datastore for metrics, events, and real-time analytics
https://influxdata.com
Apache License 2.0
28.84k stars 3.55k forks source link

Replace boltdb/bolt with etcd-io/bbolt #20559

Open danxmoran opened 3 years ago

danxmoran commented 3 years ago

The 1.x line hit a bug in boltdb/bolt. Since the source repo is now archived, they had to cut a new fork to apply a fix for the bug, and switch their build over to point at the fork. 2.x can switch to etcd-io/bbolt instead, to pull in all the additional fixes they've made over the original bolt repo.

danxmoran commented 3 years ago

Looks like the one remaining dependency on boltdb/bolt is from NATS:

$ go mod why github.com/boltdb/bolt
# github.com/boltdb/bolt
github.com/influxdata/influxdb/v2/nats
github.com/nats-io/nats-streaming-server/server
github.com/boltdb/bolt
danxmoran commented 3 years ago

Given the above, #21502 should fix this one as well