Begin;

SetSystemParameter "Exception_FakeError" "Checkpoint::FileSynchronizer::execute count=1";

Initialize;

InitializeSession "TEST";
Command "create database TEST";
Command "create table T(F int, primary key(F))";
Command "insert into T values 1,2,3,4,5";

# ここでFakeErrorが発生する
Command "sync 1";

# 同期処理スレッドが起動できないログが出力される
Command "sync 1";

Command "select * from T";

TerminateSession;

# ただしく終了できないログが出力される
Terminate;

End;
