wzhallright opened a new pull request, #8999: URL: https://github.com/apache/hadoop/pull/8999
### Description of PR #### StandbyCheckpointer leaks upload threads when parallel checkpoint upload is enabled * doCheckpoint() creates a new ThreadPoolExecutor for every checkpoint but never shuts it down on the success path (or when throwing MultipleIOException). When dfs.namenode.checkpoint.parallel.upload.enabled is true, the pool's core threads never time out (the 100ms keepAlive only applies to non-core threads) and park on the work queue forever, so each checkpoint permanently leaks remoteNNAddresses.size() threads. * Wrap the upload submit/collect logic in try/finally and always call executor.shutdown(); the interrupted path keeps the existing shutdownNow() handling. Also add a regression test asserting that all TransferFsImageUpload threads terminate after a checkpoint round. #### Fix misleading RECONFIGURE success log in reconfHeartbeatInterval/reconfHeartbeatRecheckInterval * The "RECONFIGURE* changed ..." log was placed in the finally block, so it was also printed when the reconfiguration failed with the unchanged old value. Move the log to the success path (matching reconfReplicationParameters style) and keep only writeUnlock in finally. Return values are unified via the getters, which are equivalent to the previous constants. ### How was this patch tested? UT -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
