Skip to content

[2022 Alibaba Summer of Code] Support Snapshot for DLedger #131

@RongtongJin

Description

@RongtongJin

2022 Alibaba Summer of Code

Welcome to the open source world! If you haven't planned how to spend this summer, come to the Alibaba Summer of Code and code with us! 💻
Alibaba Summer of Code is a global program focused on engaging students directly in open source software development. Under the guidance of the mentor in the Alibaba open source project, students can experience software development in the real world. Alibaba Summer of code will begin from May 30th to September 1st. Students can use the summertime to participate in the open source project and work with the core members of the project.

What you can get?

On this exclusive developer journey, students will have the opportunity to:

  • Participate in the top projects of the International Open Source Foundation;
  • Get a scholarship from Alibaba;
  • Obtain an open source contributor certificate;
  • Get a fast pass of Alibaba Internship
  • Get your code adopted and used by the open source project!

Timeline

Our Mentor

@RongtongJin [email protected] @tsunghanjacktsai [email protected]

Subject

Snapshot is a very important feature for raft protocol. For example, it can greatly shorten the recovery time and delete useless logs in time. Currently, DLedger has not implemented this feature.

@hzh0425 has implemented statemachine feature and the snapshot interface is left.

/**
* User defined snapshot generate function, this method will block StateMachine#onApply(Iterator).
* Call done.run(status) when snapshot finished.
*
* @param writer snapshot writer
* @param done callback
*/
void onSnapshotSave(final SnapshotWriter writer, final CompletableFuture<Boolean> done);
/**
* User defined snapshot load function.
*
* @param reader snapshot reader
* @return true on success
*/
boolean onSnapshotLoad(final SnapshotReader reader);

Welcome to implement snapshot feature for dledger on this basis and improve the log deletion strategy in state machine mode

difficulty

Advanced (10000 Yuan)

Apply Now

Upload your CV and project proposal via ASOC 2022 official website:
https://opensource.alibaba.com/asoc2022

If you have any questions, visit the event website:https://opensource.alibaba.com/asoc2022

Email address: [email protected]

Metadata

Metadata

Assignees

No one assigned

    Labels

    new featurenew featuresocSummer of Code, hosted by Google, Alibaba and so on

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions