Skip to content

Conversation

@jpeach
Copy link
Contributor

@jpeach jpeach commented Aug 7, 2023

Ensure that the Throttler last allowed time is zero-initialized. This field was uninitialized on macOS with clang 14, causing test failures.

Since we are here, we also switch the Throttler to use the chrono steady_clock (since we don't want it to jump during a throttle interval), and remove virtual functino annotations, since Throttler can't reasonably serve as a base clase.

Ensure that the Throttler last allowed time is zero-initialized. This
field was uninitialized on macOS with clang 14, causing test failures.

Since we are here, we also switch the Throttler to use the chrono
steady_clock (since we don't want it to jump during a throttle interval),
and remove virtual functino annotations, since Throttler can't reasonably
serve as a base clase.

Signed-off-by: James Peach <jpeach@apache.org>
@jpeach jpeach force-pushed the fix-throttler-test branch from ac311b6 to 84ca2a3 Compare August 8, 2023 00:22
@jpeach
Copy link
Contributor Author

jpeach commented Aug 8, 2023

polite_hook_wait appears to be a spurious failure @dragon512

 ./autest.sh --ats-bin=/opt/ats/bin --filter=polite_hook_wait
Python 3.6 or newer detected!
python3-dev/devel detected!
pipenv detected!
Using the pre-existing virtual environment.
Environment config finished. Running AuTest...
Running Test polite_hook_wait:... Passed

Generating Report: --------------
Total of 1 test
  Unknown: 0
  Exception: 0
  Failed: 0
  Warning: 0
  Skipped: 0
  Passed: 1

@apache apache deleted a comment from jpeach Aug 8, 2023
@apache apache deleted a comment from jpeach Aug 8, 2023
Copy link
Contributor

@bneradt bneradt left a comment

Choose a reason for hiding this comment

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

Looks good. Thanks for the updates.

@jpeach jpeach merged commit 454d645 into apache:master Aug 9, 2023
@jpeach jpeach deleted the fix-throttler-test branch August 9, 2023 22:39
cmcfarlen pushed a commit to cmcfarlen/trafficserver that referenced this pull request Jun 3, 2024
* asf/master: (221 commits)
  LSan: Fix leak of test_Metrics (apache#10179)
  LSan: Fix memory leak of test_EventSystem (apache#10178)
  LSan: Fix memory leak of test_X509HostnameValidator (apache#10161)
  Remove cqtx log field (apache#10111)
  Require ATS plugins to be compiled with C++17. (apache#10007)
  Fix conf_remap plugin build on macOS (apache#10177)
  libswoc: Update to 1.5.4 (apache#10155)
  Makes cmake build again, on macOS (apache#10172)
  Check SNI in h3 (apache#10184)
  Remove autoconf headers during CMake configuration (apache#10173)
  test_QUICLossDetector.cc: Add back get_hrtime() (apache#10185)
  ink_ink_get_hrtime -> ink_get_hrtime (apache#10182)
  mgmt: make libconfigmanager a true static library (apache#10181)
  Make sure that the thread local time is updated timely (apache#10163)
  Unrequire remap rules for OCSP (apache#10146)
  cache_range test performance improvement (apache#10170)
  Clean up certifier plugin debug messages. (apache#9975)
  cmake: add check for clock_gettime (apache#10169)
  Remove Http3NoError allocations (apache#10165)
  Fix Throttler initialization. (apache#10154)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants