Skip to content

Skip metadata processing after sending local reply#16154

Merged
yanavlasov merged 3 commits intoenvoyproxy:mainfrom
GinYM:early-stop
May 21, 2021
Merged

Skip metadata processing after sending local reply#16154
yanavlasov merged 3 commits intoenvoyproxy:mainfrom
GinYM:early-stop

Conversation

@GinYM
Copy link
Copy Markdown
Contributor

@GinYM GinYM commented Apr 23, 2021

Signed-off-by: Yiming Jin jinyiming1996@gmail.com

Commit Message: Skip metadata processing after sending local reply
Fixes #15654

@repokitteh-read-only
Copy link
Copy Markdown

Hi @GinYM, welcome and thank you for your contribution.

We will try to review your Pull Request as quickly as possible.

In the meantime, please take a look at the contribution guidelines if you have not done so already.

🐱

Caused by: #16154 was opened by GinYM.

see: more, trace.

@GinYM GinYM marked this pull request as ready for review April 25, 2021 05:12
Copy link
Copy Markdown
Contributor

@yanavlasov yanavlasov left a comment

Choose a reason for hiding this comment

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

Can you add unit and also integration test if possible for this new case, please?

@yanavlasov
Copy link
Copy Markdown
Contributor

/wait

@yanavlasov yanavlasov self-assigned this Apr 27, 2021
@GinYM
Copy link
Copy Markdown
Contributor Author

GinYM commented Apr 28, 2021

Can you add unit and also integration test if possible for this new case, please?

Sure, will do that.

@GinYM GinYM force-pushed the early-stop branch 2 times, most recently from b5085b1 to 9846ad2 Compare May 4, 2021 06:55
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.

I think this test is the same as the DownstreamProtocolIntegrationTest.ContinueAfterLocalReply and it does not test the change you have made. To test you change the decodeHeaders() of your test filer should return StopAll and then the decodeMetadata() should just have ASSERT(false); in it. I think the exception should work too, but it would be harder to diagnose than ASSERT.
And the test should just test for response from local reply. If it hits the ASSERT in the decodeMetadata then it would fail.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Thanks for review. Your are right, I have added StopIteration in decoderHeaders and removed the EXPECT_ENVOY_BUG. Aslo replace throw with assert.

@yanavlasov
Copy link
Copy Markdown
Contributor

/wait

@GinYM
Copy link
Copy Markdown
Contributor Author

GinYM commented May 9, 2021

/retest

@repokitteh-read-only
Copy link
Copy Markdown

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

🐱

Caused by: a #16154 (comment) was created by @GinYM.

see: more, trace.

yanavlasov
yanavlasov previously approved these changes May 14, 2021
@yanavlasov
Copy link
Copy Markdown
Contributor

LGTM, you will need to resolve merge conflict before I can merge.

@yanavlasov
Copy link
Copy Markdown
Contributor

/wait

GinYM added 3 commits May 15, 2021 12:26
Signed-off-by: Yiming Jin <jinyiming1996@gmail.com>
…ply.

Signed-off-by: Yiming Jin <jinyiming1996@gmail.com>
Signed-off-by: Yiming Jin <jinyiming1996@gmail.com>
@GinYM
Copy link
Copy Markdown
Contributor Author

GinYM commented May 15, 2021

LGTM, you will need to resolve merge conflict before I can merge.

Done.

@GinYM
Copy link
Copy Markdown
Contributor Author

GinYM commented May 15, 2021

/retest

@repokitteh-read-only
Copy link
Copy Markdown

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

🐱

Caused by: a #16154 (comment) was created by @GinYM.

see: more, trace.

@GinYM
Copy link
Copy Markdown
Contributor Author

GinYM commented May 16, 2021

/retest

@repokitteh-read-only
Copy link
Copy Markdown

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

🐱

Caused by: a #16154 (comment) was created by @GinYM.

see: more, trace.

@antoniovicente antoniovicente removed their assignment May 18, 2021
@yanavlasov yanavlasov merged commit 5c28e95 into envoyproxy:main May 21, 2021
leyao-daily pushed a commit to leyao-daily/envoy that referenced this pull request Sep 30, 2021
Signed-off-by: Yiming Jin <jinyiming1996@gmail.com>
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.

Skip unnecssary work after sending a local reply.

3 participants