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 Prag Prog topics Top

jon
Some minor things in the paper edition that says “3 2020” on the title page verso, not mentioned in the book’s errata online: p. 186 But...
New
belgoros
Following the steps described in Chapter 6 of the book, I’m stuck with running the migration as described on page 84: bundle exec sequel...
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
raul
Hi Travis! Thank you for the cool book! :slight_smile: I made a list of issues and thought I could post them chapter by chapter. I’m rev...
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
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
jskubick
I’m under the impression that when the reader gets to page 136 (“View Data with the Database Inspector”), the code SHOULD be able to buil...
New
taguniversalmachine
Hi, I am getting an error I cannot figure out on my test. I have what I think is the exact code from the book, other than I changed “us...
New
andreheijstek
After running /bin/setup, the first error was: The foreman' command exists in these Ruby versions: That was easy to fix: gem install fore...
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

PragmaticStudio
Let’s get real. As in really knowing—clearly and practically—what’s up with Phoenix LiveView. What is it? How does it work? What can I ...
New
New
AstonJ
We have a thread about the keyboards we have, but what about nice keyboards we come across that we want? If you have seen any that look n...
New
AstonJ
I’ve been hearing quite a lot of comments relating to the sound of a keyboard, with one of the most desirable of these called ‘thock’, he...
New
AstonJ
If you are experiencing Rails console using 100% CPU on your dev machine, then updating your development and test gems might fix the issu...
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
PragmaticBookshelf
Build efficient applications that exploit the unique benefits of a pure functional language, learning from an engineer who uses Haskell t...
New
AstonJ
If you want a quick and easy way to block any website on your Mac using Little Snitch simply… File > New Rule: And select Deny, O...
New
PragmaticBookshelf
Author Spotlight: VM Brasseur @vmbrasseur We have a treat for you today! We turn the spotlight onto Open Source as we sit down with V...
New
AstonJ
Chris Seaton, the creator of TruffleRuby has died. It appears from suicide :cry: He left this note on Twitter on the weekend: And one...
New

Latest in PragProg

View all threads ❯