HDFS-5673: add validation and tests for result exceeding maximum entries.