LuciferYang opened a new pull request, #36403: URL: https://github.com/apache/spark/pull/36403
### What changes were proposed in this pull request? After SPARK-38896, all `LevelDBIterator` handles opened by `LevelDB#view(Class<T> type)` method have been closed by `tryWithResource` mechanism, the way of close `LevelDBIterator` handles through `finalize()` mechanism is redundant, so this pr remove the `finalize()` method and related codes from `LevelDB` and `LevelDBIterator`. At the same time, this pr also cleans up similar code in `RocksDB` and `RocksDBIterator`. ### Why are the changes needed? Clean up redundant code related to `finalize()` from `LevelDB/RocksDBIterator` ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? Pass GA -- 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]
