-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUGFIX] mutex like it should be #34
Conversation
models/graph.go
Outdated
builder.readNodes(nodes.List) | ||
nodes.RUnlock() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mach bessser builder.readNodes(nodes)
und verschiebe die Locks in die Funktion.
models/graph.go
Outdated
@@ -48,7 +48,9 @@ func (nodes *Nodes) BuildGraph() *Graph { | |||
vpn: make(map[string]interface{}), | |||
} | |||
|
|||
nodes.RLock() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Und das kann nicht mehr zu einem Deadlock führen?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ich hab keine Ahnung, wo der deadlock herkommt - doch dies soll mit diesen PR mit in Erfahrung gebracht werden.
Einmal alles untersuchen, was wo sich sperrt und ob es so richtig ist.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Vielleicht hiermit testen? https://github.com/sasha-s/go-deadlock
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hört sich interessant an :)
11efd72
to
5b587d5
Compare
I don't think this should be merged into master. |
greate, i will create a VM with a complete testing stack - for problemes like this. |
You can also use the productive system as long as you monitor it and act in case of errors. |
4f0d783
to
880e1bc
Compare
108eb91
to
8b8b144
Compare
Liegt zu lange rum -> close. |
No description provided.