-
Notifications
You must be signed in to change notification settings - Fork 8.9k
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
HDFS-16457.Make fs.getspaceused.classname reconfigurable #4069
Merged
Merged
Changes from 9 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
b8763c3
HDFS-16457
singer-bin bbac204
Merge branch 'trunk' of https://github.com/apache/hadoop into HDFS-16457
singer-bin 6e8448f
HDFS-16457
singer-bin 30c4323
reslove conficts
singer-bin 25d5a67
the ut of the pr
singer-bin d0f7902
about ut
singer-bin 49afa24
fix ut
singer-bin 68b4a87
fix ut
singer-bin 36a6695
merge PR 3863
singer-bin c55da7b
Extension PR 3863
singer-bin 63182b6
fix ut
singer-bin e5052de
Add windows os judgment
singer-bin 4f3341c
Remove unused methods
singer-bin 7f45dbe
Sort import sentences
singer-bin b560680
Sort import sentences
singer-bin 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
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.
@singer-bin Thanks for updating the PR.
How about we stop using
conf.setClass
instartDFCluster
, and reconfigureDummyCachingGetSpaceUsed
in the unit test, and replace the order of the assertions? (But after this change, somehow the unit test failed.)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.
Hi, thanks for your comment. My UT ideas come from HDFS-15120 ,you can take a look to help understand. My conf comes from the getNewConf() method as follows:
so , passing in
DummyCachingGetSpaceUsed.class.toString()
indn.reconfigurePropertyImpl(FS_GETSPACEUSED_CLASSNAME, DummyCachingGetSpaceUsed.class.toString());
doesn't make sense to me.
I need to set it to my own custom class when the service starts, then wait for the counter to change, and then use
dn.reconfigurePropertyImpl(FS_GETSPACEUSED_CLASSNAME, null);
to refresh the value to the default,and then the counter is not changing.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 forward to your comments and suggestions. @tasanuma
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.
@singer-bin
reconf.. .Parameters(property, newVal)
.reconfSpaceUsedKlass()
, how about extendingreconfDfsUsageParameters
to updatefs.getspaceused.classname
?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.
Thank you very much for your comment, I will consider it. @tasanuma