Skip to content

Conversation

lamluongbinh
Copy link

@lamluongbinh lamluongbinh commented May 12, 2025

Fixes #4342

Details:

  • configure idleTimeoutUnit as MILLISECONDS to avoid long client wait
  • Docs: link
  • TimeUnit: link

Copy link

linux-foundation-easycla bot commented May 12, 2025

CLA Signed

The committers listed above are authorized under a signed CLA.

@knative-prow knative-prow bot added area/data-plane size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels May 12, 2025
Copy link

knative-prow bot commented May 12, 2025

Hi @lamluongbinh. Thanks for your PR.

I'm waiting for a knative-extensions member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

Copy link
Contributor

@creydr creydr left a comment

Choose a reason for hiding this comment

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

Thanks a lot @lamluongbinh for this fix.
I only had one comment so far to make the linter happy.

Could you also include
Fixes #4342

In your PR description, so the issue gets linked and closed, when this PR gets merged.

/ok-to-test

@knative-prow knative-prow bot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels May 12, 2025
@lamluongbinh
Copy link
Author

Thanks @creydr for your review. I've already made the fixes you mentioned

@creydr
Copy link
Contributor

creydr commented May 12, 2025

Thanks @creydr for your review. I've already made the fixes you mentioned

Thanks for updating it @lamluongbinh . Can you also check on your CLA (#4367 (comment))?

@lamluongbinh lamluongbinh force-pushed the chore/set-idle-timeout-unit-milliseconds branch from c8edf4b to 5793e05 Compare May 12, 2025 09:37
@matzew
Copy link
Contributor

matzew commented May 12, 2025

/test upgrade-tests

@matzew
Copy link
Contributor

matzew commented May 12, 2025

Shouldn't we make it consistent, everywhere?

E.g. here is also that idle settings:
https://github.com/lamluongbinh/eventing-kafka-broker/blob/chore/set-idle-timeout-unit-milliseconds/data-plane/config/broker/100-config-kafka-broker-data-plane.yaml#L83

Copy link
Contributor

@matzew matzew left a comment

Choose a reason for hiding this comment

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

/lgtm
/approve

@knative-prow knative-prow bot added the lgtm Indicates that a PR is ready to be merged. label May 16, 2025
Copy link

knative-prow bot commented May 16, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: lamluongbinh, matzew

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@knative-prow knative-prow bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label May 16, 2025
Copy link

codecov bot commented May 16, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 29.99%. Comparing base (4f920dd) to head (0f7d42e).
Report is 8 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4367      +/-   ##
==========================================
- Coverage   30.01%   29.99%   -0.03%     
==========================================
  Files         290      290              
  Lines       19328    19351      +23     
==========================================
+ Hits         5801     5804       +3     
- Misses      13073    13094      +21     
+ Partials      454      453       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@matzew
Copy link
Contributor

matzew commented May 16, 2025

@lamluongbinh see the verify task:

Error: Please run ./hack/update-codegen.sh.

@knative-prow knative-prow bot removed the lgtm Indicates that a PR is ready to be merged. label May 19, 2025
Copy link

knative-prow bot commented May 19, 2025

New changes are detected. LGTM label has been removed.

@lamluongbinh
Copy link
Author

Hey @matzew ,

I've run the ./hack/update-codegen.sh script and committed the generated files to the MR. Can you confirm this matches your expectations, or is there anything else you'd like me to adjust?

Thanks!

@creydr
Copy link
Contributor

creydr commented May 19, 2025

/retest-required

@creydr
Copy link
Contributor

creydr commented May 19, 2025

@lamluongbinh your PR still needs the CLA authorization (see #4367 (comment))

@lamluongbinh lamluongbinh force-pushed the chore/set-idle-timeout-unit-milliseconds branch from b0a4224 to 7ab9f27 Compare May 19, 2025 06:42
@matzew
Copy link
Contributor

matzew commented May 21, 2025

/retest-required

1 similar comment
@matzew
Copy link
Contributor

matzew commented May 21, 2025

/retest-required

@matzew
Copy link
Contributor

matzew commented May 21, 2025

/test upgrade-tests

@matzew
Copy link
Contributor

matzew commented May 21, 2025

/test reconciler-tests

@matzew
Copy link
Contributor

matzew commented May 21, 2025

/hold

@lamluongbinh these vendor files should not be there.

@knative-prow knative-prow bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label May 21, 2025
@lamluongbinh lamluongbinh force-pushed the chore/set-idle-timeout-unit-milliseconds branch from 9e7f1dc to 3075c95 Compare May 27, 2025 07:27
@knative-prow-robot knative-prow-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label May 27, 2025
@knative-prow knative-prow bot added size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. and removed size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels May 27, 2025
@matzew
Copy link
Contributor

matzew commented May 27, 2025

Looks like it is now outdated and needs a rebase.

I think that is due to some incorrect merges ....

IMO best approach is:

  • delete your local branch
  • create a new one based out of main (but use the same same name)
  • git cherrypick these:
  • run ./hack/update-codegen.sh
  • git push force the new branch to your remote one

@lamluongbinh lamluongbinh force-pushed the chore/set-idle-timeout-unit-milliseconds branch from 3075c95 to aee119b Compare May 27, 2025 07:37
@knative-prow-robot knative-prow-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label May 27, 2025
@knative-prow knative-prow bot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels May 27, 2025
@lamluongbinh lamluongbinh force-pushed the chore/set-idle-timeout-unit-milliseconds branch from aee119b to 3f4b503 Compare May 27, 2025 07:41
@knative-prow knative-prow bot added size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels May 27, 2025
@lamluongbinh
Copy link
Author

@matzew the vendor files are generated by this

I've just rebase it. Please take a look

@lamluongbinh
Copy link
Author

lamluongbinh commented May 29, 2025

Hi @matzew,

I've just found this: link.

There is a delivery.timeout feature currently in beta, but it isn’t widely documented. DEFAULT_TIMEOUT_MS is set to 600,000L, meaning each request defaults to a 600-second timeout if the trigger doesn't explicitly specify one.

If we set the idleTimeout too short, it might close the connection prematurely—before receiving any response from the client—and override the default timeout if the trigger doesn't specify one.

Do you think we could increase the default idleTimeout to a longer duration, such as 30 minutes, instead of the change I maded - 10,000 ms?

We will also need clearer documentation about the default timeout in our current setup. Additionally, regarding delivery timeout - link. It might be helpful to reference this and include it in our documentation as well.

@knative-prow knative-prow bot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Jun 19, 2025
@lamluongbinh
Copy link
Author

Hi @matzew,

I've just finalized the setup on my end and tested the configuration in my system.

Currently, we've adjusted the idle timeout setting to 30 minutes. By default, Istio sets the idle timeout to 1 hour, but I wanted a more stringent limit while ensuring it doesn't interfere with the default 10-minute timeout for sending messages. The 30-minute setting provides a balance between preserving connection usability and reducing idle time.

I’ve also kept the comment in the configuration to clarify that the timeout value is in seconds by default, to prevent any potential confusion for others reviewing or updating it later.

Let me know if you have any concerns or further suggestions.

@lamluongbinh
Copy link
Author

/retest-required

1 similar comment
@Cali0707
Copy link
Member

/retest-required

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. area/control-plane area/data-plane do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Default idleTimeout config of webclient is set to 10000s?
6 participants