Skip to content

Conversation

@elsloo
Copy link
Contributor

@elsloo elsloo commented Jan 14, 2022

  • Due to scoping, the last user-provided weight seen in parent.config will be applied to all subsequent parents that lack a weight

  • Added a constant to specify the default weight

  • Resets the weight to default prior to parsing each parent's configuration to ensure defaults are used when no weight exists

* Due to scoping, the last user-provided weight seen will be applied to all subsequent hosts that lack a weight

* Added a constant to specify the default weight

* Resets the weight to default prior to parsing each parent's configuration to ensure defaults are used when no weight exists
Copy link
Contributor

@jrushford jrushford left a comment

Choose a reason for hiding this comment

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

Good catch @elsloo, LGTM

@elsloo elsloo merged commit 4e6dc02 into apache:master Jan 14, 2022
zwoop pushed a commit that referenced this pull request Jan 14, 2022
* Due to scoping, the last user-provided weight seen will be applied to all subsequent hosts that lack a weight

* Added a constant to specify the default weight

* Resets the weight to default prior to parsing each parent's configuration to ensure defaults are used when no weight exists

(cherry picked from commit 4e6dc02)
@zwoop
Copy link
Contributor

zwoop commented Jan 14, 2022

Cherry-picked to v9.2.x

@zwoop zwoop added this to the 9.2.0 milestone Jan 14, 2022
moonchen pushed a commit to moonchen/trafficserver that referenced this pull request Mar 17, 2022
* Due to scoping, the last user-provided weight seen will be applied to all subsequent hosts that lack a weight

* Added a constant to specify the default weight

* Resets the weight to default prior to parsing each parent's configuration to ensure defaults are used when no weight exists

(cherry picked from commit 4e6dc02)
(cherry picked from commit eac22df)
moonchen pushed a commit to moonchen/trafficserver that referenced this pull request Mar 17, 2022
* asf/9.2.x:
  Updated ChangeLog
  TSHttpTxnCacheLookupStatusGet: handle cannot respond cases (apache#8545)
  Update to Proxy Verifier version v2.3.0 (apache#8608)
  Don't use Http1ClientTransaction as an event handler (apache#8609)
  Eliminate erroneous self-loop error on transparent mode (apache#8586)
  Clean up of next hop HostRecord class. (apache#8585)
  Propagate accept options to HTTP/2 (apache#8594)
  add --with-mimalloc option (apache#8233)
  Fix transparent mode documentation (apache#8593)
  Docs: Slack instead of irc (apache#8599)
  LogFilter: fix NULL termination check (apache#8603)
  Fixes a scoping bug that leads to "sticky" weights (apache#8606)
moonchen pushed a commit to moonchen/trafficserver that referenced this pull request Jul 26, 2022
…che#296)

* Due to scoping, the last user-provided weight seen will be applied to all subsequent hosts that lack a weight

* Added a constant to specify the default weight

* Resets the weight to default prior to parsing each parent's configuration to ensure defaults are used when no weight exists

(cherry picked from commit 4e6dc02)

Co-authored-by: Jeff Elsloo <elsloo@users.noreply.github.com>
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.

3 participants