Skip to content

Commit 27573c7

Browse files
authored
Merge pull request #406 from arangodb-helper/fix/sync-upgrade
Fix upgrade with ArangoSync component enabled
2 parents 12b389b + 80f23e2 commit 27573c7

File tree

4 files changed

+9
-4
lines changed

4 files changed

+9
-4
lines changed

.circleci/config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ version: 2.1
33
parameters:
44
goImage:
55
type: string
6-
default: "gcr.io/gcr-for-testing/golang:1.21.6"
6+
default: "gcr.io/gcr-for-testing/golang:1.21.8"
77
arangodbImage:
88
type: string
99
default: "gcr.io/gcr-for-testing/arangodb/enterprise-preview:devel-nightly"
@@ -17,7 +17,7 @@ parameters:
1717
executors:
1818
golang-executor:
1919
docker:
20-
- image: gcr.io/gcr-for-testing/golang:1.21.6
20+
- image: gcr.io/gcr-for-testing/golang:1.21.8
2121
machine-executor:
2222
machine:
2323
image: ubuntu-2204:current

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# ArangoDB Starter Changelog
22

33
## [master](https://github.com/arangodb-helper/arangodb/tree/master) (N/A)
4+
- Fix upgrade with ArangoSync component enabled
5+
- Bump Go version (1.21.8) and dependencies for CVE fixes
46

57
## [v0.18.3](https://github.com/arangodb-helper/arangodb/tree/0.18.3) (2024-03-05)
68
- Mark ArangoSync component as deprecated

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ REPOPATH := $(ORGPATH)/$(REPONAME)
4040
ALPINE_IMAGE ?= alpine:3.18
4141

4242
GOPATH := $(GOBUILDDIR)
43-
GOVERSION := 1.21.6
43+
GOVERSION := 1.21.8
4444
GOIMAGE ?= golang:$(GOVERSION)-alpine3.18
4545

4646
GOOS ?= linux

service/upgrade_manager.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,10 @@ func (m *upgradeManager) StartDatabaseUpgrade(ctx context.Context, forceMinorUpg
296296
if mode.SupportsArangoSync() {
297297
for _, p := range config.AllPeers {
298298
if p.HasSyncMaster() || p.HasSyncWorker() {
299-
return fmt.Errorf("upgrade version (%s) does not support ArangoSync component (member: %s, %s)", toVersion, p.ID, p.Address)
299+
dbFeatures := NewDatabaseFeatures(toVersion, false)
300+
if !dbFeatures.SupportsArangoSync() {
301+
return fmt.Errorf("upgrade version (%s) does not support ArangoSync component (member: %s, %s)", toVersion, p.ID, p.Address)
302+
}
300303
}
301304
}
302305
}

0 commit comments

Comments
 (0)