You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by GitBox <gi...@apache.org> on 2020/07/15 17:55:52 UTC

[GitHub] [hadoop-ozone] adoroszlai opened a new pull request #1204: HDDS-3964. Ratis config key mismatch

adoroszlai opened a new pull request #1204:
URL: https://github.com/apache/hadoop-ozone/pull/1204


   ## What changes were proposed in this pull request?
   
   1. Fix config key mismatch:
    * `raft.client.rpc.watch.request.timeout` vs. `raft.client.watch.request.timeout`
    * `raft.server.notification.no-leader.timeout` vs. `raft.server.Notification.no-leader.timeout`
   2. Use type-safe config for Raft client settings in tests.  Get rid of constants to discourage setting raw config.
   3. Fix prefix for `RatisClientConfig.RaftConfig`.  `@ConfigGroup` defined in inner class (`RaftConfig`) does not inherit prefix (`hdds.ratis`) from outer class (`RatisClientConfig`), so we need to explicitly specify it.
   
   https://issues.apache.org/jira/browse/HDDS-3964
   
   ## How was this patch tested?
   
   Ran some affected integration tests locally, verified that custom Ratis settings were applied:
   
   ```
   [pool-63-thread-1] INFO  server.RaftServerConfigKeys (ConfUtils.java:logGet(44)) - raft.server.notification.no-leader.timeout = 10000ms (custom)
   ```
   
   (client property printed by temporary log statement):
   
   ```
   [Command processor thread] INFO  ratis.RatisHelper (RatisHelper.java:createRaftClientProperties(241)) - ZZZ raft.client.rpc.watch.request.timeout = 3000ms
   ```
   
   https://github.com/adoroszlai/hadoop-ozone/runs/873847680


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: ozone-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: ozone-issues-help@hadoop.apache.org


[GitHub] [hadoop-ozone] adoroszlai merged pull request #1204: HDDS-3964. Ratis config key mismatch

Posted by GitBox <gi...@apache.org>.
adoroszlai merged pull request #1204:
URL: https://github.com/apache/hadoop-ozone/pull/1204


   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: ozone-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: ozone-issues-help@hadoop.apache.org


[GitHub] [hadoop-ozone] adoroszlai commented on pull request #1204: HDDS-3964. Ratis config key mismatch

Posted by GitBox <gi...@apache.org>.
adoroszlai commented on pull request #1204:
URL: https://github.com/apache/hadoop-ozone/pull/1204#issuecomment-659242799


   > Would it be better to change `clientConfig` to `ratisClientConfig` so that it matches `ratisServerConfig` (#1106)?
   
   Thanks @cku328 for the suggestion.  I'm OK with both names.  I'll update the patch based on your suggestion together with any other changes that may be requested by @bshashikant and/or @lokeshj1703, or if they approve it as it is.  (I'd like to minimize number of CI checks due to too much flakiness.)


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: ozone-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: ozone-issues-help@hadoop.apache.org


[GitHub] [hadoop-ozone] adoroszlai commented on pull request #1204: HDDS-3964. Ratis config key mismatch

Posted by GitBox <gi...@apache.org>.
adoroszlai commented on pull request #1204:
URL: https://github.com/apache/hadoop-ozone/pull/1204#issuecomment-659106380


   @cku328 thanks for finding the `watch.request.timeout` problem, please review


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: ozone-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: ozone-issues-help@hadoop.apache.org


[GitHub] [hadoop-ozone] adoroszlai commented on pull request #1204: HDDS-3964. Ratis config key mismatch

Posted by GitBox <gi...@apache.org>.
adoroszlai commented on pull request #1204:
URL: https://github.com/apache/hadoop-ozone/pull/1204#issuecomment-659519673


   > > I was considering changing the parameter to `Duration`
   > yeah...that seems like a better approach.
   
   Created HDDS-3975 for this.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: ozone-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: ozone-issues-help@hadoop.apache.org


[GitHub] [hadoop-ozone] lokeshj1703 commented on pull request #1204: HDDS-3964. Ratis config key mismatch

Posted by GitBox <gi...@apache.org>.
lokeshj1703 commented on pull request #1204:
URL: https://github.com/apache/hadoop-ozone/pull/1204#issuecomment-659388287


   > I was considering changing the parameter to `Duration`, similar to
   > 
   > https://github.com/apache/hadoop-ozone/blob/de027855798bf3b891b8d3c00dc8e59531f98781/hadoop-ozone/recon/src/main/java/org/apache/hadoop/ozone/recon/tasks/ReconTaskConfig.java#L41-L49
   > 
   > What do you think about that?
   
   yeah...that seems like a better approach.
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: ozone-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: ozone-issues-help@hadoop.apache.org


[GitHub] [hadoop-ozone] adoroszlai commented on pull request #1204: HDDS-3964. Ratis config key mismatch

Posted by GitBox <gi...@apache.org>.
adoroszlai commented on pull request #1204:
URL: https://github.com/apache/hadoop-ozone/pull/1204#issuecomment-659887007


   Thanks @cku328 and @lokeshj1703 for the review.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: ozone-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: ozone-issues-help@hadoop.apache.org


[GitHub] [hadoop-ozone] adoroszlai commented on pull request #1204: HDDS-3964. Ratis config key mismatch

Posted by GitBox <gi...@apache.org>.
adoroszlai commented on pull request #1204:
URL: https://github.com/apache/hadoop-ozone/pull/1204#issuecomment-659376896


   Thanks @lokeshj1703 for the review.
   
   > Minor comment - We can add suffix like "InMs" for time based configs in classes like RatisClientConfig.
   > We can do it as part of separate jira though.
   
   I was considering changing the parameter to `Duration`, similar to 
   
   https://github.com/apache/hadoop-ozone/blob/de027855798bf3b891b8d3c00dc8e59531f98781/hadoop-ozone/recon/src/main/java/org/apache/hadoop/ozone/recon/tasks/ReconTaskConfig.java#L41-L49
   
   What do you think about that?


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: ozone-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: ozone-issues-help@hadoop.apache.org