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

Add test for delete + reindex + block #8

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft

Conversation

arj03
Copy link
Member

@arj03 arj03 commented Aug 23, 2022

@staltz I tried different ways of reproducing the bug but can't seem to make it trigger. This PR the latest version I tried. I also tried restarting some of the other nodes. Alice does the correct thing if someone tries to tell it about new stuff on a blocked feed (notes), it sends a -1 back. And Alice is not calling request on reindexing, as you tested. You can see I added ebt: logging: true. Maybe that will tell us what is going on. I know that patchwork is running a very old version of ebt. I'm not sure if there if that could it, there are some checks in EBT (not ssb-ebt) to prevent the worst kind of errors. Anyway logs should shed some light on this :-)

Copy link
Member

@staltz staltz left a comment

Choose a reason for hiding this comment

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

Yeah, this is a good test to have, with all the deleteFeed and compact and so forth. I put a few cosmetic suggestions.

In Manyverse, I might try to use an ssb-fixtures dataset to see if that helps with a shorter dev cycle. It doesn't matter if the peer can actually replicate anything or not, we just need to monitor ebt.request calls for blocked peers.

test/integration/reindex-blocked.js Outdated Show resolved Hide resolved
test/integration/reindex-blocked.js Outdated Show resolved Hide resolved
test/integration/reindex-blocked.js Outdated Show resolved Hide resolved
test/integration/reindex-blocked.js Outdated Show resolved Hide resolved
@arj03
Copy link
Member Author

arj03 commented Aug 23, 2022

I left this as a draft mostly to share how I tested, not sure if we need to commit this, thanks for review in any case. Good to double check that the tests are correct.

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.

2 participants