OpenSearch/core
Luca Cavanna 5818ff6b56 Make ShardSearchTarget optional when parsing ShardSearchFailure (#27078)
Turns out that `ShardSearchTarget` is nullable, hence its fields may not be printed out as part of `ShardSearchFailure#toXContent`, in which case `fromXContent` cannot parse it back. We would previously try to create the object with all of its fields set to null, but `Index` complains about it in the constructor. Also made sure that this code path is covered by our unit tests in `ShardSearchFailureTests`.

Closes #27055
2017-10-25 13:26:06 +02:00
..
licenses Revert "Upgrade to Jackson 2.9.2 (#27032)" 2017-10-20 08:25:41 +02:00
src Make ShardSearchTarget optional when parsing ShardSearchFailure (#27078) 2017-10-25 13:26:06 +02:00
build.gradle Upgrade to Log4j 2.9.0 2017-08-31 09:54:35 -04:00