Skip to content

Conversation

iambriccardo
Copy link
Contributor

@iambriccardo iambriccardo commented Aug 29, 2025

This PR improves the primary key handling in the following way:

  • Removes the manual storing of the table replication state on error, since this is done automatically by the table sync worker main.
  • Improves the test and moves it into pipeline_test.
  • Improves the usage of the Notify without creating one each time and correctly using notify_waiters. The previous implementation was there because I forgot to update it.

Comment on lines -120 to -123
let notify = Arc::new(Notify::new());
self.pool_update = Some(notify.clone());

return Ok(Some(notify));
Copy link
Contributor Author

Choose a reason for hiding this comment

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

No need to recreate this every time.

@iambriccardo iambriccardo marked this pull request as ready for review August 29, 2025 11:56
@iambriccardo iambriccardo requested a review from a team as a code owner August 29, 2025 11:56
@iambriccardo iambriccardo merged commit e735f7f into main Aug 29, 2025
5 checks passed
@iambriccardo iambriccardo deleted the riccardobusetti/etl-207-the-pipelineshutdown_and_wait-function-sometimes-returns branch August 29, 2025 11:59
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