This repository was archived by the owner on Jun 14, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 116
Disable indexes with non-empty "appended" or "deleted" files if hybrid-scan is disabled #194
Merged
Merged
Changes from all commits
Commits
Show all changes
43 commits
Select commit
Hold shift + click to select a range
b0771bf
initial commit
apoorvedave1 bd89f91
Merge branch 'master' into errorhandling
apoorvedave1 37c0dc8
test name fix
apoorvedave1 739d474
Update RefreshIndexTests.scala
apoorvedave1 ad2e9df
initial commit part 2
apoorvedave1 4d27fe2
review comments
apoorvedave1 58aea9d
Merge branch 'errorhandling' of github.com:apoorvedave1/hyperspace-1 …
apoorvedave1 1c4ae1c
Merge branch 'errorhandling' of github.com:apoorvedave1/hyperspace-1 …
apoorvedave1 87ff7b7
doc
apoorvedave1 300703b
Merge branch 'errorhandling' of github.com:apoorvedave1/hyperspace-1 …
apoorvedave1 e31f171
build failure fix
apoorvedave1 47c6730
add unit test for "appended"files update
apoorvedave1 7b4a6a8
test fix
apoorvedave1 f8766c0
review comments
apoorvedave1 5a171f9
Merge branch 'errorhandling' of github.com:apoorvedave1/hyperspace-1 …
apoorvedave1 58f1339
set logger at session initialization in test cases
apoorvedave1 4dc0ab6
Merge branch 'errorhandling' of github.com:apoorvedave1/hyperspace-1 …
apoorvedave1 2c55d86
move mock logger setting to beginning of all SparkInvolvedSuite tests
138e96a
refactoring
apoorvedave1 767513f
explicit assert in test
apoorvedave1 7338de5
review comets
7f94a1d
Merge branch 'errorhandling' of github.com:apoorvedave1/hyperspace-1 …
29ca9b3
test bug fixes
5db1125
Merge branch 'errorhandling' of github.com:apoorvedave1/hyperspace-1 …
apoorvedave1 9d26ddc
whitespace fix
c7816b6
Merge branch 'errorhandling' of github.com:apoorvedave1/hyperspace-1 …
b43b29e
add refresh-append test for updating delted files
7ebda9a
Merge remote-tracking branch 'upstream/master' into bugfixes
abbc59f
Merge branch 'master' into bugfixes
apoorvedave1 8f55e66
bug fix in updating index log entry after refresh append and deleted
apoorvedave1 286ce74
Merge branch 'bugfixes' of github.com:apoorvedave1/hyperspace-1 into …
apoorvedave1 49f34de
remove comment
apoorvedave1 3872fd9
initial commit
apoorvedave1 f5927ac
review comments
apoorvedave1 521edcb
rename test path
apoorvedave1 97099ef
Merge branch 'bugfixes' of github.com:apoorvedave1/hyperspace-1 into …
apoorvedave1 2080edb
add test for "deletedFiles" in entry
apoorvedave1 3af06eb
unit tests added
apoorvedave1 607ae9e
Merge remote-tracking branch 'upstream/master' into bug_193
apoorvedave1 315b36d
review comments, test fixes
apoorvedave1 42de97a
rephrase test name
apoorvedave1 6d1f0fc
autoformat result
apoorvedave1 03f23da
review comments
apoorvedave1 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
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
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
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
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.
This would be ok but might cause some bad user experience:
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.
Thanks @sezruby for bringing this up, i think that's ok. This behavior is expected. I think this experience is exactly same as the following:
Please feel free to suggest how to improve this experience. We can create an issue for the same and fix it in subsequent PRs.
On the other hand, if we don't do this, it will lead to incorrect results.
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.
The user experience currently is not good either. For example, with hybrid scan off, if you add a file, it will fail in
signatureValidwithout letting the user know. We have been talking about exposing "why not" API that tells the user why an index was not picked up. Until we introduce that kind of API, I think the user experience will remain "not desirable" - meaning not good. 😄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 think @apoorvedave1 beat me on this comment 😄
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.
@imback82 @apoorvedave1
This is why I suggested quick failure (assert) rather than storing deletedFiles but maybe we could hybrid scan with it later.
Now we are proposing "mutable" dataset, I think we need to address this issue with more care.
Anyway I'm fine with the current approach as it's also valid :)
Thanks all!
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.
OK, in this case, I still don't understand 😄. @rapoth do you understand this scenario?
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.
Ok let me try again 😁
quickrefresh for the indexesquickrefreshed indexes even if the global config is disabled. The other unrefreshed indexes with diff won't be the candidates for hybrid scan.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.
Thanks 👍 . So in a nutshell, the selective hybrid scan is "we can apply the hybrid scan even if the user didn't enable it only when the signature matches", right?
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.
Right. That's the point 👍
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.
Thanks!