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

New
edruder
I thought that there might be interest in using the book with Rails 6.1 and Ruby 2.7.2. I’ll note what I needed to do differently here. ...
New
lirux
Hi Jamis, I think there’s an issue with a test on chapter 6. I own the ebook, version P1.0 Feb. 2019. This test doesn’t pass for me: ...
New
mikecargal
Title: Hands-on Rust: question about get_component (page 295) (feel free to respond. “You dug you’re own hole… good luck”) I have somet...
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
New
s2k
Hi all, currently I wonder how the Tailwind colours work (or don’t work). For example, in app/views/layouts/application.html.erb I have...
New
Keton
When running the program in chapter 8, “Implementing Combat”, the printout Health before attack was never printed so I assumed something ...
New
ggerico
I got this error when executing the plot files on macOS Ventura 13.0.1 with Python 3.10.8 and matplotlib 3.6.1: programming_ML/code/03_...
New
dachristenson
@mfazio23 Android Studio will not accept anything I do when trying to use the Transformations class, as described on pp. 140-141. Googl...
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
Exadra37
I am thinking in building or buy a desktop computer for programing, both professionally and on my free time, and my choice of OS is Linux...
New
New
AstonJ
I have seen the keycaps I want - they are due for a group-buy this week but won’t be delivered until October next year!!! :rofl: The Ser...
New
AstonJ
Do the test and post your score :nerd_face: :keyboard: If possible, please add info such as the keyboard you’re using, the layout (Qw...
New
PragmaticBookshelf
Learn different ways of writing concurrent code in Elixir and increase your application's performance, without sacrificing scalability or...
New
AstonJ
Seems like a lot of people caught it - just wondered whether any of you did? As far as I know I didn’t, but it wouldn’t surprise me if I...
New
New
PragmaticBookshelf
Author Spotlight James Stanier @jstanier James Stanier, author of Effective Remote Work , discusses how to rethink the office as we e...
New
Help
I am trying to crate a game for the Nintendo switch, I wanted to use Java as I am comfortable with that programming language. Can you use...
New

Sub Categories: