Skip to content

WIP server: resolve tsan failure due to main_common refactor#2616

Closed
jmarantz wants to merge 4 commits intoenvoyproxy:masterfrom
jmarantz:main-common-tsan-failure
Closed

WIP server: resolve tsan failure due to main_common refactor#2616
jmarantz wants to merge 4 commits intoenvoyproxy:masterfrom
jmarantz:main-common-tsan-failure

Conversation

@jmarantz
Copy link
Contributor

Description:
Replace the call to Logger::Registry::initialize(options_.logLevel(), log_lock); which had been removed in the earlier refactor, and resulted in the logger being functional but not thread-safe, hence tsan errors.

Note that this incorporates #2609 to allow parallel testing of test/integration:hotrestart_test.

Also note that this branch incorporates #2568 but not the rollback of it in #2613 so it can't be merged as is, but it's probably easier to review this way.

Risk Level: Medium

Testing:
bazel test --compilation_mode=dbg --config=tsan test/integration:hotrestart_test --runs_per_test=100

Release Notes: n/a

htuch and others added 4 commits February 14, 2018 22:36
Provide support to allow folks to use thread annotations across Envoy in
the absence of a full solution to envoyproxy#2571.

Signed-off-by: Harvey Tuch <htuch@google.com>
When using --runs_per_test with concurrency the individual invocations
of the hot restart test may collide. Bazel provides an environment
variable when using --runs_per_test that allows us to set --base_id in
each parallel invocation to a guaranteed unique value so this doesn't
happen.

Signed-off-by: Dan Noé <dpn@google.com>
Envoy sets up SHM even when not starting up fully, so even cases where
the binary is not started with a full config want --base-id. Otherwise
we can get "file exists" when running many tests in parallel.

Signed-off-by: Dan Noé <dpn@google.com>
…h a lock that persists through run().

Signed-off-by: Joshua Marantz <jmarantz@google.com>
@ggreenway
Copy link
Member

Need to resolve merge conflicts

@jmarantz
Copy link
Contributor Author

Dropping this in favor of #2623

@jmarantz jmarantz closed this Feb 15, 2018
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.

5 participants