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

Issue 2818163003: Make copy of the drivers list in SearchEngineImpl2 to avoid ConcurrentModificationError. (Closed)

Created:
3 years, 8 months ago by scheglov
Modified:
3 years, 8 months ago
Reviewers:
Brian Wilkerson
CC:
reviews_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Make copy of the drivers list in SearchEngineImpl2 to avoid ConcurrentModificationError. I think this happens when a driver is disposed why search is in progress. So, we need to make defensive copies. This also makes me realize that we don't handle situations when a driver instance is disposed, but it has pending requests, such as getResult(), getIndex(), etc - actually any getXXX(), and search. As it is now, I think we just leave these Future(s) and they never complete. R=brianwilkerson@google.com BUG= Committed: https://github.com/dart-lang/sdk/commit/124f874b4aaa0fdb7d6eeda52847bf30e9169e93

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -5 lines) Patch
M pkg/analysis_server/lib/src/services/search/search_engine_internal2.dart View 5 chunks +10 lines, -5 lines 0 comments Download

Messages

Total messages: 4 (1 generated)
scheglov
3 years, 8 months ago (2017-04-15 00:25:10 UTC) #1
Brian Wilkerson
lgtm
3 years, 8 months ago (2017-04-17 16:35:01 UTC) #2
scheglov
3 years, 8 months ago (2017-04-17 16:42:00 UTC) #4
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
124f874b4aaa0fdb7d6eeda52847bf30e9169e93 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698