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

on "debug reindex" failed, report operation id containing missing commits #2751

Merged
merged 6 commits into from
Dec 29, 2023

Conversation

yuja
Copy link
Contributor

@yuja yuja commented Dec 28, 2023

Checklist

If applicable:

  • I have updated CHANGELOG.md
  • I have updated the documentation (README.md, docs/, demos/)
  • I have updated the config schema (cli/src/config-schema.json)
  • I have added tests to cover my changes

yuja added 6 commits December 28, 2023 16:51
…ding

The error types are shared with the commit store backend. We could add per-store
error types, but it's unlikely that the caller needs to discriminate them.
I'm going to add a public method that rebuilds index, and its return type will
be different. I also added "build_" because "index" could be misinterpreted
as noun.

The method arguments are reordered to follow the public IndexStore interface.
My jj repo contains such head commits, and "jj debug reindex" fails. To address
this problem, we'll probably need to implement GC, and the user will discard
operations before the first bad op id.
lib/src/default_index/store.rs Show resolved Hide resolved
lib/src/default_index/store.rs Show resolved Hide resolved
@yuja yuja merged commit f9e9058 into jj-vcs:main Dec 29, 2023
15 checks passed
@yuja yuja deleted the push-pnroulmrksvu branch December 29, 2023 04:05
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.

2 participants