
jimmykiang
Distributed Services With Go - Agent_test.go error line 77
This test is broken right out of the box…
— FAIL: TestAgent (7.82s)
agent_test.go:77:
Error Trace: agent_test.go:77
agent_test.go:116
Error: Received unexpected error:
FlushFileBuffers: The handle is invalid.
Test: TestAgent
testing.go:906: race detected during execution of test
Most Liked

travisjeffery
What chapter? And you include the entire stacktrace?

jimmykiang
CHAPTER 6
Server-to-Server Service Discovery
Stacktrace:
=== RUN TestAgent
2020/06/23 18:10:36 [INFO] serf: EventMemberJoin: 0 127.0.0.1
2020/06/23 18:10:36 [INFO] serf: EventMemberJoin: 1 127.0.0.1
2020/06/23 18:10:36 [DEBUG] memberlist: Initiating push/pull sync with: 127.0.0.1:22289
2020/06/23 18:10:36 [DEBUG] memberlist: Stream connection from=127.0.0.1:58739
2020/06/23 18:10:36 [INFO] serf: EventMemberJoin: 0 127.0.0.1
2020/06/23 18:10:36 [INFO] serf: EventMemberJoin: 1 127.0.0.1
2020/06/23 18:10:36 [INFO] serf: EventMemberJoin: 2 127.0.0.1
2020/06/23 18:10:36 [DEBUG] memberlist: Initiating push/pull sync with: 127.0.0.1:22289
2020/06/23 18:10:36 [DEBUG] memberlist: Stream connection from=127.0.0.1:58743
2020/06/23 18:10:36 [INFO] serf: EventMemberJoin: 2 127.0.0.1
2020/06/23 18:10:36 [INFO] serf: EventMemberJoin: 1 127.0.0.1
2020/06/23 18:10:36 [INFO] serf: EventMemberJoin: 0 127.0.0.1
2020/06/23 18:10:36 [INFO] serf: EventMemberJoin: 2 127.0.0.1
2020/06/23 18:10:36 [DEBUG] serf: messageJoinType: 1
2020/06/23 18:10:36 [DEBUG] serf: messageJoinType: 1
2020/06/23 18:10:36 [DEBUG] serf: messageJoinType: 2
2020/06/23 18:10:36 [DEBUG] serf: messageJoinType: 1
2020/06/23 18:10:36 [DEBUG] serf: messageJoinType: 2
2020/06/23 18:10:36 [DEBUG] serf: messageJoinType: 1
2020/06/23 18:10:36 [DEBUG] serf: messageJoinType: 1
2020/06/23 18:10:36 [DEBUG] serf: messageJoinType: 2
2020/06/23 18:10:36 [DEBUG] serf: messageJoinType: 1
2020/06/23 18:10:36 [DEBUG] serf: messageJoinType: 2
2020/06/23 18:10:36 [DEBUG] serf: messageJoinType: 1
2020/06/23 18:10:36 [DEBUG] serf: messageJoinType: 2
2020/06/23 18:10:36 [DEBUG] serf: messageJoinType: 1
2020/06/23 18:10:36 [DEBUG] serf: messageJoinType: 2
2020/06/23 18:10:36 [DEBUG] serf: messageJoinType: 2
2020/06/23 18:10:36 [DEBUG] serf: messageJoinType: 1
2020/06/23 18:10:36 [DEBUG] serf: messageJoinType: 2
2020/06/23 18:10:36 [DEBUG] serf: messageJoinType: 1
2020/06/23 18:10:36 [DEBUG] serf: messageJoinType: 1
2020/06/23 18:10:36 [DEBUG] serf: messageJoinType: 2
2020/06/23 18:10:36 [DEBUG] serf: messageJoinType: 1
2020/06/23 18:10:36 [DEBUG] serf: messageJoinType: 2
2020/06/23 18:10:36 [DEBUG] serf: messageJoinType: 2
2020/06/23 18:10:36 [DEBUG] serf: messageJoinType: 2
2020/06/23 18:10:39 [ERROR] proglog: rpc error: code = Unknown desc = unexpected EOF
2020/06/23 18:10:42 [DEBUG] serf: messageLeaveType: 0
2020/06/23 18:10:42 [DEBUG] serf: messageLeaveType: 0
2020/06/23 18:10:42 [DEBUG] serf: messageLeaveType: 0
2020/06/23 18:10:42 [DEBUG] serf: messageLeaveType: 0
2020/06/23 18:10:42 [DEBUG] serf: messageLeaveType: 0
2020/06/23 18:10:42 [DEBUG] serf: messageLeaveType: 0
2020/06/23 18:10:42 [DEBUG] serf: messageLeaveType: 0
2020/06/23 18:10:42 [INFO] serf: EventMemberLeave: 0 127.0.0.1
2020/06/23 18:10:42 [DEBUG] serf: messageLeaveType: 0
2020/06/23 18:10:42 [DEBUG] serf: messageLeaveType: 0
2020/06/23 18:10:42 [DEBUG] serf: messageLeaveType: 0
2020/06/23 18:10:42 [DEBUG] serf: messageLeaveType: 0
2020/06/23 18:10:42 [DEBUG] serf: messageLeaveType: 0
2020/06/23 18:10:42 [INFO] serf: EventMemberLeave: 0 127.0.0.1
2020/06/23 18:10:42 [INFO] serf: EventMemberLeave: 0 127.0.0.1
2020/06/23 18:10:44 [ERROR] proglog: rpc error: code = Unavailable desc = all SubConns are in TransientFailure, latest connection error:
TestAgent: agent_test.go:77:
Error Trace: agent_test.go:77
agent_test.go:116
Error: Received unexpected error:
FlushFileBuffers: The handle is invalid.
Test: TestAgent
— FAIL: TestAgent (8.03s)
FAIL
coverage: 83.1% of statements
FAIL github.com/travisjeffery/proglog/internal/agent 9.051s
FAIL
Popular Prag Prog topics









Modern front-end development for Rails, second edition - Struggling to get the first chapter to work

Other popular topics










Latest in PragProg
Latest (all)
Categories:
Popular Portals
- /elixir
- /rust
- /wasm
- /ruby
- /erlang
- /phoenix
- /keyboards
- /js
- /rails
- /python
- /security
- /go
- /swift
- /vim
- /clojure
- /java
- /haskell
- /emacs
- /svelte
- /onivim
- /typescript
- /crystal
- /c-plus-plus
- /tailwind
- /kotlin
- /gleam
- /react
- /flutter
- /elm
- /ocaml
- /vscode
- /opensuse
- /ash
- /centos
- /php
- /deepseek
- /scala
- /zig
- /html
- /debian
- /nixos
- /lisp
- /agda
- /sublime-text
- /textmate
- /react-native
- /kubuntu
- /arch-linux
- /revery
- /ubuntu
- /manjaro
- /django
- /spring
- /diversity
- /nodejs
- /lua
- /julia
- /slackware
- /c
- /neovim