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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pass in sourceId tag in all cases #10464
Merged
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
5825d4c
inital
annzhang-db 8bfb9c8
fix test
annzhang-db 1208c10
logs
annzhang-db 9f7ea48
fix logging
annzhang-db 231e4d2
try
annzhang-db f981dd3
update
annzhang-db e211234
update
annzhang-db f670eca
fix
annzhang-db eda95d5
remove DatabricksRepoNotebookExperimentProvider
annzhang-db da482cd
format
annzhang-db 8330b12
fix tests
annzhang-db 9bbd75f
update
annzhang-db 2ad0d17
format
annzhang-db 61b1e50
update
annzhang-db File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.
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.
@annzhang-db I thought we would get a
RESOURCE_ALREADY_EXISTS
exception if we callcreate_experiment()
with a non-repo notebook path that already exists. Is that what the backend does?If the backend does indeed return
RESOURCE_ALREADY_EXISTS
, I think that would break the current implementation ofDatabricksNotebookExperimentProvider
in this PR; have we tested this thoroughly?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.
Yes, we get a
RESOURCE_ALREADY_EXISTS
exception if we callcreate_experiment()
with a non-repo notebook path that already exists AND no sourceType/sourceId tags passed in. Since we are passing in the sourceId here, it will actually go into the previous case (in the backend PR, ill leave a comment there) and raise INVALID_PARAMETER_VALUE error for sourceId but no sourceType.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.
So if I log a param in a non-repo notebook, then attach/detach from the cluster, then try to log a param again, won't this default experiment provider try to call
create_experiment()
under the hood and then fail at the user level withRESOURCE_ALREADY_EXISTS
, which will break the user's workflow?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.
It will call create_experiment() with a sourceId tag, which will not fail with
RESOURCE_ALREADY_EXISTS
. Only if create_experiment() is called without sourceId tag will it fail withRESOURCE_ALREADY_EXISTS
.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.
Ah, got it!