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

Issue 27242002: Use file pool to handle running out of file descriptors. (Closed)

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

Description

Use file pool to handle running out of file descriptors. BUG=https://code.google.com/p/dart/issues/detail?id=13752 Committed: https://code.google.com/p/dart/source/detail?r=28702

Patch Set 1 #

Patch Set 2 : Rename test. #

Total comments: 8

Patch Set 3 : Rebase. #

Total comments: 4

Patch Set 4 : Lower number of files a bit. #

Patch Set 5 : Revise to work with readAsString() too. (Thanks Kevin!) #

Total comments: 30

Patch Set 6 : Revise. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+247 lines, -2 lines) Patch
M pkg/barback/lib/src/asset.dart View 1 2 3 4 2 chunks +7 lines, -2 lines 0 comments Download
A pkg/barback/lib/src/file_pool.dart View 1 2 3 4 5 1 chunk +185 lines, -0 lines 0 comments Download
A pkg/barback/test/too_many_open_files_test.dart View 1 2 3 4 5 1 chunk +55 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
Bob Nystrom
I think this alleviates the issue with running out of file descriptors when you're reading ...
7 years, 2 months ago (2013-10-14 20:52:31 UTC) #1
Jennifer Messerly
drive by comments... https://codereview.chromium.org/27242002/diff/3001/pkg/barback/lib/src/file_pool.dart File pkg/barback/lib/src/file_pool.dart (right): https://codereview.chromium.org/27242002/diff/3001/pkg/barback/lib/src/file_pool.dart#newcode5 pkg/barback/lib/src/file_pool.dart:5: library barback.file_pool; barback.src.file_pool? Or did you ...
7 years, 2 months ago (2013-10-14 21:00:08 UTC) #2
Siggi Cherem (dart-lang)
https://codereview.chromium.org/27242002/diff/3001/pkg/barback/lib/src/file_pool.dart File pkg/barback/lib/src/file_pool.dart (right): https://codereview.chromium.org/27242002/diff/3001/pkg/barback/lib/src/file_pool.dart#newcode5 pkg/barback/lib/src/file_pool.dart:5: library barback.file_pool; On 2013/10/14 21:00:08, John Messerly wrote: > ...
7 years, 2 months ago (2013-10-14 21:14:28 UTC) #3
Bob Nystrom
https://codereview.chromium.org/27242002/diff/3001/pkg/barback/lib/src/file_pool.dart File pkg/barback/lib/src/file_pool.dart (right): https://codereview.chromium.org/27242002/diff/3001/pkg/barback/lib/src/file_pool.dart#newcode5 pkg/barback/lib/src/file_pool.dart:5: library barback.file_pool; On 2013/10/14 21:00:08, John Messerly wrote: > ...
7 years, 2 months ago (2013-10-14 21:26:13 UTC) #4
Jennifer Messerly
https://codereview.chromium.org/27242002/diff/3001/pkg/barback/lib/src/file_pool.dart File pkg/barback/lib/src/file_pool.dart (right): https://codereview.chromium.org/27242002/diff/3001/pkg/barback/lib/src/file_pool.dart#newcode5 pkg/barback/lib/src/file_pool.dart:5: library barback.file_pool; trivial detail but: regarding library name -- ...
7 years, 2 months ago (2013-10-14 21:30:41 UTC) #5
Bob Nystrom
https://codereview.chromium.org/27242002/diff/3001/pkg/barback/lib/src/file_pool.dart File pkg/barback/lib/src/file_pool.dart (right): https://codereview.chromium.org/27242002/diff/3001/pkg/barback/lib/src/file_pool.dart#newcode5 pkg/barback/lib/src/file_pool.dart:5: library barback.file_pool; On 2013/10/14 21:30:42, John Messerly wrote: > ...
7 years, 2 months ago (2013-10-14 22:06:58 UTC) #6
Anders Johnsen
DBC https://codereview.chromium.org/27242002/diff/10001/pkg/barback/lib/src/file_pool.dart File pkg/barback/lib/src/file_pool.dart (right): https://codereview.chromium.org/27242002/diff/10001/pkg/barback/lib/src/file_pool.dart#newcode110 pkg/barback/lib/src/file_pool.dart:110: if (exception is! FileException || exception.osError.errorCode != 24) ...
7 years, 2 months ago (2013-10-15 10:48:26 UTC) #7
Bob Nystrom
https://codereview.chromium.org/27242002/diff/10001/pkg/barback/lib/src/file_pool.dart File pkg/barback/lib/src/file_pool.dart (right): https://codereview.chromium.org/27242002/diff/10001/pkg/barback/lib/src/file_pool.dart#newcode110 pkg/barback/lib/src/file_pool.dart:110: if (exception is! FileException || exception.osError.errorCode != 24) { ...
7 years, 2 months ago (2013-10-15 17:57:14 UTC) #8
kevmoo-old
Almost. For my original issue w/ Polymer, we also need to intercept calls to readAsString ...
7 years, 2 months ago (2013-10-15 20:46:10 UTC) #9
Bob Nystrom
Good call! I've updated the patch with your change (more or less) and added a ...
7 years, 2 months ago (2013-10-15 22:47:15 UTC) #10
nweiz
https://codereview.chromium.org/27242002/diff/22001/pkg/barback/lib/src/asset.dart File pkg/barback/lib/src/asset.dart (right): https://codereview.chromium.org/27242002/diff/22001/pkg/barback/lib/src/asset.dart#newcode107 pkg/barback/lib/src/asset.dart:107: final File _file; I don't understand why we're storing ...
7 years, 2 months ago (2013-10-16 00:16:00 UTC) #11
Bob Nystrom
Thanks! https://codereview.chromium.org/27242002/diff/22001/pkg/barback/lib/src/asset.dart File pkg/barback/lib/src/asset.dart (right): https://codereview.chromium.org/27242002/diff/22001/pkg/barback/lib/src/asset.dart#newcode107 pkg/barback/lib/src/asset.dart:107: final File _file; On 2013/10/16 00:16:01, nweiz wrote: ...
7 years, 2 months ago (2013-10-16 00:51:46 UTC) #12
Bob Nystrom
7 years, 2 months ago (2013-10-16 00:59:57 UTC) #13
Message was sent while issue was closed.
Committed patchset #6 manually as r28702 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698