Registry Mirror
Skip to content

Conversation

@gruuya

@gruuya gruuya commented Aug 7, 2024 •

Copy link
Copy Markdown
Contributor

The flag is tracked in SeafowlFlightHandler since it is the one that actually constructs the response (not SeafowlDataSyncWriter), and in addition it has short-circuiting for the "probing" request.

Also enable IF (NOT) EXISTS short-circuiting for table creation/dropping, so it also closes #589.

@gruuya
gruuya requested review from eatonphil and mildbyte August 7, 2024 07:40
Comment thread src/frontend/flight/handler.rs Resolved
pub results: Arc<DashMap<String, Mutex<SendableRecordBatchStream>>>,
sync_writer: Arc<RwLock<SeafowlDataSyncWriter>>,
// Denotes whether we're past the first sync reponse, thus indicating Seafowl (re)starts
first_sync: Arc<AtomicBool>,

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.

This doesn't need to be tracked for each origin separately?

@gruuya gruuya Aug 7, 2024 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

My understanding was no, only the overall response order is important, cc @eatonphil?

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.

That's right

Co-authored-by: Artjoms Iskovs <artjoms.iskovs@enterprisedb.com>
@gruuya
gruuya merged commit 5cc286a into main Aug 8, 2024
@gruuya
gruuya deleted the first-sync-flag branch August 8, 2024 11:40
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.

Slow Table List Retrieval in Many Tables

3 participants