jimmykiang

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

travisjeffery

Author of Distributed Services with Go

What chapter? And you include the entire stacktrace?

jimmykiang

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


Where Next?

Popular Pragmatic Bookshelf topics Top

johnp
Running the examples in chapter 5 c under pytest 5.4.1 causes an AttributeError: ‘module’ object has no attribute ‘config’. In particula...
New
mikecargal
Title: Hands-On Rust (Chap 8 (Adding a Heads Up Display) It looks like ​.with_simple_console_no_bg​(SCREEN_WIDTH*2, SCREEN_HEIGHT*2...
New
Mmm
Hi, build fails on: bracket-lib = “~0.8.1” when running on Mac Mini M1 Rust version 1.5.0: Compiling winit v0.22.2 error[E0308]: mi...
New
JohnS
I can’t setup the Rails source code. This happens in a working directory containing multiple (postgres) Rails apps. With: ruby-3.0.0 s...
New
AleksandrKudashkin
On the page xv there is an instruction to run bin/setup from the main folder. I downloaded the source code today (12/03/21) and can’t see...
New
swlaschin
The book has the same “Problem space/Solution space” diagram on page 18 as is on page 17. The correct Problem/Solution space diagrams ar...
New
patoncrispy
I’m new to Rust and am using this book to learn more as well as to feed my interest in game dev. I’ve just finished the flappy dragon exa...
New
Charles
In general, the book isn’t yet updated for Phoenix version 1.6. On page 18 of the book, the authors indicate that an auto generated of ro...
New
adamwoolhether
Is there any place where we can discuss the solutions to some of the exercises? I can figure most of them out, but am having trouble with...
New
New

Other popular topics Top

AstonJ
A thread that every forum needs! Simply post a link to a track on YouTube (or SoundCloud or Vimeo amongst others!) on a separate line an...
New
AstonJ
What chair do you have while working… and why? Is there a ‘best’ type of chair or working position for developers?
New
siddhant3030
I’m thinking of buying a monitor that I can rotate to use as a vertical monitor? Also, I want to know if someone is using it for program...
New
Margaret
Hello content creators! Happy new year. What tech topics do you think will be the focus of 2021? My vote for one topic is ethics in tech...
New
Rainer
Not sure if following fits exactly this thread, or if we should have a hobby thread… For many years I’m designing and building model air...
New
PragmaticBookshelf
Build highly interactive applications without ever leaving Elixir, the way the experts do. Let LiveView take care of performance, scalabi...
New
AstonJ
Continuing the discussion from Thinking about learning Crystal, let’s discuss - I was wondering which languages don’t GC - maybe we can c...
New
AstonJ
Biggest jackpot ever apparently! :upside_down_face: I don’t (usually) gamble/play the lottery, but working on a program to predict the...
New
First poster: bot
Large Language Models like ChatGPT say The Darnedest Things. The Errors They MakeWhy We Need to Document Them, and What We Have Decided ...
New
First poster: bot
zig/http.zig at 7cf2cbb33ef34c1d211135f56d30fe23b6cacd42 · ziglang/zig. General-purpose programming language and toolchain for maintaini...
New

Sub Categories: