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

agent are killed #1

Open
skyline93 opened this issue Sep 26, 2022 · 1 comment
Open

agent are killed #1

skyline93 opened this issue Sep 26, 2022 · 1 comment

Comments

@skyline93
Copy link
Owner

maybe the agent process was oom

@skyline93
Copy link
Owner Author

fatal error: concurrent map read and map write

goroutine 1264 [running]:
runtime.throw({0xc86593?, 0xc000693db8?})
/usr/local/go/src/runtime/panic.go:992 +0x71 fp=0xc000693d98 sp=0xc000693d68 pc=0x433f51
runtime.mapaccess2_faststr(0xc000032120?, 0xf?, {0xc0000c4870, 0x24})
/usr/local/go/src/runtime/map_faststr.go:117 +0x3d4 fp=0xc000693e00 sp=0xc000693d98 pc=0x412cd4
github.com/skyline93/gokv.(*KV).Get(0xc0000314c0, {0xc0000c4870, 0x24})
/home/greene/syncbyte-go/vendor/github.com/skyline93/gokv/gokv.go:44 +0x59 fp=0xc000693e70 sp=0xc000693e00 pc=0xa83a59
github.com/skyline93/syncbyte-go/internal/agent.(*BackupJob).Run.func1()
/home/greene/syncbyte-go/internal/agent/backup.go:74 +0x54 fp=0xc000693f08 sp=0xc000693e70 pc=0xafac74
github.com/skyline93/syncbyte-go/internal/agent.(*BackupJob).Run(0xc0009ca900)
/home/greene/syncbyte-go/internal/agent/backup.go:110 +0x37b fp=0xc000693fc8 sp=0xc000693f08 pc=0xafab5b
github.com/skyline93/syncbyte-go/internal/agent.(*RPCServer).StartBackup.func1()
/home/greene/syncbyte-go/internal/agent/agent.go:59 +0x26 fp=0xc000693fe0 sp=0xc000693fc8 pc=0xaf9b06
runtime.goexit()
/usr/local/go/src/runtime/asm_amd64.s:1571 +0x1 fp=0xc000693fe8 sp=0xc000693fe0 pc=0x4632e1
created by github.com/skyline93/syncbyte-go/internal/agent.(*RPCServer).StartBackup
/home/greene/syncbyte-go/internal/agent/agent.go:59 +0x356

goroutine 1 [IO wait]:
internal/poll.runtime_pollWait(0x7f999b2b0198, 0x72)
/usr/local/go/src/runtime/netpoll.go:302 +0x89
internal/poll.(*pollDesc).wait(0xc00016b080?, 0xc00003a000?, 0x0)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:83 +0x32
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:88
internal/poll.(*FD).Accept(0xc00016b080)
/usr/local/go/src/internal/poll/fd_unix.go:614 +0x22c
net.(*netFD).accept(0xc00016b080)
/usr/local/go/src/net/fd_unix.go:172 +0x35
net.(*TCPListener).accept(0xc00000cd68)
/usr/local/go/src/net/tcpsock_posix.go:139 +0x28
net.(*TCPListener).Accept(0xc00000cd68)
/usr/local/go/src/net/tcpsock.go:288 +0x3d
google.golang.org/grpc.(*Server).Serve(0xc0001ef340, {0xda31b0?, 0xc00000cd68})
/home/greene/syncbyte-go/vendor/google.golang.org/grpc/server.go:780 +0x477
github.com/skyline93/syncbyte-go/internal/agent.(*RPCServer).Run(0x12966f0)
/home/greene/syncbyte-go/internal/agent/agent.go:121 +0xe5
main.glob..func2(0x1259f60?, {0xc6d38f?, 0x0?, 0x0?})
/home/greene/syncbyte-go/cmd/agent/main.go:25 +0x25
github.com/spf13/cobra.(*Command).execute(0x1259f60, {0x12966f0, 0x0, 0x0})
/home/greene/syncbyte-go/vendor/github.com/spf13/cobra/command.go:876 +0x67b
github.com/spf13/cobra.(*Command).ExecuteC(0x1259ce0)
/home/greene/syncbyte-go/vendor/github.com/spf13/cobra/command.go:990 +0x3b4
github.com/spf13/cobra.(*Command).Execute(...)
/home/greene/syncbyte-go/vendor/github.com/spf13/cobra/command.go:918
main.Execute()
/home/greene/syncbyte-go/cmd/agent/main.go:40 +0x25
main.main()
/home/greene/syncbyte-go/cmd/agent/main.go:47 +0x17

goroutine 1310 [IO wait]:
internal/poll.runtime_pollWait(0x7f999b301e80, 0x72)
/usr/local/go/src/runtime/netpoll.go:302 +0x89
internal/poll.(*pollDesc).wait(0xc0000c6b00?, 0xc0002c6000?, 0x0)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:83 +0x32
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:88
internal/poll.(*FD).Read(0xc0000c6b00, {0xc0002c6000, 0x1000, 0x1000})
/usr/local/go/src/internal/poll/fd_unix.go:167 +0x25a
net.(*netFD).Read(0xc0000c6b00, {0xc0002c6000?, 0x0?, 0x4?})
/usr/local/go/src/net/fd_posix.go:55 +0x29
net.(*conn).Read(0xc00041fcc8, {0xc0002c6000?, 0x0?, 0x0?})
/usr/local/go/src/net/net.go:183 +0x45
net/http.(*persistConn).Read(0xc000228480, {0xc0002c6000?, 0x446760?, 0xc0006d4ec8?})
/usr/local/go/src/net/http/transport.go:1929 +0x4e
bufio.(*Reader).fill(0xc0001cb440)
/usr/local/go/src/bufio/bufio.go:106 +0x103
bufio.(*Reader).Peek(0xc0001cb440, 0x1)
/usr/local/go/src/bufio/bufio.go:144 +0x5d
net/http.(*persistConn).readLoop(0xc000228480)
/usr/local/go/src/net/http/transport.go:2093 +0x1ac
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:1750 +0x173e

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant