[
https://issues.apache.org/jira/browse/HDFS-11754?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16017624#comment-16017624
]
Rushabh S Shah commented on HDFS-11754:
---------------------------------------
bq.I think you can modify existing test case
TestFileCreation#testServerDefaults()
I wouldn't change the existing test case.
Since that case is just verifying whether server defaults works or not.
To test this patch, you need to override the value of the new conf and set it
to maybe 1-2 seconds and mock it such that on second invocation after sleeping
for 2 seconds, it should return new value.
Add another test case.
Set the new conf value like 20 minutes.
Retry back to back and make sure the call didn't reach server and the cached
value was returned.
> Make FsServerDefaults cache configurable.
> -----------------------------------------
>
> Key: HDFS-11754
> URL: https://issues.apache.org/jira/browse/HDFS-11754
> Project: Hadoop HDFS
> Issue Type: Bug
> Affects Versions: 2.6.0
> Reporter: Rushabh S Shah
> Assignee: Mikhail Erofeev
> Priority: Minor
> Labels: newbie
> Fix For: 2.9.0
>
> Attachments: HDFS-11754.001.patch, HDFS-11754.002.patch
>
>
> DFSClient caches the result of FsServerDefaults for 60 minutes.
> But the 60 minutes time is not configurable.
> Continuing the discussion from HDFS-11702, it would be nice if we can make
> this configurable and make the default as 60 minutes.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]