|
|
Created:
3 years, 8 months ago by wangjimmy Modified:
3 years, 7 months ago Reviewers:
yzshen1 CC:
chromium-reviews, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, darin (slow to review) Target Ref:
refs/heads/master Project:
chromium Visibility:
Public. |
DescriptionHandle error in connector.
Close handle and swap with dummy handle when read.result !== core.RESULT_FAILED_PRECONDITION.
BUG=716959
Review-Url: https://codereview.chromium.org/2842073003
Cr-Commit-Position: refs/heads/master@{#470069}
Committed: https://chromium.googlesource.com/chromium/src/+/b3d75e896a9c8316dede96ed1ee608cce40d43ab
Patch Set 1 #Patch Set 2 : Add validator.js. Comment out if error for now. #Patch Set 3 : Add return in connector.js. Uncomment if (this.error_). #Patch Set 4 : Remove TODO comment #Patch Set 5 : Clean up code in connector.js #Patch Set 6 : Handle invalid cached incoming message. Remove connector.close #Patch Set 7 : Add back connector.close. Used by web_ui_browser_test.cc #
Total comments: 4
Patch Set 8 : Formatting. Add early return in HandleError if |this.handle_| is null. #Messages
Total messages: 50 (38 generated)
The CQ bit was checked by wangjimmy@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: win_chromium_x64_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_...)
The CQ bit was checked by wangjimmy@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
The CQ bit was checked by wangjimmy@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by wangjimmy@chromium.org
The CQ bit was checked by wangjimmy@chromium.org to run a CQ dry run
The CQ bit was unchecked by wangjimmy@chromium.org
Dry run: CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was checked by wangjimmy@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
The CQ bit was checked by wangjimmy@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
Description was changed from ========== Handle error in connector and close handle and swap with dummy handle. BUG= ========== to ========== Handle error in connector. Close handle and swap with dummy handle when read.result !== core.RESULT_FAILED_PRECONDITION. BUG=716959 ==========
Description was changed from ========== Handle error in connector. Close handle and swap with dummy handle when read.result !== core.RESULT_FAILED_PRECONDITION. BUG=716959 ========== to ========== Handle error in connector. Close handle and swap with dummy handle when read.result !== core.RESULT_FAILED_PRECONDITION. BUG=716959 ==========
wangjimmy@chromium.org changed reviewers: + yzshen@chromium.org
Hi Yuzhu, PTAL at all. Thank you
https://codereview.chromium.org/2842073003/diff/120001/mojo/public/js/connect... File mojo/public/js/connector.js (right): https://codereview.chromium.org/2842073003/diff/120001/mojo/public/js/connect... mojo/public/js/connector.js:143: forceAsyncHandler) { nit: please align "forceAsyncHandler" with "forcePipeReset" on the previous line. https://codereview.chromium.org/2842073003/diff/120001/mojo/public/js/connect... mojo/public/js/connector.js:144: if (this.error_) { Does it make sense to also early return when this.handle_ is null?
The CQ bit was checked by wangjimmy@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
https://codereview.chromium.org/2842073003/diff/120001/mojo/public/js/connect... File mojo/public/js/connector.js (right): https://codereview.chromium.org/2842073003/diff/120001/mojo/public/js/connect... mojo/public/js/connector.js:143: forceAsyncHandler) { On 2017/05/02 22:29:20, yzshen1 wrote: > nit: please align "forceAsyncHandler" with "forcePipeReset" on the previous > line. Done. https://codereview.chromium.org/2842073003/diff/120001/mojo/public/js/connect... mojo/public/js/connector.js:144: if (this.error_) { On 2017/05/02 22:29:20, yzshen1 wrote: > Does it make sense to also early return when this.handle_ is null? Fixed, added early return. Yes, because even though |readMore_()| calls handleError support.watch(this.handle_, core.HANDLE_SIGNAL_READABLE, this.readMore_.bind(this)); When this.handle_ becomes null, the watcher no longer triggers the the |readMore()| callback. There is another caller of handleError which is for the cachedMessage case in Router. So we need to early return in this case if this.handle_ is null.
lgtm
The CQ bit was checked by wangjimmy@chromium.org
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
The author wangjimmy@chromium.org has not signed Google Contributor License Agreement. Please visit https://cla.developers.google.com to sign and manage CLA.
On 2017/05/05 14:52:03, commit-bot: I haz the power wrote: > The author mailto:wangjimmy@chromium.org has not signed Google Contributor License > Agreement. Please visit https://cla.developers.google.com to sign and manage > CLA. Jimmy. I guess you need to sign the agreement now that your intership has ended? If you don't feel like to do it, I could take over the CL and land it for you. Please let me know. Thanks!
The CQ bit was checked by wangjimmy@chromium.org
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
The author wangjimmy@chromium.org has not signed Google Contributor License Agreement. Please visit https://cla.developers.google.com to sign and manage CLA.
The CQ bit was checked by wangjimmy@chromium.org
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator/bui...)
The CQ bit was checked by wangjimmy@chromium.org
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
CQ is committing da patch. Bot data: {"patchset_id": 140001, "attempt_start_ts": 1494266628588610, "parent_rev": "5ef672aa5ffed4146ede2c1d22a04fb91dd5f168", "commit_rev": "b3d75e896a9c8316dede96ed1ee608cce40d43ab"}
Message was sent while issue was closed.
Description was changed from ========== Handle error in connector. Close handle and swap with dummy handle when read.result !== core.RESULT_FAILED_PRECONDITION. BUG=716959 ========== to ========== Handle error in connector. Close handle and swap with dummy handle when read.result !== core.RESULT_FAILED_PRECONDITION. BUG=716959 Review-Url: https://codereview.chromium.org/2842073003 Cr-Commit-Position: refs/heads/master@{#470069} Committed: https://chromium.googlesource.com/chromium/src/+/b3d75e896a9c8316dede96ed1ee6... ==========
Message was sent while issue was closed.
Committed patchset #8 (id:140001) as https://chromium.googlesource.com/chromium/src/+/b3d75e896a9c8316dede96ed1ee6... |