pub const INVALID_ID: u64 = 0;
A special value is used to mark invalid log, any valid id of index or entry will large than zero.