Skip to content

Conversation

elhimov
Copy link
Contributor

@elhimov elhimov commented Sep 2, 2025

Implementation of cartridge bootstrap in tt needs to know aliases of all instances to work properly. Aliases of instances are managed with membership module which spreads out certain instance alias across the rest of instances using gossip protocol. At the very start of an instance only that instance "knows" its alias, others get this knowledge with some delay. That means in turn that the topology obtained from the different instances might differ in terms of aliases.

Prior to this patch topology from a single instance was used and if at that moment this instance haven't collected information about all the aliases, bootstrap failed. Now if any alias is missing we are trying to get it from the topologies obtained from the other instances until all aliases are resolved.

The patch fixes flaky test so there is no need to introduce new tests.

I didn't forget about:

  • Well-written commit messages (see documentation how to write a commit message)

Related issues:

Closes TNTP-3709

@elhimov elhimov force-pushed the elhimov/tntp-3709-flaky-test_replicaset_bootstrap_cartridge_app_second_bootstrap branch 4 times, most recently from 8c8d7bd to d5d0567 Compare September 3, 2025 09:24
@elhimov elhimov added the full-ci Enables full ci tests label Sep 3, 2025
@elhimov elhimov force-pushed the elhimov/tntp-3709-flaky-test_replicaset_bootstrap_cartridge_app_second_bootstrap branch from d5d0567 to f42d50a Compare September 3, 2025 16:43
@elhimov elhimov force-pushed the elhimov/tntp-3709-flaky-test_replicaset_bootstrap_cartridge_app_second_bootstrap branch 4 times, most recently from 20114aa to c888519 Compare September 4, 2025 12:18
@elhimov elhimov marked this pull request as draft September 5, 2025 09:54
@elhimov elhimov force-pushed the elhimov/tntp-3709-flaky-test_replicaset_bootstrap_cartridge_app_second_bootstrap branch 7 times, most recently from eb571b8 to 132adc1 Compare September 8, 2025 09:34
@elhimov elhimov removed the full-ci Enables full ci tests label Sep 8, 2025
@elhimov elhimov force-pushed the elhimov/tntp-3709-flaky-test_replicaset_bootstrap_cartridge_app_second_bootstrap branch 3 times, most recently from 177ed43 to 96bb340 Compare September 8, 2025 15:01
@elhimov elhimov added the full-ci Enables full ci tests label Sep 8, 2025
@elhimov elhimov force-pushed the elhimov/tntp-3709-flaky-test_replicaset_bootstrap_cartridge_app_second_bootstrap branch from 96bb340 to 31fa5fb Compare September 8, 2025 16:13
@elhimov elhimov force-pushed the elhimov/tntp-3709-flaky-test_replicaset_bootstrap_cartridge_app_second_bootstrap branch 6 times, most recently from 15d0303 to eb81b99 Compare September 10, 2025 07:18
@elhimov elhimov force-pushed the elhimov/tntp-3709-flaky-test_replicaset_bootstrap_cartridge_app_second_bootstrap branch 7 times, most recently from 9e6410b to f4c8402 Compare September 24, 2025 09:59
@elhimov elhimov marked this pull request as ready for review September 24, 2025 09:59
@elhimov elhimov force-pushed the elhimov/tntp-3709-flaky-test_replicaset_bootstrap_cartridge_app_second_bootstrap branch from f4c8402 to 9c3b3c8 Compare September 24, 2025 10:10
@elhimov elhimov force-pushed the elhimov/tntp-3709-flaky-test_replicaset_bootstrap_cartridge_app_second_bootstrap branch from 9c3b3c8 to cb3f1e1 Compare September 24, 2025 10:14
@elhimov elhimov changed the title ci: display port usage information cartridge: fix discovery to avoid missing aliases Sep 24, 2025
@elhimov elhimov force-pushed the elhimov/tntp-3709-flaky-test_replicaset_bootstrap_cartridge_app_second_bootstrap branch from cb3f1e1 to e890680 Compare September 24, 2025 10:25
Implementation of cartridge bootstrap in `tt` needs to know aliases of
all instances to work properly. Aliases of instances are managed with
`membership` module which spreads out certain instance alias across the
rest of instances using `gossip` protocol. At the very start of
an instance only that instance "knows" its alias, others get this
knowledge with some delay. That means in turn that the topology obtained
from the different instances might differ in terms of aliases.

Prior to this patch topology from a single instance was used and if at
that moment this instance haven't collected information about all the
aliases, bootstrap failed. Now if any alias is missing we are trying to
get it from the topologies obtained from the other instances until all
aliases are resolved.

The patch fixes flaky test so there is not need to introduce new tests.

Closes #TNTP-3709
@elhimov elhimov force-pushed the elhimov/tntp-3709-flaky-test_replicaset_bootstrap_cartridge_app_second_bootstrap branch from e890680 to cdc3361 Compare September 24, 2025 11:26
@dmyger dmyger merged commit 2eba9ef into master Sep 25, 2025
26 checks passed
@dmyger dmyger deleted the elhimov/tntp-3709-flaky-test_replicaset_bootstrap_cartridge_app_second_bootstrap branch September 25, 2025 10:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
full-ci Enables full ci tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants