Skip to content

Conversation

@dapplion
Copy link
Collaborator

Issue Addressed

Debugging das branch noted this warn

May 17 06:32:09.911 WARN Ignoring child lookup parent lookup not found, block_root: 0x9472cd41881dd39cd9148d06392c0fb9d3d059602a2056ba9c0641107b29ac3c, service: lookup_sync, service: sync
May 17 06:32:09.913 WARN Ignoring child lookup parent lookup not found, block_root: 0x9472cd41881dd39cd9148d06392c0fb9d3d059602a2056ba9c0641107b29ac3c, service: lookup_sync, service: sync
May 17 06:32:09.914 WARN Ignoring child lookup parent lookup not found, block_root: 0x9472cd41881dd39cd9148d06392c0fb9d3d059602a2056ba9c0641107b29ac3c, service: lookup_sync, service: sync
May 17 06:32:09.914 WARN Ignoring child lookup parent lookup not found, block_root: 0x9472cd41881dd39cd9148d06392c0fb9d3d059602a2056ba9c0641107b29ac3c, service: lookup_sync, service: sync

It happens because of a bug in new_current_lookup. This function declares

    /// Returns true if the lookup is created or already exists

But if the lookup is completed immediately in

        let result = lookup.continue_requests(cx);

This API contract breaks

Proposed Changes

new_current_lookup returns false if continue_requests drops the lookup

Copy link
Member

@jimmygchen jimmygchen left a comment

Choose a reason for hiding this comment

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

LGTM!

@jimmygchen
Copy link
Member

@mergify queue

@mergify
Copy link

mergify bot commented May 17, 2024

queue

✅ The pull request has been merged automatically

The pull request has been merged automatically at 319b4a2

@mergify mergify bot merged commit 319b4a2 into sigp:unstable May 17, 2024
@dapplion dapplion deleted the skip-child-lookup-creation branch May 20, 2024 15:58
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