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

Issue 26071003: Switch to copy files synchronously (address the too-many-open-files bug) (Closed)

Created:
7 years, 2 months ago by Siggi Cherem (dart-lang)
Modified:
7 years, 2 months ago
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Switch to copy files synchronously (address the too-many-open-files bug)

Patch Set 1 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -11 lines) Patch
M pkg/polymer/lib/src/build/runner.dart View 3 chunks +7 lines, -11 lines 3 comments Download

Messages

Total messages: 9 (0 generated)
Siggi Cherem (dart-lang)
7 years, 2 months ago (2013-10-05 00:26:43 UTC) #1
Jennifer Messerly
lgtm
7 years, 2 months ago (2013-10-05 00:35:33 UTC) #2
kevmoo-old
See note. I think I found the problem... https://codereview.chromium.org/26071003/diff/1/pkg/polymer/lib/src/build/runner.dart File pkg/polymer/lib/src/build/runner.dart (left): https://codereview.chromium.org/26071003/diff/1/pkg/polymer/lib/src/build/runner.dart#oldcode280 pkg/polymer/lib/src/build/runner.dart:280: futures.add(_copyFile(inpath, ...
7 years, 2 months ago (2013-10-05 04:23:11 UTC) #3
Jennifer Messerly
https://codereview.chromium.org/26071003/diff/1/pkg/polymer/lib/src/build/runner.dart File pkg/polymer/lib/src/build/runner.dart (left): https://codereview.chromium.org/26071003/diff/1/pkg/polymer/lib/src/build/runner.dart#oldcode280 pkg/polymer/lib/src/build/runner.dart:280: futures.add(_copyFile(inpath, outpath)); On 2013/10/05 04:23:12, kevmoo wrote: > Could ...
7 years, 2 months ago (2013-10-05 05:23:26 UTC) #4
Søren Gjesse
https://codereview.chromium.org/26071003/diff/1/pkg/polymer/lib/src/build/runner.dart File pkg/polymer/lib/src/build/runner.dart (left): https://codereview.chromium.org/26071003/diff/1/pkg/polymer/lib/src/build/runner.dart#oldcode280 pkg/polymer/lib/src/build/runner.dart:280: futures.add(_copyFile(inpath, outpath)); On 2013/10/05 05:23:26, John Messerly wrote: > ...
7 years, 2 months ago (2013-10-07 06:40:26 UTC) #5
kevmoo-old
On 2013/10/07 06:40:26, Søren Gjesse wrote: > https://codereview.chromium.org/26071003/diff/1/pkg/polymer/lib/src/build/runner.dart > File pkg/polymer/lib/src/build/runner.dart (left): > > https://codereview.chromium.org/26071003/diff/1/pkg/polymer/lib/src/build/runner.dart#oldcode280 ...
7 years, 2 months ago (2013-10-07 14:37:17 UTC) #6
kevmoo-old
> FYI: this does not fix the issue for me. barback is opening many files ...
7 years, 2 months ago (2013-10-07 15:19:24 UTC) #7
Siggi Cherem (dart-lang)
On 2013/10/07 15:19:24, kevmoo wrote: > > FYI: this does not fix the issue for ...
7 years, 2 months ago (2013-10-07 16:29:18 UTC) #8
Siggi Cherem (dart-lang)
7 years, 2 months ago (2013-10-07 17:40:43 UTC) #9
On 2013/10/07 16:29:18, Siggi Cherem (dart-lang) wrote:
> On 2013/10/07 15:19:24, kevmoo wrote:
> > > FYI: this does not fix the issue for me. barback is opening many files in
> the
> > > background, which I think is causing the problem.
> > > 
> > > I tried adding hooks at the point of file write in polymer build and none
of
> > > them were ever hit -- the crash happens before any polymer code is
executed.
> > 
> > I take that back. The crash happens in _FileAsset.read, which is in barback,
> but
> > it's called via Polymer's runner.
> > 
> > Here's an alt fix. https://codereview.chromium.org/26268002/
> > I've confirmed this addresses the issue.
> 
> I had a feeling that was going to be the case. I think the problem in barback
is
> quite tricky. Currently we are the ones pushing over the limit, but barback
> might hit that limit internally if we had too many files that could be
processed
> in parallel by a transformer.

closing this patch as Kevin submitted the fix also for emitting assets

Powered by Google App Engine
This is Rietveld 408576698