Skip to content
This repository has been archived by the owner on Apr 18, 2024. It is now read-only.

re-find idx in lock #30

Merged
merged 1 commit into from
Feb 17, 2023
Merged

re-find idx in lock #30

merged 1 commit into from
Feb 17, 2023

Conversation

willscott
Copy link
Contributor

@willscott willscott commented Feb 16, 2023

Closes #29

lidel added a commit to ipfs/bifrost-gateway that referenced this pull request Feb 17, 2023
@lidel
Copy link
Contributor

lidel commented Feb 17, 2023

Thanks Will!

Deployed 20d3d61 from this PR in bifrost-gateway 2023-02-17-3e0550b to bifrost-bank1-ny and so far so good.

Let's wait till tomorrow to confirm the panic is truly gone.

@lidel
Copy link
Contributor

lidel commented Feb 17, 2023

@willscott @aarshkshah1992 this PR removes panic, but we see a different problem now:

bifrost-bank1-ny:/data# curl http://127.0.0.1:8080/ipfs/bafybeigdyrzt5sfp7udm7hu76uh7y26nf3efuylqabf3oclgtqy55fbzdi > /dev/null
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  116k  100  116k    0     0  1228k      0 --:--:-- --:--:-- --:--:-- 1231k

runs for a few minutes, but then entire binary dies around ~4k requests:

bifrost-bank1-ny:/data# curl http://127.0.0.1:8041/debug/metrics/prometheus -s | grep caboose_fetch_err
# HELP ipfs_caboose_fetch_errors Errors fetching from Caboose Peers
# TYPE ipfs_caboose_fetch_errors counter
ipfs_caboose_fetch_errors{code="0"} 3563
ipfs_caboose_fetch_errors{code="200"} 369
bifrost-bank1-ny:/data# curl http://127.0.0.1:8080/ipfs/bafybeigdyrzt5sfp7udm7hu76uh7y26nf3efuylqabf3oclgtqy55fbzdi > /dev/null
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
curl: (56) Recv failure: Connection reset by peer

If there is no easy fix, I'd have to revert caboose updates before the EOD and run with the old version.

@aarshkshah1992
Copy link
Contributor

@lidel Sorry, what exactly is happening here ? Wdym the binary dies ? You mean it just freezes and stops serving Bifrost requests ? Can you post the Bifrost logs here ?

Copy link
Contributor

@aarshkshah1992 aarshkshah1992 left a comment

Choose a reason for hiding this comment

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

Good catch.

@lidel
Copy link
Contributor

lidel commented Feb 17, 2023

Let's merge this (panic is gone) and investigate this hang as part of ipfs/bifrost-gateway#41.
Having more than 3 layers of PRs against PRs is getting insane ;)

@lidel lidel merged commit 20e6963 into feat/fix-document-weighted Feb 17, 2023
@lidel lidel deleted the fix/pool-panic branch February 17, 2023 14:33
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants