Skip to content

Commit c27c6b1

Browse files
committed
Removed temp getnodeinfo fix from @cocowalla
1 parent 0975eb3 commit c27c6b1

File tree

3 files changed

+3
-10
lines changed

3 files changed

+3
-10
lines changed

src/Nest.Connection.Thrift/ThriftConnection.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public Task<ConnectionStatus> Head(string path)
7878
public ConnectionStatus GetSync(string path)
7979
{
8080
var restRequest = new RestRequest();
81-
restRequest.Method = Method.POST;
81+
restRequest.Method = Method.GET;
8282
restRequest.Uri = path;
8383

8484
restRequest.Headers = new Dictionary<string, string>();

src/Nest/ElasticClient.cs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -130,16 +130,9 @@ private ConnectionStatus GetNodeInfo()
130130
ConnectionStatus response = null;
131131
try
132132
{
133-
response = this.Connection.GetSync("");
133+
response = this.Connection.GetSync("/");
134134
if (response.Success)
135135
{
136-
// TODO: Cocowalla
137-
// Next 3 lines are just there to workaround Thrift connection issue,
138-
// whereby only the first call to GetNodeInfo works
139-
this._IsValid = true;
140-
this._gotNodeInfo = true;
141-
return response;
142-
143136
JObject o = JObject.Parse(response.Result);
144137
if (o["ok"] == null)
145138
{

src/ProtocolLoadTest/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ private static double RunTest<T>(int port) where T : ITester
6363
Console.WriteLine("{0} test completed in {1}ms ({2:0,0}/s)", type, sw.ElapsedMilliseconds, rate);
6464

6565
// Close the index so we don't interfere with the next test
66-
CloseIndex(type);
66+
//CloseIndex(type);
6767

6868
return rate;
6969
}

0 commit comments

Comments
 (0)