Fix the issue where `set_epoch` does not take effect. (#3556)
* Fix the issue where `set_epoch` does not take effect.
* Apply style fixes
---------
Co-authored-by: root <root@hjx-dev-h20-3-0.hjx-dev-h20-3.bcloud.svc.cluster.local>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>