HDFS-16599. Fix typo in hadoop-hdfs-rbf module#4368
Conversation
ayushtkn
left a comment
There was a problem hiding this comment.
Can you take care of all Typos in the module or atleast at the class level, chasing one-one shall be tough and too much noise for the git.
one more example is L447: ClientProtocol, L1030,L1452
Hi, @ayushtkn Thanks for your suggestion, I will fix it. |
ayushtkn
left a comment
There was a problem hiding this comment.
Have marked two changes, which aren't needed. Rest all LGTM
| * @param retryCount Current retry times | ||
| * @param method Method to invoke | ||
| * @param obj Target object for the method | ||
| * @param obj Target Object for the method |
There was a problem hiding this comment.
OK, I will fix it.
| * @param clazz Class for the return type. | ||
| * @return The result of invoking the method. | ||
| * @throws IOException If the invoke generated an error. | ||
| * @throws IOException If to invoke generated an error. |
There was a problem hiding this comment.
these the->to change isn't correct. Remove all such
There was a problem hiding this comment.
OK, I will fix it.
|
💔 -1 overall
This message was automatically generated. |
|
💔 -1 overall
This message was automatically generated. |
ayushtkn
left a comment
There was a problem hiding this comment.
Dropped some comments, rest looks good
|
|
||
| /** | ||
| * Returns the number of paths to be processed by storage policy satisfier. | ||
| * Returns the number of paths to be processed by storage policy satisfies. |
There was a problem hiding this comment.
SPS abbreviates to Storage Policy Satisfier. So this is correct only
|
|
||
| /** | ||
| * Get time between we receiving the operation and sending it to the Namenode. | ||
| * Get time between we're receiving the operation and sending it to the Namenode. |
| private int compareModDates(FederationNamenodeContext o1, | ||
| FederationNamenodeContext o2) { | ||
| // Reverse sort, lowest position is highest priority. | ||
| // Reverse sort, the lowest position is the highest priority. |
| * Clean the unused connections for this pool. | ||
| * | ||
| * @param pool Connection pool to cleanup. | ||
| * @param pool Connection pool to clean up. |
| return false; | ||
| } else { | ||
| // If old entry is not available, sync quota always, since we can't | ||
| // If old entry is not available, sync quota always, since we can |
There was a problem hiding this comment.
changed meaning itself, revert
| mountTableRefresherService.init(config); | ||
| // One router is not responding for 1 minute, still refresh should | ||
| // finished in 5 second as cache update timeout is set 5 second. | ||
| // be finished in 5 second as cache update timeout is set 5 second. |
|
|
||
| // Create a test file on a single NN that is accessed via a getRouter() path | ||
| // with 2 destinations. All tests should failover to the alternate | ||
| // with 2 destinations. All tests should fail over to the alternate |
There was a problem hiding this comment.
revert, failover is a well accepted word for us
| cluster.waitNamenodeRegistration(); | ||
|
|
||
| // Setup the mount table | ||
| // Set up the mount table |
| // 2) ns0:nn0 - Active (oldest) | ||
| // 3) ns0:nn0 - Active (2nd oldest) | ||
| // 4) ns0:nn0 - Active (3nd oldest element, newest active element) | ||
| // 4) ns0:nn0 - Active (3nd the oldest element, the newest active element) |
There was a problem hiding this comment.
Change
3nd -> 3rd,
no need of first the
| assertTrue(namenodeHeartbeat(report)); | ||
|
|
||
| // standby - newest overall | ||
| // standby - the newest overall |
|
@ayushtkn Thanks a lot for your suggestion, I've done the fix. |
|
💔 -1 overall
This message was automatically generated. |
|
🎊 +1 overall
This message was automatically generated. |
|
🎊 +1 overall
This message was automatically generated. |
|
🎊 +1 overall
This message was automatically generated. |
|
🎊 +1 overall
This message was automatically generated. |
|
🎊 +1 overall
This message was automatically generated. |
ayushtkn
left a comment
There was a problem hiding this comment.
LGTM.
If no further comments, will commit by tomorrow EOD
|
@ayushtkn Thank you very much for your help reviewing the code! |
…uted by fanshilun. Signed-off-by: Ayush Saxena <ayushsaxena@apache.org>
Description of PR
JIRA:HDFS-16599. Fix typo in RouterRpcClient.