An optimistic checkpointing and selective message logging approach for consistent global checkpoint collection in distributed sy