Skip to content

Race in "docker logs --follow" leads to hang in TestLogsFollowSlowStdoutConsumer #16462

@michael-holzheu

Description

@michael-holzheu

The "TestLogsFollowSlowStdoutConsumer" test sometimes hangs on s390x.
Also on x86 systems we could reproduce the hang by changing the test
variables as follows:

- out, _ := dockerCmd(c, "run",...`usleep 200000;yes X | head -c 200000`)
+ out, _ := dockerCmd(c, "run",...`usleep 10000;yes X | head -c 10000`)

Version information:

$ docker info
Containers: 26
Images: 1
Storage Driver: overlay
 Backing Filesystem: extfs
Execution Driver: native-0.2
Logging Driver: json-file
Kernel Version: 4.1.0-02210-gf72a620
Operating System: Red Hat Enterprise Linux Server 7.1 (Maipo)
CPUs: 2
Total Memory: 1.821 GiB
Name: s3545002
$ docker version
 Client:
 Version:      1.8.1
 API version:  1.20
 Go version:   go1.4.2 gccgo (GCC) 5.2.0
 Git commit:   d12ea79-dirty
 Built:        Sun Aug 30 15:35:56 UTC 2015
 OS/Arch:      linux/s390x

Server:
 Version:      1.8.1
 API version:  1.20
 Go version:   go1.4.2 gccgo (GCC) 5.2.0
 Git commit:   d12ea79-dirty
 Built:        Sun Aug 30 15:35:56 UTC 2015
 OS/Arch:      linux/s390x
$ uname -a
Linux s3545002 4.1.0-02210-gf72a620 #1 SMP Wed Sep 16 18:45:15 CEST 2015 s390x s390x s390x GNU/Linux

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions