i'am confuse about s4's failover

17 views
Skip to first unread message

AliKevin

unread,
Oct 20, 2011, 5:03:35 AM10/20/11
to s4-project
i had read the s4 source but i haven't find when and how to use
CheckpointingEvent and RecoveryEvent ?

Flavio Junqueira

unread,
Oct 20, 2011, 5:50:36 AM10/20/11
to s4-...@incubator.apache.org, s4-pr...@googlegroups.com
Forwarding to the apache list.

-Flavio

Begin forwarded message:

Matthieu Morel

unread,
Oct 20, 2011, 10:39:27 AM10/20/11
to s4-project
[cross-answered on the apache s4-user mailing list. Sorry, the mailing
list migration to apache is still a bit confusing (we need to update
the misleading links on the webpage)! ]


i had read the s4 source but i haven't find when and how to
use
CheckpointingEvent and RecoveryEvent ?



These classes are part of the internal API, you are not expected to
use them directly.

Release 0.4 will include a checkpointing mechanism... and a
corresponding user guide!


Hope this helps,

Matthieu

AliKevin

unread,
Oct 20, 2011, 9:10:19 PM10/20/11
to s4-project
ths a lot for your feeback.
i only want to know when and how the CheckpointingEvent and
RecoveryEvent work,I don't care it whether or not internal API .
in my mind not all event need recovery,so i think may be some place
can config it .
in your words,checkpointing mechanism is not include in v0.3 ?
> > > CheckpointingEvent and RecoveryEvent ?- 隐藏被引用文字 -
>
> - 显示引用的文字 -

AliKevin

unread,
Oct 21, 2011, 3:22:32 AM10/21/11
to s4-project
as i know when PEContainer deal with a event,will do the event stream
name in V0.3 .please see the fellow codes:

if (eventWrapper.getStreamName().endsWith("_checkpointing")
||
eventWrapper.getStreamName().endsWith("_recovery")) {
handleCheckpointingOrRecovery(eventWrapper);
}
so v0.3 include the checkpointing mechanism . my question is how we
config every event to do the checkpoint and recovery.?
> > - 显示引用的文字 -- 隐藏被引用文字 -
>
> - 显示引用的文字 -

Matthieu Morel

unread,
Oct 21, 2011, 6:10:41 AM10/21/11
to s4-project

On Oct 21, 9:22 am, AliKevin <alibaba59...@gmail.com> wrote:
> as i know when PEContainer deal with a event,will do the event stream
> name in V0.3 .please see the fellow codes:
>
> if (eventWrapper.getStreamName().endsWith("_checkpointing")
>                         ||
> eventWrapper.getStreamName().endsWith("_recovery")) {
>                   handleCheckpointingOrRecovery(eventWrapper);
>  }
> so v0.3 include the checkpointing mechanism .

You seem to be looking at the master branch on the github repository.
This is not version 0.3.
You have to checkout tag 0.3 to get version 0.3. (as instructed in
http://docs.s4.io/tutorials/getting_started.html)

Matthieu
Message has been deleted

AliKevin

unread,
Oct 21, 2011, 9:58:35 PM10/21/11
to s4-project
ohh,yeah.ths.your right i had checkout the trunk code. can you tell me
the detail of how to config the checkpoint and recovery in last
version?

Matthieu Morel

unread,
Oct 22, 2011, 6:53:07 AM10/22/11
to s4-project

On Oct 22, 3:58 am, AliKevin <alibaba59...@gmail.com> wrote:
> ohh,yeah.ths.your right i had checkout the trunk code. can you tell me
> the detail of how to config the checkpoint and recovery in last
> version?

The documentation for that feature is not available at the moment: we
haven't released the version that includes checkpointing yet!

We'll add the corresponding documentation for release 0.4.


Matthieu
Reply all
Reply to author
Forward
0 new messages