Skip to content

Conversation

@bshashikant
Copy link
Contributor

What changes were proposed in this pull request?

Added Timeout support for ratis requests.

What is the link to the Apache JIRA

https://issues.apache.org/jira/browse/HDDS-5049

How was this patch tested?

Existing UT

@bshashikant
Copy link
Contributor Author

@GlenGeng , can you have a look?

= TimeDuration.valueOf(1, TimeUnit.SECONDS);

public static final String OZONE_SCM_RATIS_REQUEST_TIMEOUT_KEY
= "ozone.scm.ratis.minimum.timeout";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we add the key to SCMHAConfiguration ?
BTW, the key OZONE_SCM_RATIS_SERVER_REQUEST_TIMEOUT_KEY, OZONE_SCM_RATIS_SERVER_RETRY_CACHE_TIMEOUT_KEY, OZONE_SCM_RATIS_MINIMUM_TIMEOUT_KEY, OZONE_SCM_LEADER_ELECTION_MINIMUM_TIMEOUT_DURATION_KEY etc are not used any more. Better clean up them.

Copy link
Contributor Author

@bshashikant bshashikant Mar 31, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think, we should be remove SCMHAConfiguration and pull all the required configs in ScmConfigKeys and remove the unused ones. But, i would prefer to do this as a part of different jira altogether.

https://issues.apache.org/jira/browse/HDDS-5054 is opened to track the same.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure. Thanks for creating the jira.

@GlenGeng-awx
Copy link
Contributor

+1. Thanks @bshashikant for the work. I will merge it.

@GlenGeng-awx GlenGeng-awx merged commit b75b8e3 into apache:master Apr 1, 2021
errose28 added a commit to errose28/ozone that referenced this pull request Apr 7, 2021
* HDDS-3698-nonrolling-upgrade: (144 commits)
  fix project name in NOTICE.txt (apache#2112)
  HDDS-5066. Use fixed vesion from pnpm to build recon (apache#2115)
  HDDS-5014. Add non-rolling upgrade design docs.
  HDDS-5035. Use default config values to solve generated config file conflict (apache#2087)
  HDDS-5032. DN stopped to load containers on volume after a container load exception. (apache#2109)
  HDDS-4504. Datanode deletion config should be based on number of blocks (apache#1885)
  Fix ozone-ha acceptance test.
  HDDS-5058. Make getScmInfo retry for a duration.
  HDDS-4506. Support query parameter based v4 auth in S3g (apache#1628)
  HDDS-4553. ChunkInputStream should release buffer as soon as last byte in the buffer is read (apache#2062)
  HDDS-5022. SCM get roles command should provide Ratis Leader/Follower… (apache#2098)
  HDDS-5033. SCM may not be able to know full port list of Datanode after Datanode is started. (apache#2090)
  HDDS-3752. Fix o3fs list bucket contents issue when without tailing "/" (apache#2088)
  HDDS-4901. Remove OmOzoneAclMap from OmVolumeArgs to avoid OzoneAcl conversions (apache#1992)
  HDDS-4987. Import container should not delete container contents if container already exists (apache#2077)
  Checkstyle fix.
  Intialize DN layout version before security init.
  HDDS-4915. [SCM HA Security] Integrate CertClient. (apache#2000)
  HDDS-5049. Add timeout support for ratis requests in SCM HA. (apache#2099)
  trigger new CI check
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants