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

[PI-5013] do not cache write client to force timeline server restart before write #22

Merged
merged 4 commits into from
Jan 17, 2025

Conversation

psendyk
Copy link
Collaborator

@psendyk psendyk commented Jan 16, 2025

See apache#12652 for more details on the issue this addresses. Restarting the timeline server before the write seems completely safe to me because it's a no-op if timeline server should be disabled or if it's already running. I'm not sure why it's stopped after each write in the first place but hopefully this will be clarified in the issue I linked. Restarting it should still work well enough for our use case and avoid recreating fgIdToReplaceInstants for every partition. This mapping is only created when the FS view is initialized which, in case of REMOTE_ONLY view, only happens when the timeline server is started (once per batch on the driver, the timeline server is really just a proxy for an in-memory FS view). I tested this change in the lab and it successfully wrote a couple of batches, previously it was consistently failing on the second one.

@psendyk psendyk changed the title [PI-5013] start timeline server before write [PI-5013] do not cache write client to force timeline server restart before write Jan 17, 2025
@psendyk psendyk merged commit 1bda901 into release-0.15.0-heap-fork Jan 17, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants