Skip to content

storage: convert Arc source tokens back to Rcs#12825

Merged
benesch merged 1 commit into
MaterializeInc:mainfrom
benesch:arc-rc
Jun 1, 2022
Merged

storage: convert Arc source tokens back to Rcs#12825
benesch merged 1 commit into
MaterializeInc:mainfrom
benesch:arc-rc

Conversation

@benesch

@benesch benesch commented Jun 1, 2022

Copy link
Copy Markdown
Contributor

@guswynn @petrosagg I pulled this out of #12798 since that didn't get landed. I addressed your feedback from that review, Gus! I don't have all the context paged in on why we would/wouldn't want to do this, but given that these are thread local right now I found the Arcs confusing. But perhaps y'all know of some reason why they'll need to become thread safe again!


PR #12082 converted source tokens to thread-safe Arcs to be compatible
with the TCP storage/compute boundary, but since #12216 replaced the TCP
boundary with persist we can go back to Rcs.

Motivation

  • This PR refactors existing code.

Testing

  • This PR has adequate test coverage / QA involvement has been duly considered.

Release notes

This PR includes the following user-facing behavior changes:

  • n/a

PR MaterializeInc#12082 converted source tokens to thread-safe `Arc`s to be compatible
with the TCP storage/compute boundary, but since MaterializeInc#12216 replaced the TCP
boundary with persist we can go back to Rcs.
@benesch benesch requested review from guswynn and petrosagg June 1, 2022 21:30
@benesch benesch marked this pull request as ready for review June 1, 2022 21:31

@guswynn guswynn left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

As long as the pg-cdc test pass, we know this still works! but of course it will, rustc compiling this means it has the same behavior!

we never moved them back because it worked fine, but I don't suspect it will ever need to be arc's again. However, leaving it with the upgrade/activate-on-drop style makes it way easier to move back in the future, so thanks!

// failures are ignored
let _ = self.activator.activate();
}
_activator: Rc<ActivateOnDrop<()>>,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

oh yeah, i forgot there is a non-sync version of this already in timely

@benesch

benesch commented Jun 1, 2022

Copy link
Copy Markdown
Contributor Author

Ok great, tyvm for the review @guswynn!

@benesch benesch merged commit e122681 into MaterializeInc:main Jun 1, 2022
@benesch benesch deleted the arc-rc branch June 1, 2022 23:27
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