Skip to content

remove (re)opens in actor switching#1724

Open
ianhi wants to merge 1 commit intomainfrom
ian/less-reopen
Open

remove (re)opens in actor switching#1724
ianhi wants to merge 1 commit intomainfrom
ian/less-reopen

Conversation

@ianhi
Copy link
Copy Markdown
Collaborator

@ianhi ianhi commented Feb 26, 2026

We already have reopening logic on the super classes. I wanted to remove the (re)open in the actor switch as that potentially does some re-init which might mask a subtle bug. This way its a bit more like two concurrent actors who have both opened the repo and are doing operations to it.

@ianhi ianhi requested a review from dcherian February 26, 2026 16:54
Comment on lines +154 to +156
actor_name = data.draw(st.sampled_from(list(self.actors.keys())))
if actor_name == self.actor_name:
return
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Suggested change
actor_name = data.draw(st.sampled_from(list(self.actors.keys())))
if actor_name == self.actor_name:
return
actor_name = data.draw(st.sampled_from(list(k for k in self.actors.keys() if k!=self.actor_name)))

let's just filter it out

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

👍

@ianhi
Copy link
Copy Markdown
Collaborator Author

ianhi commented Feb 27, 2026

I actually havve a branch on top of this that goes way farther, and starts allowing for simple rebases with an aribitrary number of actors working in parallel on a repo. so might just swap to that

- Refactor ClaimTracker: remove _protected, _try_clear, _stash_session, _on_clear
- Add delete_dir() and rewrite_manifests() to MultiActorModel
- Simplify IcechunkModel with cleaner lifecycle methods
- Extract actor logic to multi-actor case only
- Fix delete+recreate in rebase (Rust conflict detector)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@ianhi ianhi force-pushed the ian/less-reopen branch from 086c78c to d942d2c Compare March 6, 2026 19:18
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