[kubernetes/kubernetes] TestClientGoCustomResourceExample flakes (#49956)

0 views
Skip to first unread message

Jordan Liggitt

unread,
Aug 1, 2017, 11:10:45 AM8/1/17
to kubernetes/kubernetes, k8s-mirror-api-machinery-test-failures, Team mention

Jordan Liggitt

unread,
Aug 1, 2017, 3:25:39 PM8/1/17
to kubernetes/kubernetes, k8s-mirror-api-machinery-test-failures, Team mention

these errors started occurring right after 74b9ba3 was merged

cc @deads2k @wojtek-t for oddities with watch, custom resources, and the watch cache

Wojciech Tyczynski

unread,
Aug 1, 2017, 3:31:22 PM8/1/17
to kubernetes/kubernetes, k8s-mirror-api-machinery-test-failures, Team mention

Clayton Coleman

unread,
Aug 1, 2017, 4:28:12 PM8/1/17
to kubernetes/kubernetes, k8s-mirror-api-machinery-test-failures, Team mention

Could this be interactions with the aggregator cache?

Clayton Coleman

unread,
Aug 1, 2017, 4:30:11 PM8/1/17
to kubernetes/kubernetes, k8s-mirror-api-machinery-test-failures, Team mention
E0728 21:35:49.536152   31354 customresource_discovery_controller.go:155] timed out waiting for caches to sync

Is that bad?

Jordan Liggitt

unread,
Aug 1, 2017, 4:37:58 PM8/1/17
to kubernetes/kubernetes, k8s-mirror-api-machinery-test-failures, Team mention

Could this be interactions with the aggregator cache?

no, TestClientGoCustomResourceExample tests a CRD server all alone, no aggregator involved

Jordan Liggitt

unread,
Aug 1, 2017, 5:30:53 PM8/1/17
to kubernetes/kubernetes, k8s-mirror-api-machinery-test-failures, Team mention

with lots of tracing added, I can reproduce:

controller lister/watcher:

  1. lists before watch cache is ready, goes to etcd, gets empty list at resourceVersion=386
  2. watches from resourceVersion=386 before watch is ready

client creates an object with resourceVersion 387

cacher lister/watcher:

  1. lists, gets list with a single item at resourceVersion=387
  2. watches etcd from resourceVersion=387

processEvent is never called with the 387 watch event. the next event it sees is the delete event at 388 when the test times out and is tearing itself down.

Kubernetes Submit Queue

unread,
Aug 2, 2017, 8:16:58 AM8/2/17
to kubernetes/kubernetes, k8s-mirror-api-machinery-test-failures, Team mention

Closed #49956 via #49992.

Reply all
Reply to author
Forward
0 new messages