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

Quickfix: Ensure start epoch of LookupInEpochRequest and MonitoringRequest is in PAD #108

Closed
wants to merge 3 commits into from

Conversation

masomel
Copy link
Member

@masomel masomel commented Oct 23, 2016

Otherwise directory.LookupInEpoch() fails with ErrorDirectory, though a start epoch that is > the latest epoch indicates a malformed client message.

@masomel masomel added this to the 0.1.0 milestone Oct 23, 2016
@masomel masomel self-assigned this Oct 23, 2016
@masomel masomel changed the title Quickfix: Ensure start epoch of LookupInEpoch and Monitoring is in PAD Quickfix: Ensure start epoch of LookupInEpochRequest and MonitoringRequest is in PAD Oct 23, 2016
…n PAD

Otherwise directory.LookupInEpoch() fails with ErrorDirectory, though a start epoch that is > the latest epoch indicates a malformed client message.
@arlolra
Copy link
Member

arlolra commented Oct 23, 2016

Wouldn't hurt to add a test.

}
_, err := d.HandleOps(req)
if err != ErrorMalformedClientMessage {
t.Fatal("Expect error", ErrorMalformedClientMessage, "got", err)
}

// Send an invalid MonitoringRequest (startEpoch < EndEpoch)
Copy link
Member

Choose a reason for hiding this comment

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

(StartEpoch > EndEpoch)

@vqhuy
Copy link
Member

vqhuy commented Oct 25, 2016

LGTM.

@arlolra
Copy link
Member

arlolra commented Oct 25, 2016

LGTM, too.

@masomel masomel closed this in 46a16c4 Oct 25, 2016
@masomel masomel deleted the handleops-quickfix branch October 25, 2016 18:21
masomel added a commit that referenced this pull request Oct 25, 2016
- Otherwise directory.LookupInEpoch() fails with ErrorDirectory, though a start epoch that is > the latest epoch indicates a malformed client message.
- Closes #108
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants