Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1604)

Issue 2378103005: Reland: Fix race / crash in OnNetworkRouteChanged(). (Closed)

Created:
4 years, 2 months ago by stefan-webrtc
Modified:
4 years, 2 months ago
Reviewers:
terelius
CC:
webrtc-reviews_webrtc.org, video-team_agora.io, yujie_mao (webrtc), zhuangzesen_agora.io, zhengzhonghou_agora.io, tterriberry_mozilla.com, perkj_webrtc, mflodman
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Reland: Fix race / crash in OnNetworkRouteChanged(). To achieve this some refactoring was done to make it possible to synchronize access to the DelayBasedBwe in TransportFeedbackAdapter: - The callback was removed from DelayBasedBwe, it now instead returns its result. - TransportFeedbackAdapter was moved to modules/congestion_controller to avoid unnecessary dependencies. Reenables previously disabled flaky test. Can no longer reproduce flakiness with gtest-parallel and asan/tsan builds. BUG=webrtc:6427, webrtc:6422 R=terelius@webrtc.org Committed: https://crrev.com/280de9e1c33efa420fa22496d313c232093e093f Cr-Commit-Position: refs/heads/master@{#14452}

Patch Set 1 #

Patch Set 2 : Fix. #

Patch Set 3 : Added unittest. #

Total comments: 2

Patch Set 4 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+354 lines, -904 lines) Patch
M webrtc/modules/BUILD.gn View 2 chunks +1 line, -1 line 0 comments Download
M webrtc/modules/bitrate_controller/bitrate_controller_impl.h View 1 chunk +1 line, -4 lines 0 comments Download
M webrtc/modules/bitrate_controller/bitrate_controller_impl.cc View 1 chunk +10 lines, -14 lines 0 comments Download
M webrtc/modules/bitrate_controller/bitrate_controller_unittest.cc View 1 chunk +2 lines, -1 line 0 comments Download
M webrtc/modules/bitrate_controller/include/bitrate_controller.h View 3 chunks +4 lines, -2 lines 0 comments Download
M webrtc/modules/congestion_controller/BUILD.gn View 2 chunks +2 lines, -1 line 0 comments Download
M webrtc/modules/congestion_controller/congestion_controller.cc View 6 chunks +7 lines, -13 lines 0 comments Download
M webrtc/modules/congestion_controller/congestion_controller.gypi View 2 chunks +2 lines, -1 line 0 comments Download
M webrtc/modules/congestion_controller/delay_based_bwe.h View 3 chunks +22 lines, -29 lines 0 comments Download
M webrtc/modules/congestion_controller/delay_based_bwe.cc View 1 2 7 chunks +71 lines, -86 lines 0 comments Download
M webrtc/modules/congestion_controller/delay_based_bwe_unittest.cc View 6 chunks +10 lines, -10 lines 0 comments Download
M webrtc/modules/congestion_controller/delay_based_bwe_unittest_helper.h View 2 chunks +3 lines, -2 lines 0 comments Download
M webrtc/modules/congestion_controller/delay_based_bwe_unittest_helper.cc View 14 chunks +56 lines, -58 lines 0 comments Download
M webrtc/modules/congestion_controller/include/congestion_controller.h View 1 chunk +1 line, -1 line 0 comments Download
A + webrtc/modules/congestion_controller/transport_feedback_adapter.h View 1 chunk +16 lines, -11 lines 0 comments Download
A + webrtc/modules/congestion_controller/transport_feedback_adapter.cc View 1 5 chunks +25 lines, -15 lines 0 comments Download
A + webrtc/modules/congestion_controller/transport_feedback_adapter_unittest.cc View 1 2 3 11 chunks +59 lines, -67 lines 0 comments Download
M webrtc/modules/remote_bitrate_estimator/BUILD.gn View 1 chunk +0 lines, -2 lines 0 comments Download
M webrtc/modules/remote_bitrate_estimator/remote_bitrate_estimator.gypi View 1 chunk +0 lines, -2 lines 0 comments Download
D webrtc/modules/remote_bitrate_estimator/transport_feedback_adapter.h View 1 chunk +0 lines, -65 lines 0 comments Download
D webrtc/modules/remote_bitrate_estimator/transport_feedback_adapter.cc View 1 chunk +0 lines, -148 lines 0 comments Download
D webrtc/modules/remote_bitrate_estimator/transport_feedback_adapter_unittest.cc View 1 2 1 chunk +0 lines, -364 lines 0 comments Download
M webrtc/tools/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
M webrtc/tools/event_log_visualizer/analyzer.cc View 3 chunks +31 lines, -1 line 0 comments Download
M webrtc/video/video_send_stream_tests.cc View 1 chunk +30 lines, -6 lines 0 comments Download

Messages

Total messages: 22 (13 generated)
stefan-webrtc
No clue how this got past the trybots, but now it passes webrtc_perf_tests locally for ...
4 years, 2 months ago (2016-09-29 12:14:39 UTC) #4
terelius
LGTM Could you add a test to catch this type of problems on the trybots?
4 years, 2 months ago (2016-09-29 14:09:48 UTC) #7
stefan-webrtc
Added unittest.
4 years, 2 months ago (2016-09-29 14:37:14 UTC) #8
stefan-webrtc
On 2016/09/29 14:37:14, stefan-webrtc (holmer) wrote: > Added unittest. Done. PTAL
4 years, 2 months ago (2016-09-29 14:37:42 UTC) #9
terelius
lgtm https://codereview.webrtc.org/2378103005/diff/40001/webrtc/modules/congestion_controller/transport_feedback_adapter_unittest.cc File webrtc/modules/congestion_controller/transport_feedback_adapter_unittest.cc (right): https://codereview.webrtc.org/2378103005/diff/40001/webrtc/modules/congestion_controller/transport_feedback_adapter_unittest.cc#newcode330 webrtc/modules/congestion_controller/transport_feedback_adapter_unittest.cc:330: // Run long enough that we get a ...
4 years, 2 months ago (2016-09-29 14:45:34 UTC) #13
stefan-webrtc
https://codereview.webrtc.org/2378103005/diff/40001/webrtc/modules/congestion_controller/transport_feedback_adapter_unittest.cc File webrtc/modules/congestion_controller/transport_feedback_adapter_unittest.cc (right): https://codereview.webrtc.org/2378103005/diff/40001/webrtc/modules/congestion_controller/transport_feedback_adapter_unittest.cc#newcode330 webrtc/modules/congestion_controller/transport_feedback_adapter_unittest.cc:330: // Run long enough that we get a valid ...
4 years, 2 months ago (2016-09-29 14:51:22 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2378103005/60001
4 years, 2 months ago (2016-09-30 06:10:20 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: android_arm64_rel on master.tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/android_arm64_rel/builds/11494)
4 years, 2 months ago (2016-09-30 06:15:11 UTC) #19
stefan-webrtc
4 years, 2 months ago (2016-09-30 08:07:05 UTC) #21
Message was sent while issue was closed.
Committed patchset #4 (id:60001) manually as
280de9e1c33efa420fa22496d313c232093e093f (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698