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,9 +174,13 @@ public class GetIndexResponse extends ActionResponse {
|
|||
out.writeString(warmerEntry.name());
|
||||
out.writeStringArray(warmerEntry.types());
|
||||
out.writeOptionalBoolean(warmerEntry.requestCache());
|
||||
boolean hasSource = warmerEntry.source() != null;
|
||||
out.writeBoolean(hasSource);
|
||||
if (hasSource) {
|
||||
warmerEntry.source().writeTo(out);
|
||||
}
|
||||
}
|
||||
}
|
||||
out.writeVInt(mappings.size());
|
||||
for (ObjectObjectCursor<String, ImmutableOpenMap<String, MappingMetaData>> indexEntry : mappings) {
|
||||
out.writeString(indexEntry.key);
|
||||
|
|
|
@ -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