Skip to content

Commit

Permalink
Test fallback due to wrong timestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
schu committed Mar 16, 2017
1 parent 44c7c11 commit 6febb7d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ has_container "$HOST1" nginx
has_container "$HOST1" client
has_connection containers "$HOST1" client nginx

endpoints_have_ebpf "$HOST1"
# endpoints_have_ebpf "$HOST1"

scope_end_suite
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@

start_suite "Test short lived connection between containers in same network namespace, with ebpf connection tracking enabled"

scope_on "$HOST1" launch --probe.ebpf.connections=true
docker_on "$HOST1" run -d --name nginx nginx
docker_on "$HOST1" run -d --net=container:nginx --name client albanc/dialer /go/bin/dialer connectshortlived localhost:80
# scope_on "$HOST1" launch --probe.ebpf.connections=true
# docker_on "$HOST1" run -d --name nginx nginx
# docker_on "$HOST1" run -d --net=container:nginx --name client albanc/dialer /go/bin/dialer connectshortlived localhost:80

wait_for_containers "$HOST1" 60 nginx client
# wait_for_containers "$HOST1" 60 nginx client

has_container "$HOST1" nginx
has_container "$HOST1" client
has_connection containers "$HOST1" client nginx
# has_container "$HOST1" nginx
# has_container "$HOST1" client
# has_connection containers "$HOST1" client nginx

endpoints_have_ebpf "$HOST1"
# endpoints_have_ebpf "$HOST1"

scope_end_suite
2 changes: 1 addition & 1 deletion probe/endpoint/ebpf.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ func newEbpfTracker() (eventTracker, error) {
var lastTimestampV4 uint64

func tcpEventCbV4(e tracer.TcpV4) {
if lastTimestampV4 > e.Timestamp {
if lastTimestampV4 > e.Timestamp || true {
// See https://github.com/weaveworks/scope/issues/2334
log.Debugf("tcp tracer received event with timestamp %v even though the last timestamp was %v. Stopping the eBPF tracker.", e.Timestamp, lastTimestampV4)
ebpfTracker.dead = true
Expand Down

0 comments on commit 6febb7d

Please sign in to comment.