diff --git a/plugins/transport/thrift/elasticsearch.thrift b/plugins/transport/thrift/elasticsearch.thrift index 2840ee314bd..45a5ae4857a 100644 --- a/plugins/transport/thrift/elasticsearch.thrift +++ b/plugins/transport/thrift/elasticsearch.thrift @@ -23,7 +23,7 @@ struct RestRequest { } enum Status { - CONTINUE = 100, + CONT = 100, SWITCHING_PROTOCOLS = 101, OK = 200, CREATED = 201, diff --git a/plugins/transport/thrift/src/main/gen-java/org/elasticsearch/thrift/Status.java b/plugins/transport/thrift/src/main/gen-java/org/elasticsearch/thrift/Status.java index 77a39fe733b..d78032f0c54 100644 --- a/plugins/transport/thrift/src/main/gen-java/org/elasticsearch/thrift/Status.java +++ b/plugins/transport/thrift/src/main/gen-java/org/elasticsearch/thrift/Status.java @@ -9,7 +9,7 @@ package org.elasticsearch.thrift; import org.apache.thrift.TEnum; public enum Status implements TEnum { - CONTINUE(100), + CONT(100), SWITCHING_PROTOCOLS(101), OK(200), CREATED(201), @@ -75,7 +75,7 @@ public enum Status implements TEnum { public static Status findByValue(int value) { switch (value) { case 100: - return CONTINUE; + return CONT; case 101: return SWITCHING_PROTOCOLS; case 200: diff --git a/plugins/transport/thrift/src/main/java/org/elasticsearch/thrift/ThriftRestImpl.java b/plugins/transport/thrift/src/main/java/org/elasticsearch/thrift/ThriftRestImpl.java index 1c556987eb5..6c42e151e19 100644 --- a/plugins/transport/thrift/src/main/java/org/elasticsearch/thrift/ThriftRestImpl.java +++ b/plugins/transport/thrift/src/main/java/org/elasticsearch/thrift/ThriftRestImpl.java @@ -75,7 +75,7 @@ public class ThriftRestImpl extends AbstractComponent implements Rest.Iface { private Status getStatus(RestResponse.Status status) { switch (status) { case CONTINUE: - return Status.CONTINUE; + return Status.CONT; case SWITCHING_PROTOCOLS: return Status.SWITCHING_PROTOCOLS; case OK: