Skip to content

Conversation

@jasmine-nahrain
Copy link
Collaborator

With the current logic, when s->current.attempts = 1, the if statement on line 3695 will always be false because 0 % anything is 0.
Removing the -1 so the if statement will only be false when the retry attempts number is reached.
Should close #11006

@masaori335
Copy link
Contributor

This is a 9.2.x specific issue and the master doesn't have it because of some refactoring, right?

@bryancall bryancall added this to the 9.2.4 milestone Jan 29, 2024
@bryancall
Copy link
Contributor

This is related to #9620 that landed on master.

@bryancall bryancall requested review from ywkaras and removed request for zwoop January 29, 2024 23:07
@masaori335 masaori335 linked an issue Jan 30, 2024 that may be closed by this pull request

// Are we done with this particular parent?
if ((s->current.attempts - 1) % s->txn_conf->per_parent_connect_attempts != 0) {
if (s->current.attempts % s->txn_conf->per_parent_connect_attempts != 0) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Seems to match ATS 10:

if (s->current.retry_attempts.get() % s->txn_conf->per_parent_connect_attempts != 0) {

@masaori335 masaori335 merged commit 1859692 into apache:9.2.x Jan 30, 2024
@jasmine-nahrain jasmine-nahrain deleted the 11006 branch January 31, 2024 02:35
masaori335 pushed a commit to masaori335/trafficserver that referenced this pull request Dec 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[9.2.x] Child not marking parent down when parent is not running

4 participants