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

Fix GpuFileFormatDataWriter failing to stat file after commit #5107

Merged

Conversation

jlowe
Copy link
Member

@jlowe jlowe commented Mar 31, 2022

Fixes #5084.

#3345 moved the location of stats collection to after file commit, but with some file committers the file is renamed by the commit and therefore trying to stat the original path can fail. #3345 simply ported a change from Spark, but the reason Spark didn't have the same issue is because it also had the changes from apache/spark@7f51106.

This PR makes similar changes to the task stats write tracker to remove the unused newBucket method and adds the new closeFile method to handle updating file stats before commit.

Signed-off-by: Jason Lowe <jlowe@nvidia.com>
@jlowe jlowe added this to the Mar 21 - Apr 1 milestone Mar 31, 2022
@jlowe jlowe self-assigned this Mar 31, 2022
@jlowe
Copy link
Member Author

jlowe commented Mar 31, 2022

build

@sameerz sameerz added the bug Something isn't working label Mar 31, 2022
@sameerz sameerz modified the milestones: Mar 21 - Apr 1, Apr 4 - Apr 15 Apr 4, 2022
Copy link
Collaborator

@gerashegalov gerashegalov left a comment

Choose a reason for hiding this comment

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

Logic LGTM, some nits

@jlowe
Copy link
Member Author

jlowe commented Apr 4, 2022

Thanks for the review, @gerashegalov. I'd like to leave the nits as-is, as it reflects the existing Spark code in BasicWriteTaskStatsTracker (and thus minimizes the diffs). If you feel more strongly that we should address them anyway, Iet me know.

@jlowe jlowe merged commit d678a66 into NVIDIA:branch-22.06 Apr 4, 2022
@jlowe jlowe deleted the fix-gpuwritetasksstatstracker-warning branch April 4, 2022 20:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] GpuWriteTaskStatsTracker complains for all writes in local mode
3 participants