raise error and rollback when update local cache failed