Skip to content

Commit

Permalink
Pipeline is failing because it’s hanging somewhere
Browse files Browse the repository at this point in the history
cannot re-create the problem locally, even when setting GOMAXPROCS to 1

Signed-off-by: quobix <dave@quobix.com>
  • Loading branch information
daveshanley committed Oct 24, 2023
1 parent e26897d commit b82b46e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index/rolodex_remote_loader.go
Original file line number Diff line number Diff line change
Expand Up @@ -260,9 +260,9 @@ func (i *RemoteFS) Open(remoteURL string) (fs.File, error) {
// if we're processing, we need to block and wait for the file to be processed
// try path first
if _, ok := i.ProcessingFiles.Load(remoteParsedURL.Path); ok {
// we can't block if we only have a single CPU, as we'll deadlock, only when we're running in parallel
// we can't block if we only have a couple of CPUs, as we'll deadlock / run super slow, only when we're running in parallel
// can we block threads.
if runtime.GOMAXPROCS(-1) > 1 {
if runtime.GOMAXPROCS(-1) > 2 {
i.logger.Debug("waiting for existing fetch to complete", "file", remoteURL, "remoteURL", remoteParsedURL.String())
for {
if wf, ko := i.Files.Load(remoteParsedURL.Path); ko {
Expand Down

0 comments on commit b82b46e

Please sign in to comment.