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

Issue 28733009: Make sure barback's FilePool doesn't take up *all* the available FDs. (Closed)

Created:
7 years, 2 months ago by nweiz
Modified:
7 years, 1 month ago
CC:
reviews_dartlang.org, Bob Nystrom
Visibility:
Public.

Description

Make sure barback's FilePool doesn't take up *all* the available FDs. BUG=13752 R=alanknight@google.com Committed: https://code.google.com/p/dart/source/detail?r=29021

Patch Set 1 #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+104 lines, -84 lines) Patch
M pkg/barback/lib/src/file_pool.dart View 6 chunks +83 lines, -84 lines 6 comments Download
M pkg/barback/lib/src/utils.dart View 2 chunks +21 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
nweiz
7 years, 2 months ago (2013-10-19 01:03:59 UTC) #1
Alan Knight
lgtm https://codereview.chromium.org/28733009/diff/1/pkg/barback/lib/src/file_pool.dart File pkg/barback/lib/src/file_pool.dart (right): https://codereview.chromium.org/28733009/diff/1/pkg/barback/lib/src/file_pool.dart#newcode87 pkg/barback/lib/src/file_pool.dart:87: if (_timer != null) { It seems a ...
7 years, 2 months ago (2013-10-21 18:41:33 UTC) #2
nweiz
Committed patchset #1 manually as r29021 (presubmit successful).
7 years, 2 months ago (2013-10-22 18:37:02 UTC) #3
nweiz
https://codereview.chromium.org/28733009/diff/1/pkg/barback/lib/src/file_pool.dart File pkg/barback/lib/src/file_pool.dart (right): https://codereview.chromium.org/28733009/diff/1/pkg/barback/lib/src/file_pool.dart#newcode87 pkg/barback/lib/src/file_pool.dart:87: if (_timer != null) { On 2013/10/21 18:41:33, Alan ...
7 years, 2 months ago (2013-10-22 18:37:28 UTC) #4
Bob Nystrom
Couple of nits, but LGTM. https://codereview.chromium.org/28733009/diff/1/pkg/barback/lib/src/file_pool.dart File pkg/barback/lib/src/file_pool.dart (right): https://codereview.chromium.org/28733009/diff/1/pkg/barback/lib/src/file_pool.dart#newcode101 pkg/barback/lib/src/file_pool.dart:101: void _heartbeat() { How ...
7 years, 1 month ago (2013-10-26 00:13:34 UTC) #5
nweiz
7 years, 1 month ago (2013-10-28 23:56:43 UTC) #6
Message was sent while issue was closed.
I'm compiling all of these changes into a single revision CL, by the way.

https://codereview.chromium.org/28733009/diff/1/pkg/barback/lib/src/file_pool...
File pkg/barback/lib/src/file_pool.dart (right):

https://codereview.chromium.org/28733009/diff/1/pkg/barback/lib/src/file_pool...
pkg/barback/lib/src/file_pool.dart:101: void _heartbeat() {
On 2013/10/26 00:13:34, Bob Nystrom wrote:
> How about "_restartTimer"? It wasn't obvious to me that "heartbeat" meant
"reset
> the timer" and not just some other kind of keep-alive indication.

Done.

https://codereview.chromium.org/28733009/diff/1/pkg/barback/lib/src/file_pool...
pkg/barback/lib/src/file_pool.dart:168: "use for too long.", new
Trace.current().vmTrace);
On 2013/10/26 00:13:34, Bob Nystrom wrote:
> This makes it sound like the error is not related to pending reads. Maybe,
> "Failed to open file: too many files were still open."

This is less applicable now, since the error comes from the generic Pool class.

Powered by Google App Engine
This is Rietveld 408576698