Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(block-reverter): Fix reverting snapshot files #2064

Merged
merged 6 commits into from
Jun 3, 2024

Conversation

slowli
Copy link
Contributor

@slowli slowli commented May 28, 2024

What ❔

  • Does not retry "not found" errors when removing objects.
  • Makes rolling back snapshot files optional.

Why ❔

The current implementation leads to very slow reverts because of retries.

Checklist

  • PR title corresponds to the body of PR (we generate changelog entries from PRs).
  • Tests for the changes have been added / updated.
  • Documentation comments have been added / updated.
  • Code has been formatted via zk fmt and zk lint.
  • Spellcheck has been run via zk spellcheck.

core/lib/object_store/src/gcs.rs Show resolved Hide resolved
core/node/block_reverter/src/lib.rs Show resolved Hide resolved
core/node/block_reverter/src/lib.rs Show resolved Hide resolved
@slowli slowli marked this pull request as ready for review May 28, 2024 10:12
Copy link
Member

@popzxc popzxc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed LGTM, but I don't have an opinion/lack knowledge to answer questions in your comments, so probably it makes sense to get a review from someone with hands-on GCS experience.

core/lib/object_store/src/gcs.rs Show resolved Hide resolved
@slowli slowli mentioned this pull request May 31, 2024
5 tasks
@slowli slowli added this pull request to the merge queue Jun 3, 2024
Merged via the queue into main with commit 17a7e78 Jun 3, 2024
53 checks passed
@slowli slowli deleted the aov-pla-952-fix-reverting-snapshot-files branch June 3, 2024 11:24
github-merge-queue bot pushed a commit that referenced this pull request Jun 3, 2024
🤖 I have created a release *beep* *boop*
---


##
[24.7.0](core-v24.6.0...core-v24.7.0)
(2024-06-03)


### Features

* **node-framework:** Add reorg detector
([#1551](#1551))
([7c7d352](7c7d352))


### Bug Fixes

* **block-reverter:** Fix reverting snapshot files
([#2064](#2064))
([17a7e78](17a7e78))
* **env:** Do not print stacktrace for locate workspace
([#2111](#2111))
([5f2677f](5f2677f))
* **eth-watch:** make assert less strict
([#2129](#2129))
([e9bab95](e9bab95))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

---------

Co-authored-by: zksync-era-bot <zksync-era-bot@users.noreply.github.com>
github-merge-queue bot pushed a commit that referenced this pull request Jun 4, 2024
🤖 I have created a release *beep* *boop*
---


##
[14.5.0](prover-v14.4.0...prover-v14.5.0)
(2024-06-04)


### Features

* update VKs and bump cargo.lock
([#2112](#2112))
([6510317](6510317))
* use semver for metrics, move constants to prover workspace
([#2098](#2098))
([7a50a9f](7a50a9f))


### Bug Fixes

* **block-reverter:** Fix reverting snapshot files
([#2064](#2064))
([17a7e78](17a7e78))
* **house-keeper:** Fix queue size queries
([#2106](#2106))
([183502a](183502a))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
vivijj pushed a commit to CortexFoundation/zksync-era that referenced this pull request Jun 7, 2024
## What ❔

- Does not retry "not found" errors when removing objects.
- Makes rolling back snapshot files optional.

## Why ❔

The current implementation leads to very slow reverts because of
retries.

## Checklist

- [x] PR title corresponds to the body of PR (we generate changelog
entries from PRs).
- [x] Tests for the changes have been added / updated.
- [x] Documentation comments have been added / updated.
- [x] Code has been formatted via `zk fmt` and `zk lint`.
- [x] Spellcheck has been run via `zk spellcheck`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants