Github user rsaavedraf commented on the issue:
https://github.com/apache/lucene-solr/pull/411
Thanks as well @mikemccand !
Happily tweeting about this small change being accepted :)
https://twitter.com/RaulSaavedra6/status/1012389058146861056
GitHub user rsaavedraf opened a pull request:
https://github.com/apache/lucene-solr/pull/411
Debugging PriorityQueue.java
The change I'm proposing eliminates a problem by properly checking the
validity of maxSize itself, before even computing heapSize=maxSize+1