Skip to content

Commit

Permalink
Document ConnectorSplitSource thread-safety requirements
Browse files Browse the repository at this point in the history
Note that some existing implementations are not thread-safe. For example
`IcebergSplitSource.scannedFiles` is accessed without any
synchronization.
  • Loading branch information
findepi committed May 5, 2023
1 parent a3af0e1 commit 9054f64
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@

import static java.util.Objects.requireNonNull;

/**
* Source of splits to be processed.
* <p>
* Thread-safety: the implementations are not required to be thread-safe.
*/
public interface ConnectorSplitSource
extends Closeable
{
Expand Down

0 comments on commit 9054f64

Please sign in to comment.