fixes and debugging
This commit is contained in:
parent
85f4c39b69
commit
2de450ca0b
|
@ -123,7 +123,7 @@ public class GetIndexResponse extends ActionResponse {
|
|||
in.readString(),
|
||||
in.readStringArray(),
|
||||
in.readOptionalBoolean(),
|
||||
SearchSourceBuilder.PROTOTYPE.readFrom(in))
|
||||
in.readBoolean() ? SearchSourceBuilder.PROTOTYPE.readFrom(in) : null)
|
||||
);
|
||||
}
|
||||
warmersMapBuilder.put(key, Collections.unmodifiableList(warmerEntryBuilder));
|
||||
|
@ -174,7 +174,11 @@ public class GetIndexResponse extends ActionResponse {
|
|||
out.writeString(warmerEntry.name());
|
||||
out.writeStringArray(warmerEntry.types());
|
||||
out.writeOptionalBoolean(warmerEntry.requestCache());
|
||||
warmerEntry.source().writeTo(out);
|
||||
boolean hasSource = warmerEntry.source() != null;
|
||||
out.writeBoolean(hasSource);
|
||||
if (hasSource) {
|
||||
warmerEntry.source().writeTo(out);
|
||||
}
|
||||
}
|
||||
}
|
||||
out.writeVInt(mappings.size());
|
||||
|
|
|
@ -100,6 +100,7 @@ public class DoSection implements ExecutableSection {
|
|||
}
|
||||
} catch(RestException e) {
|
||||
if (!Strings.hasLength(catchParam)) {
|
||||
System.out.println(apiCallSection.getBodies()); // NOCOMMIT remove this
|
||||
fail(formatStatusCodeMessage(e.restResponse(), "2xx"));
|
||||
} else if (catches.containsKey(catchParam)) {
|
||||
assertStatusCode(e.restResponse());
|
||||
|
|
Loading…
Reference in New Issue