Skip to content

Fix issue with broker dropping messages with "No TTL Seen"#1452

Merged
knative-prow-robot merged 3 commits into
knative:masterfrom
mikehelmick:issue-1392
Jun 24, 2019
Merged

Fix issue with broker dropping messages with "No TTL Seen"#1452
knative-prow-robot merged 3 commits into
knative:masterfrom
mikehelmick:issue-1392

Conversation

@mikehelmick
Copy link
Copy Markdown
Contributor

Fixes #1392
Fixes #1444

Proposed Changes

Change casing on constant due to the way go http libraries use canonical mime encoding for http headers, this causes issues with using binary encoding for CloudEvents.

Release Note

Fixes issue where the broker may drop messages with a "no TTL" error.

@googlebot googlebot added the cla: yes Indicates the PR's author has signed the CLA. label Jun 22, 2019
@knative-prow-robot knative-prow-robot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Jun 22, 2019
@mikehelmick
Copy link
Copy Markdown
Contributor Author

/assign @evankanderson

@mikehelmick
Copy link
Copy Markdown
Contributor Author

/retest

@mikehelmick
Copy link
Copy Markdown
Contributor Author

/hold

working through integration test failures.

@knative-prow-robot knative-prow-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jun 23, 2019
Copy link
Copy Markdown
Member

@evankanderson evankanderson 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-robot knative-prow-robot added lgtm Indicates that a PR is ready to be merged. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Jun 23, 2019
@chizhg
Copy link
Copy Markdown
Contributor

chizhg commented Jun 24, 2019

/retest

@chizhg
Copy link
Copy Markdown
Contributor

chizhg commented Jun 24, 2019

/test pull-knative-eventing-integration-tests

Comment thread pkg/broker/ttl.go
@knative-prow-robot knative-prow-robot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed lgtm Indicates that a PR is ready to be merged. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Jun 24, 2019
@mikehelmick
Copy link
Copy Markdown
Contributor Author

/hold cancel

I'll also work with @n3wscott on changed to the cloud events SDK to treat extensions as case insensitive.

@knative-prow-robot knative-prow-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jun 24, 2019
@n3wscott
Copy link
Copy Markdown
Contributor

/assign @grantr

Grant is also looking at this.

@grantr
Copy link
Copy Markdown
Contributor

grantr commented Jun 24, 2019

/lgtm

@knative-prow-robot knative-prow-robot added the lgtm Indicates that a PR is ready to be merged. label Jun 24, 2019
@mikehelmick
Copy link
Copy Markdown
Contributor Author

/retest

@grantr
Copy link
Copy Markdown
Contributor

grantr commented Jun 24, 2019

Looks like you need to run hack/update-codegen.sh to fix the build failure.

@knative-prow-robot knative-prow-robot removed the lgtm Indicates that a PR is ready to be merged. label Jun 24, 2019
@adrcunha
Copy link
Copy Markdown
Contributor

/retest

Copy link
Copy Markdown
Contributor

@grantr grantr left a comment

Choose a reason for hiding this comment

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

/lgtm

@knative-prow-robot knative-prow-robot added the lgtm Indicates that a PR is ready to be merged. label Jun 24, 2019
@knative-prow-robot
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: evankanderson, grantr, mikehelmick

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

The pull request process is described here

Details Needs approval from an approver in each of these files:
  • OWNERS [evankanderson,grantr]

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

@knative-prow-robot knative-prow-robot merged commit 7f17177 into knative:master Jun 24, 2019
grantr pushed a commit to grantr/eventing that referenced this pull request Jun 25, 2019
)

* Fix issue with broker dropping messages with "No TTL Seen"

* Treat the broker TTL attribute as case insensitive, in line with how
cloudevents attributes should be handled. See
  cloudevents/spec#321
for context.

* Remove unnecessary test change.
grantr pushed a commit to grantr/eventing that referenced this pull request Jun 25, 2019
* Fix issue with broker dropping messages with "No TTL Seen"

* Treat the broker TTL attribute as case insensitive, in line with how
cloudevents attributes should be handled. See
  cloudevents/spec#321
for context.

* Remove unnecessary test change.
@grantr grantr mentioned this pull request Jun 25, 2019
knative-prow-robot pushed a commit that referenced this pull request Jun 25, 2019
* Fix issue with broker dropping messages with "No TTL Seen"

* Treat the broker TTL attribute as case insensitive, in line with how
cloudevents attributes should be handled. See
  cloudevents/spec#321
for context.

* Remove unnecessary test change.
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. cla: yes Indicates the PR's author has signed the CLA. lgtm Indicates that a PR is ready to be merged. 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.

[BUG] V02TTLAttribute gets changed by http libraries 'No TTL seen, dropping' when firing event manually for broker-trigger example

8 participants