Skip to content

Stream.IsFinished() Data Race #93

@code-qote

Description

@code-qote

While running code with flag -race got this message:

==================
WARNING: DATA RACE
Write at 0x00c0006a6ed8 by goroutine 259:
  github.com/moby/spdystream.(*Stream).resetStream()
      /github.com/moby/spdystream/stream.go:199 +0x90
  github.com/moby/spdystream.(*Stream).Reset()
      /github.com/moby/spdystream/stream.go:185 +0x4f
  k8s.io/apimachinery/pkg/util/httpstream/spdy.(*connection).Close()
      /k8s.io/apimachinery/pkg/util/httpstream/spdy/connection.go:111 +0xd6

Previous read at 0x00c0006a6ed8 by goroutine 291:
  github.com/moby/spdystream.(*Stream).IsFinished()
      /github.com/moby/spdystream/stream.go:308 +0x89
==================
==================
WARNING: DATA RACE
Read at 0x00c000925f18 by goroutine 296:
  github.com/moby/spdystream.(*Stream).IsFinished()
      /github.com/moby/spdystream/stream.go:308 +0x89

Previous write at 0x00c000925f18 by goroutine 284:
  github.com/moby/spdystream.(*Connection).handleResetFrame()
      /github.com/moby/spdystream/connection.go:552 +0x14b
  github.com/moby/spdystream.(*Connection).frameHandler()
      /github.com/moby/spdystream/connection.go:428 +0x105
  github.com/moby/spdystream.(*Connection).Serve.func2()
      /github.com/moby/spdystream/connection.go:331 +0xa6
  github.com/moby/spdystream.(*Connection).Serve.func4()
      /github.com/moby/spdystream/connection.go:332 +0x47
==================

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions