Skip to content

os syscalls lib: break apart syscalls used for hot restart#6880

Merged
junr03 merged 10 commits intomasterfrom
hot_restart_syscalls
May 10, 2019
Merged

os syscalls lib: break apart syscalls used for hot restart#6880
junr03 merged 10 commits intomasterfrom
hot_restart_syscalls

Conversation

@junr03
Copy link
Copy Markdown
Member

@junr03 junr03 commented May 9, 2019

Description: this PR moves shmUnlink and shmOpen to their own os_sys_calls_hot_restart interface and implementation. Both syscalls are only used by hot restart code, so this PR allows envoy to compile out more api surface when hot restart is disabled.
Risk Level: low - the code is just being moved to its own class, and being selectively compiled with bazel properties.
Testing: updated tests.
Docs Changes: n/a
Release Notes: n/a

Jose Nino added 5 commits May 7, 2019 13:54
wip
Signed-off-by: Jose Nino <jnino@lyft.com>
wip
Signed-off-by: Jose Nino <jnino@lyft.com>
Signed-off-by: Jose Nino <jnino@lyft.com>
fmt
Signed-off-by: Jose Nino <jnino@lyft.com>
Signed-off-by: Jose Nino <jnino@lyft.com>
@mattklein123 mattklein123 self-assigned this May 9, 2019
@junr03
Copy link
Copy Markdown
Member Author

junr03 commented May 9, 2019

I see the problem with the compile time options run. Fixing

Jose Nino added 2 commits May 9, 2019 14:20
Signed-off-by: Jose Nino <jnino@lyft.com>
fix
Signed-off-by: Jose Nino <jnino@lyft.com>
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.

Perfect, thanks. 1 tiny nit.

/wait

Jose Nino added 2 commits May 10, 2019 09:58
Signed-off-by: Jose Nino <jnino@lyft.com>
Signed-off-by: Jose Nino <jnino@lyft.com>
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.

Nice, thanks.

@junr03 junr03 merged commit 6434460 into master May 10, 2019
@junr03 junr03 deleted the hot_restart_syscalls branch May 10, 2019 19:42
mpuncel added a commit to mpuncel/envoy that referenced this pull request May 10, 2019
* master: (88 commits)
  upstream: Null-deref on TCP health checker if setsockopt fails  (envoyproxy#6793)
  ci: switch macOS CI to azure pipelines (envoyproxy#6889)
  os syscalls lib: break apart syscalls used for hot restart (envoyproxy#6880)
  Kafka codec: precompute request size before serialization, so we do n… (envoyproxy#6862)
  upstream: move static and strict_dns clusters to dedicated files (envoyproxy#6886)
  Rollforward of api: Add total_issued_requests to Upstream Locality and Endpoint Stats. (envoyproxy#6692) (envoyproxy#6784)
  fix explicit constructor in copy-initialization (envoyproxy#6884)
  stats: use tag iterator rather than constructing the tag-array and searching that. (envoyproxy#6853)
  common: use unscoped build target in generate_version_linkstamp (envoyproxy#6877)
  Addendum to envoyproxy#6778 (envoyproxy#6882)
  ci: add minimum Linux build for Azure Pipelines (envoyproxy#6881)
  grpc: utilities for inter-converting grpc::ByteBuffer and Buffer::Instance. (envoyproxy#6732)
  upstream: allow excluding hosts from lb calculations until initial health check (envoyproxy#6794)
  stats: prevent unused counters from leaking across hot restart (envoyproxy#6850)
  network filters: add `injectDataToFilterChain(data, end_stream)` method to network filter callbacks (envoyproxy#6750)
  delete things that snuck back in (envoyproxy#6873)
  config: scoped rds (2b): support delta APIs in ConfigProvider framework (envoyproxy#6781)
  string == string! (envoyproxy#6868)
  config: add mssing imports to delta_subscription_state (envoyproxy#6869)
  protobuf: add missing default case to enum (envoyproxy#6870)
  ...

Signed-off-by: Michael Puncel <mpuncel@squareup.com>
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.

2 participants