Skip to content

Commit

Permalink
[hotfix] Make fields transient in TwoPhaseCommitSinkFunction
Browse files Browse the repository at this point in the history
  • Loading branch information
aljoscha committed Nov 1, 2017
1 parent 0e97220 commit 944a63c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ public enum Semantic {
/**
* Hint for picking next transactional id.
*/
private NextTransactionalIdHint nextTransactionalIdHint;
private transient NextTransactionalIdHint nextTransactionalIdHint;

/**
* User defined properties for the Producer.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,10 @@ public abstract class TwoPhaseCommitSinkFunction<IN, TXN, CONTEXT>
protected final LinkedHashMap<Long, TXN> pendingCommitTransactions = new LinkedHashMap<>();

@Nullable
protected TXN currentTransaction;
protected Optional<CONTEXT> userContext;
protected transient TXN currentTransaction;
protected transient Optional<CONTEXT> userContext;

protected ListState<State<TXN, CONTEXT>> state;
protected transient ListState<State<TXN, CONTEXT>> state;

/**
* Use default {@link ListStateDescriptor} for internal state serialization. Helpful utilities for using this
Expand Down

0 comments on commit 944a63c

Please sign in to comment.