-
Notifications
You must be signed in to change notification settings - Fork 153
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
[#1608] feat: Introduce ExpiringClosableSupplier and refactor ShuffleManagerClient creation #1838
Merged
advancedxy
merged 28 commits into
apache:master
from
xumanbu:reuse_shuffle_manage_client
Jul 26, 2024
Merged
Changes from 4 commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
fe994f6
[#1608] refactor: Reuse ShuffleManageClient in ShuffleReader and Shuf…
xumanbu 2e557ea
fix spark2 & refactor RssFetchFailedIterator
xumanbu 38831c9
fix findbugs
xumanbu 35e9a56
fix code style
xumanbu 7fb22ce
lazyShuffleManagerClient support
xumanbu 8a12e0c
fix some complie bug
xumanbu 9924baa
add AutoCloseWrapper
xumanbu 06dfe7a
fix test
xumanbu f50e466
fix code style
xumanbu cb495ad
AutoCloseWrapper add static run method
xumanbu dc02a3b
change managerClientAutoCloseWrapper create
xumanbu 4f1b7ca
ShuffleManagerGrpcClient support rpcTimeout
xumanbu 785e4be
fix bug
xumanbu 2906e54
stash
xumanbu cd652a0
Revert "stash"
xumanbu 8cfb044
fix bug
xumanbu 5b8657c
fix spark2
xumanbu 1499396
utoCloseWrapper replace with ExpireCloseableSupplier
xumanbu 0bb986c
add CloseStateful interface
xumanbu f1cb900
Refine ExpiringCloseableSupplier
advancedxy f949fc7
Merge pull request #1 from advancedxy/reuse_shuffle_manage_client
xumanbu dc66b08
fix spark2
xumanbu c8a35e7
StatefulCloseable rename to StatefulCloseable
xumanbu 5d14f36
fix accessTime by findbug SE_TRANSIENT_FIELD_NOT_RESTORED
xumanbu 88a8a6c
fix default rpcTimeout 60s
xumanbu 6e525de
opt accessTime
xumanbu 2d657b1
purge ShuffleManagerClientFactory fun
xumanbu 02ca92c
fix SE_TRANSIENT_FIELD_NOT_RESTORED
xumanbu 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 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
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.
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.
hmm, I don't think it should be called directly.
A more appreciate way should be defining a new method such as
lazyShuffleManagerClient
, which will ensureshuffle manager client is created if null.
Other places should be updated too.
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.
Agree with u. my original idea is same with u, but I discovered it already initialized in the
RssShuffleManage
construct, so I simply addressed it.Ok. I will attempt to implement a
lazyShuffleManagerClient
instead ofshuffleManagerClient
initialized in newRssShuffleManage
at now.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.
+1
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 have refactored the getReader and getWriter constructs, and I understand why the
RssShuffleManage
should initialize theshuffleManagerClient
in the constructor. in case ofRssShuffleClientFactory.ExtendWriteClientBuilder
need it. so I also makeExtendWriteClientBuilder.shuffleManagerClient
is lazy.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.
@advancedxy @zuston PTALA.