-
Notifications
You must be signed in to change notification settings - Fork 9.2k
Exclusive Cache Lock #8209
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
Open
yschimke
wants to merge
44
commits into
square:master
Choose a base branch
from
yschimke:cache_singleton
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Exclusive Cache Lock #8209
Changes from 1 commit
Commits
Show all changes
44 commits
Select commit
Hold shift + click to select a range
8674a8b
Cache Lock
yschimke c3df60f
Merge branch 'master' into cache_singleton
yschimke 166a255
Merge branch 'master' into cache_singleton
yschimke b02738d
Rework
yschimke ac0cc79
Rework
yschimke 2525edf
Add test
yschimke 7072358
Cleanup
yschimke 5ca131f
Activate missed test
yschimke 0a2fbb6
Cleanup
yschimke c9db9d4
Avoid checking on non system file systems
yschimke 97e566b
Revert "Avoid checking on non system file systems"
yschimke ee1daa6
Avoid failing on dns tests
yschimke 3041258
Adding a test
yschimke 7faba3e
Fixes
yschimke 44d3640
Test on more platforms
yschimke 792b689
Cleanup
yschimke 5117f46
Merge branch 'master' into cache_singleton
yschimke a922b1d
Cleanup
yschimke e24e146
Fixes
yschimke 04c057f
Fixes
yschimke 5c6c60d
Cache fixes
yschimke 12b7eb9
Cache fixes
yschimke ae3830d
Cache fixes
yschimke 99a5ee5
Cache fixes
yschimke cc97769
Cache fixes
yschimke 6dbb03f
Fix test
yschimke 19be22b
Merge branch 'refs/heads/master' into cache_singleton
yschimke feafff9
Fix test
yschimke 72359a6
avoid windows for now
yschimke b76aa7f
Fix or skip on windows
yschimke 89e9d80
cleanup
yschimke 28025e2
skip on windows
yschimke fa707bc
Update DuplexTest.kt
yschimke c5a87f0
Merge branch 'master' into cache_singleton
yschimke bb0d4b0
Fixes
yschimke 192e93b
Fixes
yschimke b4115b2
Fixes
yschimke 2f959af
Fixes
yschimke 7af5705
Fixes
yschimke 4e9d4b3
Fix test
yschimke 019560c
reformat
yschimke 433f6f7
Make it optional
yschimke b650c9a
Merge branch 'master' into cache_singleton
yschimke f9479e8
reformat
yschimke 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
Cache fixes
- Loading branch information
commit 99a5ee5f3ccedb93f7e7032c71ecf6958c37320f
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
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.
I’m a bit torn on this. You don’t get a failure immediately; you get it eventually.
This is probably fine; this new feature is advisory.
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.
Yeah, this currently works until it doesn't. Then it ends up as 40+ bugs raised.
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.
We can't really do IO operations on the main thread, so this should always be the case.
Which reminds me, for SSL init on main thread #8248
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 agree with ‘We can’t really do I/O operations on the main thread’, but I don’t agree that OkHttpClient is being initialized on the main thread. We’re an I/O library!
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 the dominant DI libraries will all be initializing OkHttp on the main thread. You have to do extra work to avoid that.