public boolean hasInvalidMessages() {
    return numInvalidMessages > 0;
  }
Whether the stream has invalid messages or not
@return
ambry-messageformat/src/main/java/com/github/ambry/messageformat/MessageSievingInputStream.java