Re: ChannelParticipation integration tests fail with "too many open files" on OSX 10.15


Brett T Logan <development.brett@...>
 

Hey Jay,

Will and I actually debugged this same problem when he was writing the Channel Participation API tests. The issue was, on Mac the Open File Limit was pretty low, and there is no simple way to change it. I can't for the life of me remember what we changed to prevent hitting it in the tests, and unfortunately that conversation is lost to history in Slack once I left IBM. I'll poke around and see if I can remember what the root cause was or what we did to mitigate it, there might be a merged PR out there somewhere where Will posted the cause.

Brett


On Wed, Feb 17, 2021 at 10:31 AM Yacov <yacovm@...> wrote:
This is interesting.

It can be either a socket leak or a file leak.

You can isolate your process id (PID) and then invoke lsof -p on it to see what files it is holding.





From:        "Jay Guo" <guojiannan1101@...>
To:        hyperledger-fabric <hyperledger-fabric@...>
Date:        02/17/2021 05:23 PM
Subject:        [EXTERNAL] [Hyperledger Fabric] ChannelParticipation integration tests fail with "too many open files" on OSX 10.15
Sent by:        fabric@...




Hi folks, I'm getting this bizarre error while trying to run...                                                                                                                                                                                      
This Message Is From an External Sender
This message came from outside your organization.




Hi folks,

I'm getting this bizarre error while trying to run integration tests of `ChannelPartitipation`. I'm on OSX 10.15 and wonder if anyone has ever encountered the same issue. I don't think my open files are close to the limit of the system.

Here's an example of failure log of one test case: https://pastebin.com/2EYDgHVY

- Jay



Join fabric@lists.hyperledger.org to automatically receive all group messages.