You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: cmds/core-service/README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,7 +29,7 @@ go run ./cmds/core-service \
29
29
30
30
#### CockroachDB cluster
31
31
32
-
To run correctly, core-service must be able to [access](../../pkg/datastore/flags/flags.go) a CockroachDB or a Yugabyte cluster. Provision of this cluster is handled automatically for a local development environment if following [the instructions for a standalone instance](../../build/dev/standalone_instance.md).
32
+
To run correctly, core-service must be able to [access](../../pkg/datastore/params/params.go) a CockroachDB or a Yugabyte cluster. Provision of this cluster is handled automatically for a local development environment if following [the instructions for a standalone instance](../../build/dev/standalone_instance.md).
33
33
34
34
Alternatively, a CockroachDB instance can be created manually with:
returnzero, stacktrace.PropagateWithCode(err, CodeRetryable, "Failed to connect to datastore server for %s", dbName)
52
+
}
53
+
returnzero, stacktrace.Propagate(err, "Failed to connect to %s database", dbName)
54
+
}
55
+
s, err:=newStore(db)
56
+
iferr!=nil {
57
+
db.Pool.Close()
58
+
ifstrings.Contains(err.Error(), "connect: connection refused") ||strings.Contains(err.Error(), fmt.Sprintf("database \"%s\" does not exist", dbName)) ||strings.Contains(err.Error(), "database has not been bootstrapped with Schema Manager") {
59
+
returnzero, stacktrace.PropagateWithCode(err, CodeRetryable, "Failed to create %s store", dbName)
60
+
}
61
+
returnzero, stacktrace.Propagate(err, "Failed to create %s store", dbName)
0 commit comments