arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2312.02851cs.PLcs.LO
收藏

会话编程中基于检查点的回滚恢复

Checkpoint-based rollback recovery in session programming

Claudio Antares Mezzina, Francesco Tiezzi, Nobuko Yoshida

AI总结:

针对以通信为核心的系统中需撤销异常交互的需求,提出一种带会话提交、回滚、中止功能的语言,通过MAUDE实现的类型级合规检查静态避免不当回滚,满足会话无错性和进展性。

摘要:

为应对以通信为核心的系统中的突发状况或纠正异常情况,程序员负责“撤销”导致非预期状态的交互。为辅助完成这项任务,基于会话的语言可配备可逆机制。本文提出一种增强了编程功能的语言,支持提交会话交互、将计算回滚至先前的提交点,以及中止会话。该语言中的回滚始终将系统带回此前访问过的状态,且回滚无法将系统恢复到上一次提交之前的节点。程序员无需再承担确保回滚绝不会恢复由非回滚请求方的会话参与者所设置检查点的负担。这类非预期情况可通过类型层面的可判定合规性检查在设计时(静态地)予以避免,该检查已在MAUDE中实现。我们证明该语言满足会话的无错性和进展性。

英文摘要:

To react to unforeseen circumstances or amend abnormal situations in communication-centric systems, programmers are in charge of "undoing" the interactions which led to an undesired state. To assist this task, session-based languages can be endowed with reversibility mechanisms. In this paper we propose a language enriched with programming facilities to commit session interactions, to roll back the computation to a previous commit point, and to abort the session. Rollbacks in our language always bring the system to previous visited states and a rollback cannot bring the system back to a point prior to the last commit. Programmers are relieved from the burden of ensuring that a rollback never restores a checkpoint imposed by a session participant different from the rollback requester. Such undesired situations are prevented at design-time (statically) by relying on a decidable compliance check at the type level, implemented in MAUDE. We show that the language satisfies error-freedom and progress of a session.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑