Skip to content

Remove the dependency from TimeSystem to libevent by using the Event::Scheduler abstraction as a delegate.#6240

Merged
dnoe merged 5 commits intoenvoyproxy:masterfrom
jmarantz:abstract-libevent
Mar 12, 2019
Merged

Remove the dependency from TimeSystem to libevent by using the Event::Scheduler abstraction as a delegate.#6240
dnoe merged 5 commits intoenvoyproxy:masterfrom
jmarantz:abstract-libevent

Conversation

@jmarantz
Copy link
Copy Markdown
Contributor

Description: SimulatedTimeSystem and TimeSystem should not directly depend on libevent; they just need to be able to schedule events. This PR adds an abstraction boundary using the existing Scheduler interface.
Risk Level: low -- just a refactor
Testing: //test/...
Docs Changes: n/a
Release Notes: n/a
Fixes #Issue: #5820

…:Scheduler abstraction as a delegate.

Signed-off-by: Joshua Marantz <jmarantz@google.com>
@jmarantz jmarantz requested a review from mattklein123 March 10, 2019 22:47
Signed-off-by: Joshua Marantz <jmarantz@google.com>
@mattklein123 mattklein123 self-assigned this Mar 11, 2019
…ed_time_system_test.cc

This required atomizing some of the aggregated build targets.

Signed-off-by: Joshua Marantz <jmarantz@google.com>
@jmarantz
Copy link
Copy Markdown
Contributor Author

hold off a sec...about to do an update after tests pass locally, to de-dup the LIbeventScheduler impl.

Signed-off-by: Joshua Marantz <jmarantz@google.com>
Signed-off-by: Joshua Marantz <jmarantz@google.com>
@jmarantz
Copy link
Copy Markdown
Contributor Author

should be ready for a look now.

Copy link
Copy Markdown
Member

@mattklein123 mattklein123 left a comment

Choose a reason for hiding this comment

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

Thank you! Great cleanup. :)

@dnoe dnoe merged commit 8b713b3 into envoyproxy:master Mar 12, 2019
@jmarantz jmarantz deleted the abstract-libevent branch March 15, 2019 00:06
spenceral added a commit to spenceral/envoy that referenced this pull request Mar 20, 2019
* master: (59 commits)
  http fault: add response rate limit injection (envoyproxy#6267)
  xds: introduce initial_fetch_timeout option to limit initialization time (envoyproxy#6048)
  test: fix cpuset-threads tests (envoyproxy#6278)
  server: add an API for registering for notifications for server instance life… (envoyproxy#6254)
  remove remains of TestBase (envoyproxy#6286)
  dubbo_proxy: Implement the routing of Dubbo requests (envoyproxy#5973)
  Revert "stats: add new BoolIndicator stat type (envoyproxy#5813)" (envoyproxy#6280)
  runtime: codifying runtime guarded features (envoyproxy#6134)
  mysql_filter: fix integration test flakes (envoyproxy#6272)
  tls: update BoringSSL to debed9a4 (3683). (envoyproxy#6273)
  rewrite buffer implementation to eliminate evbuffer dependency (envoyproxy#5441)
  Remove the dependency from TimeSystem to libevent by using the Event::Scheduler abstraction as a delegate. (envoyproxy#6240)
  fuzz: fix use of literal in default initialization. (envoyproxy#6268)
  http: add HCM functionality required for rate limiting (envoyproxy#6242)
  Disable mysql_integration_test until it is deflaked. (envoyproxy#6250)
  test: use ipv6_only IPv6 addresses in custom cluster integration tests. (envoyproxy#6260)
  tracing: If parent span is propagated with empty string, it causes th… (envoyproxy#6263)
  upstream: fix oss-fuzz issue envoyproxy#11095. (envoyproxy#6220)
  Wire up panic mode subset to receive updates (envoyproxy#6221)
  docs: clarify xds docs with warming information (envoyproxy#6236)
  ...
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.

3 participants