Skip to content

Commit

Permalink
use currently maintained and new version of boltdb to fix race
Browse files Browse the repository at this point in the history
condition issues in tests related to go1.14 pointer checks
and mentioned on github etcd-io/bbolt#187
  • Loading branch information
Lagovas committed Nov 30, 2021
1 parent 382f79c commit 205d577
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion cmd/acra-server/acra-server.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ import (
pgDialect "github.com/cossacklabs/acra/sqlparser/dialect/postgresql"
"github.com/cossacklabs/acra/utils"

"github.com/boltdb/bolt"
log "github.com/sirupsen/logrus"
bolt "go.etcd.io/bbolt"
)

var restartSignalsChannel chan os.Signal
Expand Down
2 changes: 1 addition & 1 deletion cmd/acra-tokens/tokens/token-storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ import (
"flag"
"os"

"github.com/boltdb/bolt"
"github.com/cossacklabs/acra/cmd"
tokenCommon "github.com/cossacklabs/acra/pseudonymization/common"
tokenStorage "github.com/cossacklabs/acra/pseudonymization/storage"
log "github.com/sirupsen/logrus"
bolt "go.etcd.io/bbolt"
)

// CommonTokenStorageParameters is a mix-in of command line parameters for token storage construction.
Expand Down
2 changes: 1 addition & 1 deletion cmd/acra-translator/acra-translator.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ import (
"errors"
"flag"
"fmt"
"github.com/boltdb/bolt"
"github.com/cossacklabs/acra/cmd"
"github.com/cossacklabs/acra/cmd/acra-translator/common"
_ "github.com/cossacklabs/acra/cmd/acra-translator/docs"
Expand All @@ -47,6 +46,7 @@ import (
common2 "github.com/cossacklabs/acra/pseudonymization/common"
"github.com/cossacklabs/acra/pseudonymization/storage"
"github.com/cossacklabs/acra/utils"
bolt "go.etcd.io/bbolt"
_ "net/http/pprof"
"os"
"os/signal"
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ go 1.14
require (
contrib.go.opencensus.io/exporter/jaeger v0.2.1
github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751
github.com/boltdb/bolt v1.3.1
github.com/cossacklabs/themis/gothemis v0.13.1
github.com/gin-gonic/gin v1.7.2
github.com/go-redis/redis/v7 v7.0.1
Expand All @@ -21,6 +20,7 @@ require (
github.com/swaggo/files v0.0.0-20190704085106-630677cd5c14
github.com/swaggo/gin-swagger v1.3.0
github.com/swaggo/swag v1.5.1
go.etcd.io/bbolt v1.3.6
go.opencensus.io v0.22.4
golang.org/x/crypto v0.0.0-20210711020723-a769d52b0f97
golang.org/x/net v0.0.0-20211123203042-d83791d6bcd9
Expand Down
5 changes: 3 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,6 @@ github.com/beorn7/perks v1.0.0/go.mod h1:KWe93zE9D1o94FZ5RNwFwVgaQK1VOXiVxmqh+Ce
github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM=
github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw=
github.com/bgentry/speakeasy v0.1.0/go.mod h1:+zsyZBPWlz7T6j88CTgSN5bM796AkVf0kBD4zp0CCIs=
github.com/boltdb/bolt v1.3.1 h1:JQmyP4ZBrce+ZQu0dY660FMfatumYDLun9hBCUVIkF4=
github.com/boltdb/bolt v1.3.1/go.mod h1:clJnj/oiGkjum5o1McbSZDSLxVThjynRyGBgiAx27Ps=
github.com/casbin/casbin/v2 v2.1.2/go.mod h1:YcPU1XXisHhLzuxH9coDNf2FbKpjGlbCg3n9yuLkIJQ=
github.com/cenkalti/backoff v2.2.1+incompatible h1:tNowT99t7UNflLxfYYSlKYsBpXdEet03Pg2g16Swow4=
github.com/cenkalti/backoff v2.2.1+incompatible/go.mod h1:90ReRw6GdpyfrHakVjL/QHaoyV4aDUVVkXQJJJ3NXXM=
Expand Down Expand Up @@ -521,6 +519,8 @@ github.com/urfave/cli v1.22.1/go.mod h1:Gos4lmkARVdJ6EkW0WaNv/tZAAMe9V7XWyB60NtX
github.com/xiang90/probing v0.0.0-20190116061207-43a291ad63a2/go.mod h1:UETIi67q53MR2AWcXfiuqkDkRtnGDLqkBTpCHuJHxtU=
github.com/yuin/goldmark v1.1.25/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
go.etcd.io/bbolt v1.3.3/go.mod h1:IbVyRI1SCnLcuJnV2u8VeU0CEYM7e686BmAb1XKL+uU=
go.etcd.io/bbolt v1.3.6 h1:/ecaJf0sk1l4l6V4awd65v2C3ILy7MSj+s/x1ADCIMU=
go.etcd.io/bbolt v1.3.6/go.mod h1:qXsaaIqmgQH0T+OPdb99Bf+PKfBBQVAdyD6TY9G8XM4=
go.etcd.io/etcd v0.0.0-20191023171146-3cf2f69b5738/go.mod h1:dnLIgRNXwCJa5e+c6mIZCrds/GIG4ncV9HhK5PX7jPg=
go.opencensus.io v0.20.1/go.mod h1:6WKK9ahsWS3RSO+PY9ZHZUfv2irvY6gN279GOPZjmmk=
go.opencensus.io v0.20.2/go.mod h1:6WKK9ahsWS3RSO+PY9ZHZUfv2irvY6gN279GOPZjmmk=
Expand Down Expand Up @@ -667,6 +667,7 @@ golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7w
golang.org/x/sys v0.0.0-20200331124033-c3d80250170d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20200615200032-f1bc736245b1/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20200625212154-ddb9806d33ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20200923182605-d9f96fdee20d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20210330210617-4fbd30eecc44/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
Expand Down
2 changes: 1 addition & 1 deletion pseudonymization/storage/boltdb.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ package storage
import (
"time"

"github.com/boltdb/bolt"
"github.com/cossacklabs/acra/pseudonymization/common"
bolt "go.etcd.io/bbolt"
)

type boltdbStorage struct {
Expand Down
2 changes: 1 addition & 1 deletion pseudonymization/storage/boltdb_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (
"os"
"testing"

"github.com/boltdb/bolt"
bolt "go.etcd.io/bbolt"
)

func TestBoltdbStorage(t *testing.T) {
Expand Down

0 comments on commit 205d577

Please sign in to comment.