[jsr352-public] Where is CheckpointAlgorithm.beginCheckpoint invoked?
- From: Cheng Fang <
- Subject: [jsr352-public] Where is CheckpointAlgorithm.beginCheckpoint invoked?
- Date: Tue, 04 Mar 2014 11:19:15 -0500
I just got a bug report ( JBERET-52
>) regarding the invocation
sequence of CheckpointAlgorithm#beginCheckpoint, and would like to get
From spec 11.10 Chunk with Custom Checkpoint Processing,
CheckpointAlgorithm.beginCheckpoint happens immediately before commiting
checkpoint transaction (on page 120).
The beginCheckpoint method is invoked before the next checkpoint
interval begins, which implies this method is to be called before
beginning the whole chunk interval or range, which is much earlier than
its invocation point specified in spec 11.10.
RI seems to implement it following section 11.10, from my quick look at
Another source of confusion, as described in the bug description,
section 11.8 has the phrase "begin checkpoint" to mean the beginning of
a chunk. Since this is the same words as the method name of
CheckpointAlgorithm.beginCheckpoint(), users may think it also refers to
the point to call CheckpointAlgorithm.beginCheckpoint().
Appreciate any clarification and guidance in this case.