Skip to content

Conversation

johnsaigle
Copy link
Contributor

  • Add commands to change the status of delayed and blackholed messages
    in the Notary
  • Change Notary commands to use MessageID consistently instead of a
    combination of pointers to MessagePublication and VAAHash

This PR is based on #4315 and will stay in draft until that PR is merged.

- Add commands to change the status of delayed and blackholed messages
  in the Notary
- Change Notary commands to use MessageID consistently instead of a
  combination of pointers to MessagePublication and VAAHash
Copy link
Collaborator

@djb15 djb15 left a comment

Choose a reason for hiding this comment

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

Just reviewed the latest commit

}

return &nodev1.NotaryBlackholeDelayedMessageResponse{
Response: "Blackholed message",
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can you add in the vaaId string into the responses?

}

// RemoveBlackholedMsg removes a message from the blackholed list and deletes it from the database.
func (n *Notary) RemoveBlackholedMsg(msgID string) error {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should we add such messages that are removed from the blackholed list to the pending queue with 0 release time to ensure they are processed? I'm going to guess a reobservation would most likely lead to the message being blackholed again

string response = 1;
}

message NotaryResetReleaseTimerRequest {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Missing the admin command for this message


// When a message is blackholed, it should be removed from the delayed list and database.
err := n.removeDelayed(msg)
err := n.removeDelayed(msg.MessageID())
Copy link
Collaborator

Choose a reason for hiding this comment

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

Probably applies to the notary PR rather than this one, but should we attempt to remove from the delayed list + database before adding to the blackholed list? Just in case the removal fails we don't want the message in both places

Copy link

@bemic bemic left a comment

Choose a reason for hiding this comment

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

I have reviewed this PR and have no comments. 👍

@johnsaigle
Copy link
Contributor Author

Now that the Notary has been merged, this is in my court to rebase and fix-up. In doing so I'll go back and respond to the comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants