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

dispatcher should be readonly #4280

Merged
merged 1 commit into from
Oct 12, 2020

Conversation

vaikas
Copy link
Contributor

@vaikas vaikas commented Oct 12, 2020

Addresses #3686

Proposed Changes

  • Make the InMemoryChannel dispatcher reconciler read only.
  • Our Dispatcher looks at the IMC spec to construct the dispatching logic, but there's no reason it should ever update status.

Release Note

- 🐛 Fix bug
Dispatcher was incorrectly behaving like a normal reconciler instead of skipping status updates. I wonder if this was causing grief battling the normal reconciler.

Docs

@google-cla google-cla bot added the cla: yes Indicates the PR's author has signed the CLA. label Oct 12, 2020
@knative-prow-robot knative-prow-robot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Oct 12, 2020
@knative-prow-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: vaikas

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-robot knative-prow-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Oct 12, 2020
@knative-metrics-robot
Copy link

The following is the coverage report on the affected files.
Say /test pull-knative-eventing-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/reconciler/inmemorychannel/dispatcher/controller.go 83.3% 83.9% 0.5

@slinkydeveloper
Copy link
Contributor

/lgtm

@knative-prow-robot knative-prow-robot added the lgtm Indicates that a PR is ready to be merged. label Oct 12, 2020
@vaikas
Copy link
Contributor Author

vaikas commented Oct 12, 2020

=== CONT  TestChannelTracingWithReply/Channel-messaging.knative.dev/v1
    tracing_test_helper.go:74: Timeout waiting for at least 1 matches.
        Error: FAIL MATCHING: saw 0/1 matching events.
        Recent events: 
        0 events seen, last 0 events:
        Match errors: 
        
        
        knative.dev/eventing/test/lib/recordevents.(*EventInfoStore).AssertAtLeast
        	/home/prow/go/src/knative.dev/eventing/test/lib/recordevents/event_info_store.go:183
        knative.dev/eventing/test/conformance/helpers.tracingTest
        	/home/prow/go/src/knative.dev/eventing/test/conformance/helpers/tracing_test_helper.go:74
        knative.dev/eventing/test/conformance/helpers.ChannelTracingTestHelperWithChannelTestRunner.func1
        	/home/prow/go/src/knative.dev/eventing/test/conformance/helpers/channel_tracing_test_helper.go:46
        knative.dev/eventing/test/lib.(*ComponentsTestRunner).RunTests.func1
        	/home/prow/go/src/knative.dev/eventing/test/lib/test_runner.go:75
        testing.tRunner
        	/root/.gvm/gos/go1.14.6/src/testing/testing.go:1039
        runtime.goexit
        	/root/.gvm/gos/go1.14.6/src/runtime/asm_amd64.s:1373
    k8s_events.go:62: EventListener stopped

/test pull-knative-eventing-conformance-tests

@knative-prow-robot knative-prow-robot merged commit a1cfb4e into knative:master Oct 12, 2020
@grantr
Copy link
Contributor

grantr commented Oct 12, 2020

Nice find @vaikas! I wonder if this could affect other dispatchers that use controllers?

@lionelvillard
Copy link
Member

PingSource was affected and fixed. Kafka Channel looks like it hasn't been updated (@matzew), as well as eventing-github mt source

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/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants