Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update file descriptor limits for macOS #892

Merged
merged 7 commits into from
Dec 3, 2019
Merged

Update file descriptor limits for macOS #892

merged 7 commits into from
Dec 3, 2019

Conversation

prd-fox
Copy link
Contributor

@prd-fox prd-fox commented Nov 25, 2019

This PR is cherry-picked from:
ethereum/go-ethereum#19035
ethereum/go-ethereum#19068
ethereum/go-ethereum#19141
ethereum/go-ethereum#19166 (only relevant files)

This introduces proper file handle limits for darwin based OSes (macOS/OSX), and a few other test fixes.

This fixes the main complaint when building with newer versions of Golang, as Quorum currently only supports up to version 1.11.x.

As far as I can tell, there are no other blockers for 1.12, although someone feel free to correct me :)

Fixes #889

holiman and others added 6 commits November 25, 2019 10:39
* common/fdlimit: cap on MacOS file limits, fixes #18994

* common/fdlimit: fix Maximum-check to respect OPEN_MAX

* common/fdlimit: return error if OPEN_MAX is exceeded in Raise()

* common/fdlimit: goimports

* common/fdlimit: check value after setting fdlimit

* common/fdlimit: make comment a bit more descriptive

* cmd/utils: make fdlimit happy path a bit cleaner
…t64 (#19141)

cast limit.Cur (int64) to uint64, fix test and compilation error
@jbhurat jbhurat self-requested a review November 25, 2019 19:01
Copy link
Contributor

@jbhurat jbhurat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The changes look good. I believe we should also update Dockerfile and travis to use go 1.13

@prd-fox
Copy link
Contributor Author

prd-fox commented Nov 26, 2019

@jbhurat I agree, although I would prefer to make that a follow up PR to keep the scopes small.

@jbhurat jbhurat closed this Nov 26, 2019
@jbhurat jbhurat reopened this Nov 26, 2019
Copy link
Contributor

@jbhurat jbhurat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jbhurat I agree, although I would prefer to make that a follow up PR to keep the scopes small.

Sounds good. LGTM

@jpmsam jpmsam merged commit 6d25447 into Consensys:master Dec 3, 2019
@prd-fox prd-fox deleted the fdlimit-darwin branch December 3, 2019 17:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

go 1.13 on macOS gives file descriptor problem
7 participants