-
Notifications
You must be signed in to change notification settings - Fork 15
Fixed agency access #153
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixed agency access #153
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -102,7 +102,7 @@ func (p Peer) CreateDBServerAPI(clientBuilder ClientBuilder) (driver.Client, err | |
| port := p.Port + p.PortOffset + ServerType(ServerTypeDBServer).PortOffset() | ||
| scheme := NewURLSchemes(p.IsSecure).Browser | ||
| ep := fmt.Sprintf("%s://%s", scheme, net.JoinHostPort(p.Address, strconv.Itoa(port))) | ||
| c, err := clientBuilder([]string{ep}, false) | ||
| c, err := clientBuilder([]string{ep}, ConnectionTypeDatabase) | ||
| if err != nil { | ||
| return nil, maskAny(err) | ||
| } | ||
|
|
@@ -117,7 +117,7 @@ func (p Peer) CreateCoordinatorAPI(clientBuilder ClientBuilder) (driver.Client, | |
| port := p.Port + p.PortOffset + ServerType(ServerTypeCoordinator).PortOffset() | ||
| scheme := NewURLSchemes(p.IsSecure).Browser | ||
| ep := fmt.Sprintf("%s://%s", scheme, net.JoinHostPort(p.Address, strconv.Itoa(port))) | ||
| c, err := clientBuilder([]string{ep}, false) | ||
| c, err := clientBuilder([]string{ep}, ConnectionTypeDatabase) | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This now has a different value for DontFollowRedirects is this correct? |
||
| if err != nil { | ||
| return nil, maskAny(err) | ||
| } | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -55,7 +55,7 @@ type UpgradeManagerContext interface { | |
| // ClusterConfig returns the current cluster configuration and the current peer | ||
| ClusterConfig() (ClusterConfig, *Peer, ServiceMode) | ||
| // CreateClient creates a go-driver client with authentication for the given endpoints. | ||
| CreateClient(endpoints []string, followRedirect bool) (driver.Client, error) | ||
| CreateClient(endpoints []string, connectionType ConnectionType) (driver.Client, error) | ||
| // RestartServer triggers a restart of the server of the given type. | ||
| RestartServer(serverType ServerType) error | ||
| } | ||
|
|
@@ -368,7 +368,7 @@ func (m *upgradeManager) isAgencyHealth(ctx context.Context) error { | |
| // Build agency clients | ||
| clients := make([]driver.Connection, 0, len(endpoints)) | ||
| for _, ep := range endpoints { | ||
| c, err := m.upgradeManagerContext.CreateClient([]string{ep}, false) | ||
| c, err := m.upgradeManagerContext.CreateClient([]string{ep}, ConnectionTypeAgency) | ||
| if err != nil { | ||
| return maskAny(err) | ||
| } | ||
|
|
@@ -392,7 +392,7 @@ func (m *upgradeManager) areDBServersResponding(ctx context.Context) error { | |
| } | ||
| // Check all | ||
| for _, ep := range endpoints { | ||
| c, err := m.upgradeManagerContext.CreateClient([]string{ep}, false) | ||
| c, err := m.upgradeManagerContext.CreateClient([]string{ep}, ConnectionTypeDatabase) | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This now has a different value for DontFollowRedirects is this correct? |
||
| if err != nil { | ||
| return maskAny(err) | ||
| } | ||
|
|
@@ -414,7 +414,7 @@ func (m *upgradeManager) areCoordinatorsResponding(ctx context.Context) error { | |
| } | ||
| // Check all | ||
| for _, ep := range endpoints { | ||
| c, err := m.upgradeManagerContext.CreateClient([]string{ep}, false) | ||
| c, err := m.upgradeManagerContext.CreateClient([]string{ep}, ConnectionTypeDatabase) | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This now has a different value for DontFollowRedirects is this correct? |
||
| if err != nil { | ||
| return maskAny(err) | ||
| } | ||
|
|
@@ -436,7 +436,7 @@ func (m *upgradeManager) areSingleServersResponding(ctx context.Context) error { | |
| } | ||
| // Check all | ||
| for _, ep := range endpoints { | ||
| c, err := m.upgradeManagerContext.CreateClient([]string{ep}, false) | ||
| c, err := m.upgradeManagerContext.CreateClient([]string{ep}, ConnectionTypeDatabase) | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This now has a different value for DontFollowRedirects is this correct? |
||
| if err != nil { | ||
| return maskAny(err) | ||
| } | ||
|
|
@@ -459,7 +459,7 @@ func (m *upgradeManager) isSuperVisionMaintenanceSupported(ctx context.Context) | |
| } | ||
| // Check agents | ||
| for _, ep := range endpoints { | ||
| c, err := m.upgradeManagerContext.CreateClient([]string{ep}, false) | ||
| c, err := m.upgradeManagerContext.CreateClient([]string{ep}, ConnectionTypeAgency) | ||
| if err != nil { | ||
| return false, maskAny(err) | ||
| } | ||
|
|
@@ -546,7 +546,7 @@ func (m *upgradeManager) ShowArangodServerVersions(ctx context.Context) (bool, e | |
| showGroup := func(serverType ServerType, endpoints []string) { | ||
| groupVersions := make([]string, len(endpoints)) | ||
| for i, ep := range endpoints { | ||
| c, err := m.upgradeManagerContext.CreateClient([]string{ep}, false) | ||
| c, err := m.upgradeManagerContext.CreateClient([]string{ep}, ConnectionTypeDatabase) | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This now has a different value for DontFollowRedirects is this correct? |
||
| if err != nil { | ||
| groupVersions[i] = "?" | ||
| continue | ||
|
|
||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This now has a different value for DontFollowRedirects is this correct?