Skip to content
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

feature: master presence check with timeout #337

Conversation

GRISHNOV
Copy link
Contributor

@GRISHNOV GRISHNOV commented Jan 18, 2023

Added timeout condition for the validation of master presence in replicaset and for the master connection to the utils.get_space method.

Closes #95

@GRISHNOV GRISHNOV force-pushed the igrishnov/gh-95-master-timeout-fetch-for-get-space-utils branch from 73e03ae to 54efec8 Compare January 20, 2023 13:01
@GRISHNOV
Copy link
Contributor Author

I did a rebase with master and also corrected the timeout condition

AFAIU, it is enough to check during the timeout whether the master appeared in the replicaset after another vshard_router:routeall call

Copy link
Member

@DifferentialOrange DifferentialOrange left a comment

Choose a reason for hiding this comment

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

That you for this PR. See my comments below.

@GRISHNOV GRISHNOV force-pushed the igrishnov/gh-95-master-timeout-fetch-for-get-space-utils branch from 54efec8 to a6f23cb Compare January 23, 2023 13:28
Copy link
Member

@DifferentialOrange DifferentialOrange left a comment

Choose a reason for hiding this comment

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

I think you may continue with more complicated timeout implementation

@GRISHNOV GRISHNOV changed the title internal: master presence check with timeout for get space feature: master presence check with timeout for get space Jan 24, 2023
@GRISHNOV GRISHNOV changed the title feature: master presence check with timeout for get space feature: master presence check with timeout Jan 24, 2023
@GRISHNOV GRISHNOV force-pushed the igrishnov/gh-95-master-timeout-fetch-for-get-space-utils branch from a6f23cb to 9b86add Compare January 24, 2023 09:15
@GRISHNOV GRISHNOV force-pushed the igrishnov/gh-95-master-timeout-fetch-for-get-space-utils branch from 9b86add to 00fcbfb Compare January 27, 2023 11:56
@GRISHNOV GRISHNOV marked this pull request as ready for review January 27, 2023 12:24
Copy link
Member

@DifferentialOrange DifferentialOrange left a comment

Choose a reason for hiding this comment

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

Seems fine. Did you've discussed anything with @Totktonada about subtraction?

Added timeout condition for the validation of master presence in
replicaset and for the master connection to the `utils.get_space`
method.

Closes #95
@GRISHNOV GRISHNOV force-pushed the igrishnov/gh-95-master-timeout-fetch-for-get-space-utils branch from 00fcbfb to 3858db9 Compare January 27, 2023 13:29
@GRISHNOV
Copy link
Contributor Author

Did you've discussed anything with @Totktonada about subtraction?

Yes, I have discussed the current solution, it looks ok

@DifferentialOrange DifferentialOrange merged commit 5717e87 into master Jan 27, 2023
@DifferentialOrange DifferentialOrange deleted the igrishnov/gh-95-master-timeout-fetch-for-get-space-utils branch January 27, 2023 13:47
DifferentialOrange added a commit that referenced this pull request Feb 2, 2023
Overview

  This release introduces a breaking change with removing a deprecated
  feature: `crud.len(space_id)`.

  This release also introduces a Cartridge clusterwide config to setup
  `crud.cfg`.

Breaking changes

  You cannot use space id as a space identifier in `crud.len` anymore.
  Use space name instead.

New features

  * Timeout condition for the validation of master presence in 
    replicaset and for the master connection (#95).
  * Cartridge clusterwide configuration for `crud.cfg` (#332).

Changes

  * Forbid using space id in `crud.len` (#255).

Fixes

  * Add validation of the master presence in replicaset and the 
    master connection to the `utils.get_space` method before 
    receiving the space from the connection (#331).
  * Fix fiber cancel on schema reload timeout in `call_reload_schema`
    (PR #337).
@DifferentialOrange DifferentialOrange mentioned this pull request Feb 2, 2023
1 task
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.

Wait for master until a timeout
2 participants