Bug: Clean up the depredation usage of  o.a.c.io.IOUtils.closeQuietly
Status: Closed | Priority: Minor | Resolution: Won't Fix
Created: 09/Aug/21 03:27
Affects Version/s: 3.1.2

Compilation warnings related to `method closeQuietly in class IOUtils is deprecated` are as follows:
{code:java}
[WARNING] /spark-source/core/src/main/scala/org/apache/spark/storage/BlockManager.scala:344: [deprecation @ org.apache.spark.storage.BlockManager.BlockStoreUpdater.saveDeserializedValuesToMemoryStore | origin=org.apache.commons.io.IOUtils.closeQuietly | version=] method closeQuietly in class IOUtils is deprecated
[WARNING] /spark-source/core/src/main/scala/org/apache/spark/storage/ShuffleBlockFetcherIterator.scala:1307: [deprecation @ org.apache.spark.storage.BufferReleasingInputStream.tryOrFetchFailedException | origin=org.apache.commons.io.IOUtils.closeQuietly | version=] method closeQuietly in class IOUtils is deprecated
[WARNING] /spark-source/core/src/main/scala/org/apache/spark/util/Utils.scala:3142: [deprecation @ org.apache.spark.util.Utils.unzipFilesFromFile | origin=org.apache.commons.io.IOUtils.closeQuietly | version=] method closeQuietly in class IOUtils is deprecated
[WARNING] /spark-source/core/src/main/scala/org/apache/spark/util/Utils.scala:3143: [deprecation @ org.apache.spark.util.Utils.unzipFilesFromFile | origin=org.apache.commons.io.IOUtils.closeQuietly | version=] method closeQuietly in class IOUtils is deprecated
[WARNING] /spark-source/core/src/main/scala/org/apache/spark/util/logging/RollingFileAppender.scala:97: [deprecation @ org.apache.spark.util.logging.RollingFileAppender.rotateFile | origin=org.apache.commons.io.IOUtils.closeQuietly | version=] method closeQuietly in class IOUtils is deprecated
[WARNING] /spark-source/core/src/main/scala/org/apache/spark/util/logging/RollingFileAppender.scala:98: [deprecation @ org.apache.spark.util.logging.RollingFileAppender.rotateFile | origin=org.apache.commons.io.IOUtils.closeQuietly | version=] method closeQuietly in class IOUtils is deprecated
[WARNING] /spark-source/core/src/test/scala/org/apache/spark/util/FileAppenderSuite.scala:383: [deprecation @ org.apache.spark.util.FileAppenderSuite.testRolling.allText.$anonfun | origin=org.apache.commons.io.IOUtils.closeQuietly | version=] method closeQuietly in class IOUtils is deprecated
[WARNING] /spark-source/core/src/test/scala/org/apache/spark/util/UtilsSuite.scala:248: [deprecation @ org.apache.spark.util.UtilsSuite.<local UtilsSuite>.$anonfun | origin=org.apache.commons.io.IOUtils.closeQuietly | version=] method closeQuietly in class IOUtils is deprecated
[WARNING] /spark-source/core/src/test/scala/org/apache/spark/util/UtilsSuite.scala:249: [deprecation @ org.apache.spark.util.UtilsSuite.<local UtilsSuite>.$anonfun | origin=org.apache.commons.io.IOUtils.closeQuietly | version=] method closeQuietly in class IOUtils is deprecated
[WARNING] /spark-source/sql/core/src/main/scala/org/apache/spark/sql/execution/streaming/HDFSMetadataLog.scala:150: [deprecation @ org.apache.spark.sql.execution.streaming.HDFSMetadataLog.applyFnToBatchByStream | origin=org.apache.commons.io.IOUtils.closeQuietly | version=] method closeQuietly in class IOUtils is deprecated
[WARNING] /spark-source/sql/core/src/main/scala/org/apache/spark/sql/execution/streaming/StreamMetadata.scala:66: [deprecation @ org.apache.spark.sql.execution.streaming.StreamMetadata.read | origin=org.apache.commons.io.IOUtils.closeQuietly | version=] method closeQuietly in class IOUtils is deprecated
[WARNING] /spark-source/sql/core/src/main/scala/org/apache/spark/sql/execution/streaming/state/HDFSBackedStateStoreProvider.scala:545: [deprecation @ org.apache.spark.sql.execution.streaming.state.HDFSBackedStateStoreProvider.cancelDeltaFile | origin=org.apache.commons.io.IOUtils.closeQuietly | version=] method closeQuietly in class IOUtils is deprecated
[WARNING] /spark-source/sql/core/src/main/scala/org/apache/spark/sql/execution/streaming/state/RocksDBFileManager.scala:461: [deprecation @ org.apache.spark.sql.execution.streaming.state.RocksDBFileManager.zipToDfsFile | origin=org.apache.commons.io.IOUtils.closeQuietly | version=] method closeQuietly in class IOUtils is deprecated
[WARNING] /spark-source/sql/core/src/main/scala/org/apache/spark/sql/execution/streaming/state/RocksDBFileManager.scala:462: [deprecation @ org.apache.spark.sql.execution.streaming.state.RocksDBFileManager.zipToDfsFile | origin=org.apache.commons.io.IOUtils.closeQuietly | version=] method closeQuietly in class IOUtils is deprecated
{code}