A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/github/vulcanizer/commit/9ca417d204b6e6769bad11137fb68774586c9016 below:

Renaming after review · github/vulcanizer@9ca417d · GitHub

This repository was archived by the owner on Apr 15, 2025. It is now read-only.

File tree Expand file treeCollapse file tree 2 files changed

+3

-3

lines changed

Filter options

Expand file treeCollapse file tree 2 files changed

+3

-3

lines changed Original file line number Diff line number Diff line change

@@ -1630,8 +1630,8 @@ type AllocateStalePrimary struct {

1630 1630

AcceptDataLoss bool `json:"accept_data_loss,omitempty"`

1631 1631

}

1632 1632 1633 -

// Reroute allows to change the allocation of individual shards in the cluster.

1634 -

func (c *Client) Reroute() error {

1633 +

// RerouteWithRetryFailed retries allocation of shards that are blocked due to too many subsequent allocation failures.

1634 +

func (c *Client) RerouteWithRetryFailed() error {

1635 1635

var urlBuilder strings.Builder

1636 1636

urlBuilder.WriteString("_cluster/reroute?retry_failed=true")

1637 1637 Original file line number Diff line number Diff line change

@@ -2190,7 +2190,7 @@ func TestReroute(t *testing.T) {

2190 2190

defer ts.Close()

2191 2191

client := NewClient(host, port)

2192 2192 2193 -

err := client.Reroute()

2193 +

err := client.RerouteWithRetryFailed()

2194 2194

if err != nil {

2195 2195

t.Fatalf("Unexpected error expected nil, got %s", err)

2196 2196

}

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4