Skip to content
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

data race #128

Open
MindHunter86 opened this issue Nov 5, 2022 · 0 comments
Open

data race #128

MindHunter86 opened this issue Nov 5, 2022 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@MindHunter86
Copy link
Owner

3:56PM DBG trying to initialize gRPC client... func=master.(*Master).handleIncomingConnection master_listen=0.0.0.0:8081
3:56PM WRN ATTENTION! gRPC connection is unsecure! do at your own risk func=master.(*worker).connect
3:56PM DBG trying to connect to worker over a mux... func=master.(*worker).connect
3:56PM DBG connection with the master server has been established; registering grpc services... func=master.(*worker).connect
3:56PM DBG worker reply accepted, authorizing... func=master.(*worker).authorizeSerivceReply worker_id=3bfd6e47-87e6-4c36-8497-65b1a30f244b
3:56PM DBG the worker's reply has been authorized func=master.(*worker).authorizeSerivceReply worker_id=3bfd6e47-87e6-4c36-8497-65b1a30f244b
3:56PM DBG registration completed; the worker has been initialized func=master.(*worker).connect
==================
WARNING: DATA RACE
Write at 0x00c00004c750 by goroutine 1111:
  runtime.mapassign_faststr()
      /usr/local/go/src/runtime/map_faststr.go:203 +0x0
  github.com/MindHunter86/aniliSeeder/swarm/master.(*workerPool).newWorker()
      /workspaces/repos/aniliSeeder/swarm/master/pool.go:34 +0x444
  github.com/MindHunter86/aniliSeeder/swarm/master.(*Master).handleIncomingConnection()
      /workspaces/repos/aniliSeeder/swarm/master/master.go:191 +0x612
  github.com/MindHunter86/aniliSeeder/swarm/master.(*Master).serve.func1()
      /workspaces/repos/aniliSeeder/swarm/master/master.go:164 +0x98
  github.com/MindHunter86/aniliSeeder/swarm/master.(*Master).serve.func2()
      /workspaces/repos/aniliSeeder/swarm/master/master.go:168 +0x64

Previous read at 0x00c00004c750 by goroutine 1110:
  runtime.mapiterinit()
      /usr/local/go/src/runtime/map.go:815 +0x0
  github.com/MindHunter86/aniliSeeder/swarm/master.(*workerPool).findDeadWorkers()
      /workspaces/repos/aniliSeeder/swarm/master/pool.go:78 +0x1d3
  github.com/MindHunter86/aniliSeeder/swarm/master.(*Master).run.func2()
      /workspaces/repos/aniliSeeder/swarm/master/master.go:127 +0xdb
  github.com/MindHunter86/aniliSeeder/swarm/master.(*Master).run.func4()
      /workspaces/repos/aniliSeeder/swarm/master/master.go:134 +0x93

Goroutine 1111 (running) created at:
  github.com/MindHunter86/aniliSeeder/swarm/master.(*Master).serve()
      /workspaces/repos/aniliSeeder/swarm/master/master.go:163 +0x724
  github.com/MindHunter86/aniliSeeder/swarm/master.(*Master).run.func1()
      /workspaces/repos/aniliSeeder/swarm/master/master.go:97 +0x4e
  github.com/MindHunter86/aniliSeeder/swarm/master.(*Master).run.func3()
      /workspaces/repos/aniliSeeder/swarm/master/master.go:98 +0x51

Goroutine 1110 (finished) created at:
  github.com/MindHunter86/aniliSeeder/swarm/master.(*Master).run()
      /workspaces/repos/aniliSeeder/swarm/master/master.go:125 +0xcb7
  github.com/MindHunter86/aniliSeeder/swarm/master.(*Master).Bootstrap()
      /workspaces/repos/aniliSeeder/swarm/master/master.go:73 +0x324
  github.com/MindHunter86/aniliSeeder/app.(*App).Bootstrap.func1()
      /workspaces/repos/aniliSeeder/app/app.go:76 +0x69
  github.com/MindHunter86/aniliSeeder/app.(*App).Bootstrap.func6()
      /workspaces/repos/aniliSeeder/app/app.go:83 +0x69
==================

c58f160

@MindHunter86 MindHunter86 added the bug Something isn't working label Nov 5, 2022
@MindHunter86 MindHunter86 added this to the first stable (v0.1) milestone Nov 5, 2022
@MindHunter86 MindHunter86 self-assigned this Nov 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant