-
Notifications
You must be signed in to change notification settings - Fork 334
Removing Wrong Spark Spans for Inactive Databricks Clusters #10651
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
Merged
gh-worker-dd-mergequeue-cf854d
merged 18 commits into
master
from
lara.kulkarni/updatingTheSparkSPans
Mar 5, 2026
Merged
Changes from 15 commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
1189586
updating to get rid of wrong spark spans
larakulkarni1 5aeb249
fixed format
larakulkarni1 fb1450e
updating logs to test
larakulkarni1 1d3d147
fixing an error + adding right logs
larakulkarni1 f0be2cf
ran spotless
larakulkarni1 de2d1b6
added a log
larakulkarni1 9714fb0
added logs
larakulkarni1 7646838
added logs
larakulkarni1 5177a4f
Merge branch 'master' into lara.kulkarni/updatingTheSparkSPans
larakulkarni1 2efadac
spotless cleaning
larakulkarni1 06d44cd
removed logs
larakulkarni1 5057b9a
edits logs and added statments
larakulkarni1 20f26df
added spotless check fixes
larakulkarni1 98d3adb
added space back in
larakulkarni1 f2afee0
spotless check
larakulkarni1 8479570
updated logic
larakulkarni1 3be324d
Merge branch 'master' into lara.kulkarni/updatingTheSparkSPans
larakulkarni1 a82739e
Merge branch 'master' into lara.kulkarni/updatingTheSparkSPans
larakulkarni1 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking more closely at this code - it seems like we already try to handle Databricks jobs up above by checking for
applicationSpan == null && jobCount > 0and returning before we ever initialize the application span. Would it make sense to unify our updated logic into there?This might also explain why we weren't seeing this issue previously - most customers don't start all purpose clusters and run nothing on them before they spin down
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was thinking about adding in the check in initApplicationSpanIfNotInitialized() because it's used in multiple methods (they have guards currently) but on the off chance it's used again in the future, adding the check in initApplicationSpanIfNotInitialized would prevent a DBX cluster having a spark span if the new code doesn't have a guard.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For posterity, we discussed in person and we agreed that in that case we would prefer updating all callers to reflect the check being moved into
initApplicationSpanIfNotInitialized. For now, though, we follow the existing pattern and update the check where it is called infinishApplication.