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


Popular Pragmatic Bookshelf topics Top

jimmykiang
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:...
New
New
Razor54672
The answer to 3rd Problem of Chapter 5 (Making Choices) of “Practical Programming, Third Edition” seems incorrect in the given answer ke...
New
brianokken
Many tasks_proj/tests directories exist in chapters 2, 3, 5 that have tests that use the custom markers smoke and get, which are not decl...
New
mikecargal
Title: Hands-On Rust (Chapter 11: prefab) Just played a couple of amulet-less games. With a bit of debugging, I believe that your can_p...
New
HarryDeveloper
Hi @venkats, It has been mentioned in the description of ‘Supervisory Job’ title that 2 things as mentioned below result in the same eff...
New
jskubick
I found an issue in Chapter 7 regarding android:backgroundTint vs app:backgroundTint. How to replicate: load chapter-7 from zipfile i...
New
brunogirin
When running tox for the first time, I got the following error: ERROR: InterpreterNotFound: python3.10 I realised that I was running ...
New
redconfetti
Docker-Machine became part of the Docker Toolbox, which was deprecated in 2020, long after Docker Desktop supported Docker Engine nativel...
New
SlowburnAZ
Getting an error when installing the dependencies at the start of this chapter: could not compile dependency :exla, "mix compile" failed...
New

Other popular topics Top

wolf4earth
@AstonJ prompted me to open this topic after I mentioned in the lockdown thread how I started to do a lot more for my fitness. https://f...
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
AstonJ
SpaceVim seems to be gaining in features and popularity and I just wondered how it compares with SpaceMacs in 2020 - anyone have any thou...
New
PragmaticBookshelf
Rust is an exciting new programming language combining the power of C with memory safety, fearless concurrency, and productivity boosters...
New
Exadra37
I am asking for any distro that only has the bare-bones to be able to get a shell in the server and then just install the packages as we ...
New
Margaret
Hello everyone! This thread is to tell you about what authors from The Pragmatic Bookshelf are writing on Medium.
1134 25373 750
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
mafinar
This is going to be a long an frequently posted thread. While talking to a friend of mine who has taken data structure and algorithm cou...
New
PragmaticBookshelf
Rails 7 completely redefines what it means to produce fantastic user experiences and provides a way to achieve all the benefits of single...
New
AstonJ
This is cool! DEEPSEEK-V3 ON M4 MAC: BLAZING FAST INFERENCE ON APPLE SILICON We just witnessed something incredible: the largest open-s...
New