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

Issue 1946353004: Issue 26355. Don't overwrite full index with declarations-only one. (Closed)

Created:
4 years, 7 months ago by scheglov
Modified:
4 years, 7 months ago
Reviewers:
Brian Wilkerson
CC:
reviews_dartlang.org
Base URL:
git@github.com:dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Issue 26355. Don't overwrite full index with declarations-only one. What happens in this case is that when we analyze this project with many (very small) files, we successfully index first declarations (on computing RESOLVED_UNIT3) and then RESOLVED_UNIT. But when we attempt to search, we ask for RESOLVED_UNIT, which is flushed. So, we compute it. In the process we compute RESOLVED_UNIT3, and the listener in _setupIndexInvalidation() indexes declarations, and overwrites the full index. There are several possible solutions, the simplest one is to not overwrite any existing index information while indexing declarations. R=brianwilkerson@google.com BUG= https://github.com/dart-lang/sdk/issues/26355 Committed: https://github.com/dart-lang/sdk/commit/ada9cf43db62a35f63ef75286f3f14aebe222310

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+31 lines, -7 lines) Patch
M pkg/analysis_server/lib/src/services/index/index.dart View 2 chunks +9 lines, -7 lines 0 comments Download
M pkg/analysis_server/test/services/index/index_test.dart View 1 chunk +22 lines, -0 lines 0 comments Download

Messages

Total messages: 4 (1 generated)
scheglov
4 years, 7 months ago (2016-05-05 01:05:28 UTC) #1
Brian Wilkerson
lgtm
4 years, 7 months ago (2016-05-05 13:16:56 UTC) #2
scheglov
4 years, 7 months ago (2016-05-05 14:10:18 UTC) #4
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
ada9cf43db62a35f63ef75286f3f14aebe222310 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698