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

[LLT-4202] Make lookup return error in case of failure on forward #1

Conversation

dfetti
Copy link

@dfetti dfetti commented Oct 8, 2023

Make the forward error visible instead of just filling the response buffer with an empty response.

@mathiaspeters
Copy link

Why are the workflow files removed?

crates/server/src/authority/catalog.rs Show resolved Hide resolved
.await;
.await
.map_err(|e| {
debug!("failed to send response: {}", e);

Choose a reason for hiding this comment

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

I think warn! would be better here.

Copy link
Author

Choose a reason for hiding this comment

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

There was a patch added by Gytis that reduced the log levels from trust-dns, probably because of spam in logs. Every warn/error log was changed to debug.

Choose a reason for hiding this comment

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

Is that the commit you are referring to: fe423f8 - it's a pity that we will never know why the change was made ;)

crates/server/src/authority/catalog.rs Outdated Show resolved Hide resolved
Comment on lines +535 to +543
answers: Box::<AuthLookup>::default(),
ns: Box::<AuthLookup>::default(),
soa: Box::<AuthLookup>::default(),
additionals: Box::<AuthLookup>::default(),

Choose a reason for hiding this comment

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

Nice! :)

@dfetti
Copy link
Author

dfetti commented Oct 10, 2023

I wrote the reason for removing the workflow files in the commit description:

"There are clippy warnings due to rust updates and some tests are failing
due to expired certificates. Didn't bothered to fix them. We will update
to the latest version of trust-dns soon."

Make the forward error visible instead of just filling the response
buffer with an empty response.
@dfetti dfetti force-pushed the LLT-4202-make-lookup-return-error-if-forward-fails branch from 1681096 to 2522c02 Compare October 10, 2023 09:52
pub(crate) fn unknown(id: u16) -> Self {
let mut header = Header::new();
header.set_id(id);
header.set_response_code(ResponseCode::Unknown(0));

Choose a reason for hiding this comment

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

@tomaszklak
Copy link

I wrote the reason for removing the workflow files in the commit description:

"There are clippy warnings due to rust updates and some tests are failing due to expired certificates. Didn't bothered to fix them. We will update to the latest version of trust-dns soon."

I think what is not clear is (at least for me) why was the decision made to remove the tests instead of fixing them.

@dfetti dfetti force-pushed the LLT-4202-make-lookup-return-error-if-forward-fails branch from 2522c02 to c69e15c Compare October 17, 2023 06:19
@dfetti dfetti force-pushed the LLT-4202-make-lookup-return-error-if-forward-fails branch 5 times, most recently from eed8f34 to fac712d Compare October 24, 2023 08:17
@dfetti dfetti force-pushed the LLT-4202-make-lookup-return-error-if-forward-fails branch from fac712d to 4bc78b7 Compare October 25, 2023 05:57
@dfetti dfetti closed this Nov 7, 2023
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.

3 participants