Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
Description
It seems that currently there are two places should not employ the synchronized to describe pendingFilesPerCheckpoint, as it is only restored state object for checkpoint and no sharing of the data-structure between different threads, as follows.
private void handleRestoredRollingSinkState(RollingSink.BucketState restoredState) { ... synchronized (restoredState.pendingFilesPerCheckpoint) { restoredState.pendingFilesPerCheckpoint.clear(); } ... }
and
private void handleRestoredBucketState(State<T> restoredState) { ... synchronized (bucketState.pendingFilesPerCheckpoint) { bucketState.pendingFilesPerCheckpoint.clear(); } }
Hi, kkl0u. Is there any other stuff shoud add here ? Would you mind have a more thorough look in this class ?
Attachments
Issue Links
- links to