Skip to content

Added default connect_timeout in cluster config - #16453

Merged
phlax merged 8 commits into
envoyproxy:mainfrom
mk46:comment_required
May 20, 2021
Merged

phlax merged 8 commits into
envoyproxy:mainfrom
mk46:comment_required

Conversation

@mk46

@mk46 mk46 commented May 12, 2021 •

Copy link
Copy Markdown
Contributor

Signed-off-by: Manish Kumar [email protected]

Added default value of 5s for connect_timeout in the cluster config

Fixes #16439

Fixes #16583

@repokitteh-read-only

Copy link
Copy Markdown

CC @envoyproxy/api-shepherds: Your approval is needed for changes made to api/envoy/.
envoyproxy/api-shepherds assignee is @lizan
CC @envoyproxy/api-watchers: FYI only for changes made to api/envoy/.

🐱

Caused by: #16453 was opened by mk46.

see: more, trace.

@phlax

phlax commented May 12, 2021

Copy link
Copy Markdown
Member

@mk46 looks good, but i would like to check that it really is required

afaict from quick grep all of the config has this setting - so it seems like it is required as @daixiang0 has found - i would like to confirm this 100%

the other thing im wondering is if it isnt marked required already in the api - is the problem with the (api) docs or should it have some default in the actual code

cc @htuch

Signed-off-by: Manish Kumar <[email protected]>
@phlax

phlax commented May 12, 2021

Copy link
Copy Markdown
Member

@mk46 not sure why exactly - but looks like CI doesnt like this change

@mk46

mk46 commented May 12, 2021

Copy link
Copy Markdown
Contributor Author

I had fixed the CI error in CdsApiImplTest but not sure about ExampleConfigsTest.

@phlax

phlax commented May 12, 2021

Copy link
Copy Markdown
Member

not 100% sure but looking here https://dev.azure.com/cncf/envoy/_build/results?buildId=75433&view=logs&j=8c169225-0ae8-53bd-947f-07cb81846cb5&t=6b0ace90-28b2-51d9-2951-b1fd35e67dec&l=21656

...it looks to me like making this required is also enforcing for xDS (eds) and not just bootstrap config - afaict whatever the situation with bootstrap it looks as though its not currently required for non-boostrap config of clusters

@phlax phlax self-assigned this May 12, 2021
Manish Kumar added 3 commits May 13, 2021 00:22
Manish Kumar
fix
Signed-off-by: Manish Kumar <[email protected]>
Manish Kumar
fix
Signed-off-by: Manish Kumar <[email protected]>
@mk46 mk46 changed the title Fixed missing "required" in cluster config for connect_timeout Added default connect_timeout in cluster config May 12, 2021
@mk46

mk46 commented May 12, 2021

Copy link
Copy Markdown
Contributor Author

@phlax @htuch Please take a look.

@lizan

lizan commented May 12, 2021

Copy link
Copy Markdown
Member

Can this be tested somehow?

@mk46

mk46 commented May 12, 2021

Copy link
Copy Markdown
Contributor Author

Hi @lizan, I have added a unit test for checking the default value. Please take a look.

@mk46

mk46 commented May 13, 2021

Copy link
Copy Markdown
Contributor Author

/retest

@repokitteh-read-only

Copy link
Copy Markdown

Retrying Azure Pipelines:
Retried failed jobs in: envoy-presubmit

🐱

Caused by: a #16453 (comment) was created by @mk46.

see: more, trace.

@mk46

mk46 commented May 13, 2021

Copy link
Copy Markdown
Contributor Author

I am not sure why GCC is failing, which is not related to current changes.

@phlax

phlax commented May 13, 2021

Copy link
Copy Markdown
Member

I am not sure why GCC is failing, which is not related to current changes.

its a problem on main - its being worked on here #16484

@mk46

mk46 commented May 14, 2021

Copy link
Copy Markdown
Contributor Author

/retest

@repokitteh-read-only

Copy link
Copy Markdown

Retrying Azure Pipelines:
Retried failed jobs in: envoy-presubmit

🐱

Caused by: a #16453 (comment) was created by @mk46.

see: more, trace.

@htuch htuch left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

wrowe
wrowe previously requested changes May 19, 2021

@wrowe wrowe left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

htuch
htuch previously approved these changes May 19, 2021
@phlax

phlax commented May 20, 2021

Copy link
Copy Markdown
Member

@phlax phlax left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

lgtm - thanks @mk46

you might need to kick ci as it seems stuck

@phlax
phlax dismissed wrowe’s stale review May 20, 2021 13:24

requested changes have been applied

@phlax
phlax merged commit 5218436 into envoyproxy:main May 20, 2021
leyao-daily pushed a commit to leyao-daily/envoy that referenced this pull request Sep 30, 2021
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.

proto validation: Cluster message should require "connect_timeout" field be set Required field not comment in docs

5 participants