combine sync to local and sweep,avoid race in alarm?