A RetroSearch Logo

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

Search Query:

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

Merge pull request #98 from github/hugodorea/fixes-cluster-allocation… · github/vulcanizer@d0d3dd7 · 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

+4

-3

lines changed

Filter options

Expand file treeCollapse file tree 2 files changed

+4

-3

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

@@ -1582,7 +1582,7 @@ type ClusterAllocationExplainRequest struct {

1582 1582

Primary bool `json:"primary,omitempty"`

1583 1583 1584 1584

// Specifies the ID of the shard that you would like an explanation for.

1585 -

Shard string `json:"shard,omitempty"`

1585 +

Shard *int `json:"shard,omitempty"`

1586 1586

}

1587 1587 1588 1588

// ClusterAllocationExplain provides an explanation for a shard’s current allocation.

Original file line number Diff line number Diff line change

@@ -2103,6 +2103,7 @@ func TestGetNodesHotThreads(t *testing.T) {

2103 2103

}

2104 2104 2105 2105

func TestClusterAllocationExplain(t *testing.T) {

2106 +

shardID := 0

2106 2107

tests := []struct {

2107 2108

name string

2108 2109

request *ClusterAllocationExplainRequest

@@ -2138,9 +2139,9 @@ func TestClusterAllocationExplain(t *testing.T) {

2138 2139

{

2139 2140

name: "with shard set",

2140 2141

request: &ClusterAllocationExplainRequest{

2141 -

Shard: "test-shard",

2142 +

Shard: &shardID,

2142 2143

},

2143 -

expectedBody: `{"shard":"test-shard"}`,

2144 +

expectedBody: `{"shard":0}`,

2144 2145

},

2145 2146

{

2146 2147

name: "with pretty output",

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