lordcheng10 edited a comment on pull request #3061: URL: https://github.com/apache/bookkeeper/pull/3061#issuecomment-1046045655
The new changes are as follows: 1.check if the parameter is legal; 2.fix the shrinkage condition: ①newCapacity > size: in order to prevent the infinite loop of rehash, newCapacity should be larger than the currently used size; ②newCapacity > resizeThresholdUp: in order to prevent continuous expansion and contraction, newCapacity should be greater than the expansion threshold; ![image](https://user-images.githubusercontent.com/19296967/154808631-86e232b8-107a-4927-9232-74c77d125fcc.png) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@bookkeeper.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org