Skip to content

fix: close event message chan#38939

Open
wrfly wants to merge 1 commit intomoby:masterfrom
wrfly:patch-1
Open

fix: close event message chan#38939
wrfly wants to merge 1 commit intomoby:masterfrom
wrfly:patch-1

Conversation

@wrfly
Copy link
Contributor

@wrfly wrfly commented Mar 26, 2019

I think you guys forgot to close the message event channel since no one can close it outside due to the receive-only channel type.

@GordonTheTurtle
Copy link

Please sign your commits following these rules:
https://github.com/moby/moby/blob/master/CONTRIBUTING.md#sign-your-work
The easiest way to do this is to amend the last commit:

$ git clone -b "patch-1" [email protected]:wrfly/moby.git somewhere
$ cd somewhere
$ git commit --amend -s --no-edit
$ git push -f

Amending updates the existing PR. You DO NOT need to open a new one.

@GordonTheTurtle GordonTheTurtle added dco/no Automatically set by a bot when one of the commits lacks proper signature status/0-triage labels Mar 26, 2019
@GordonTheTurtle GordonTheTurtle removed the dco/no Automatically set by a bot when one of the commits lacks proper signature label Mar 26, 2019
@thaJeztah
Copy link
Member

17:02:01 --- FAIL: TestEvents (0.00s)
17:02:01     events_test.go:163: event received not expected with action  & id 
17:02:01 2019/03/26 17:02:01 RoundTripper returned a response & error; ignoring response
17:02:01 2019/03/26 17:02:01 RoundTripper returned a response & error; ignoring response
17:02:01 FAIL

@wrfly wrfly force-pushed the patch-1 branch 2 times, most recently from ea671d0 to 41da262 Compare March 27, 2019 03:41
@wrfly
Copy link
Contributor Author

wrfly commented Mar 27, 2019

12:19:11 Running /go/src/github.com/docker/docker/integration/container
12:19:12 INFO: Testing against a local daemon
12:19:12 === RUN   TestCheckpoint
12:19:13 --- FAIL: TestCheckpoint (1.40s)
12:19:13     checkpoint_test.go:40: Error (criu/util.c:816): exited, status=3
12:19:13         Warn  (criu/net.c:2840): Unable to get socket network namespace
12:19:13         Warn  (criu/net.c:2840): Unable to get tun network namespace
12:19:13         Warn  (criu/sk-unix.c:229): unix: Unable to open a socket file: Bad address
12:19:13         Warn  (criu/net.c:2840): Unable to get socket network namespace
12:19:13         Warn  (criu/kerndat.c:881): Can't keep kdat cache on non-tempfs
12:19:13         Looks good.
12:19:13     checkpoint_test.go:51: Start a container
12:19:13     checkpoint_test.go:69: ++ type -P true
12:19:13         ++ type -P ip6tables-restore
12:19:13         + mount --bind /bin/true /sbin/ip6tables-restore
12:19:13         ++ type -P true
12:19:13         ++ type -P ip6tables-save
12:19:13         + mount --bind /bin/true /sbin/ip6tables-save
12:19:13     checkpoint_test.go:81: Do a checkpoint and leave the container running
12:19:13     checkpoint_test.go:24: Exec: [touch /tmp/test-file]
12:19:13     checkpoint_test.go:28: 
12:19:13     checkpoint_test.go:115: Do a checkpoint and stop the container
12:19:13     checkpoint_test.go:117: assertion failed: error is not nil: Error response from daemon: Cannot checkpoint container 43f78e035e72f94c024d640591806641ad7628485dc656c13b01f660228fe98e: cannot checkpoint a stopped container: unknown
12:19:13     checkpoint_test.go:77: ++ type -P ip6tables-restore
12:19:13         + umount -c -i -l /sbin/ip6tables-restore
12:19:13         ++ type -P ip6tables-save
12:19:13         + umount -c -i -l /sbin/ip6tables-save
12:19:13     main_test.go:32: assertion failed: error is not nil: Error response from daemon: Container 43f78e035e72f94c024d640591806641ad7628485dc656c13b01f660228fe98e is not paused: failed to unpause container 43f78e035e72f94c024d640591806641ad7628485dc656c13b01f660228fe98e

Is that matter?

Copy link
Member

Choose a reason for hiding this comment

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

Wouldn't this mean the test could complete without receiving a single of the expected events?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You are right, I'll modify it, thx.

@codecov
Copy link

codecov bot commented Mar 27, 2019

Codecov Report

❗ No coverage uploaded for pull request base (master@da823cf). Click here to learn what that means.
The diff coverage is 100%.

@@            Coverage Diff            @@
##             master   #38939   +/-   ##
=========================================
  Coverage          ?   36.89%           
=========================================
  Files             ?      614           
  Lines             ?    45405           
  Branches          ?        0           
=========================================
  Hits              ?    16753           
  Misses            ?    26360           
  Partials          ?     2292

@wrfly
Copy link
Contributor Author

wrfly commented May 5, 2019

How can I re-test it?

@thaJeztah
Copy link
Member

ping @cpuguy83 ptal

close the receive-only events channel after error happends

Signed-off-by: wrfly <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants