[CONTROLLER-1911] Consider using java.lang.ref.Cleaner for transactions and FileBackedOutputStreams Created: 10/Sep/19  Updated: 28/Jul/21

Status: Confirmed
Project: controller
Component/s: clustering
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Medium
Reporter: Robert Varga Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Java 9 has introduced java.lan.ref.Cleaner and related interfaces. This should provide a simpler way to keep track of objects that need finalization – try to use them instead of com.google.common.base.FinalizablePhantomReference



 Comments   
Comment by Tadey Bilan [ 28/Jul/21 ]

FinalizablePhantomReference replaced with Cleaner in ClientBackedTransaction and in controller.cluster.io package.
There is still FinalizablePhantomReference used in TransactionContextCleanup.

Generated at Wed Feb 07 19:56:45 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.