efficient / epaxos

http://efficient.github.io/epaxos/
Other
612 stars 134 forks source link

Bug in scalability tests: index out of range [5] #24

Open PasinduTennage opened 1 year ago

PasinduTennage commented 1 year ago

When I deploy EPaxos in a cluster of size 13, I get the following error. It seems like the array that is causing the error is hard coded to 5 replicas.

Any ideas about how to fix this?

panic: runtime error: index out of range [5] with length 5

goroutine 79 [running]:
epaxos.(*Replica).startPhase1(0xc000436000?, 0x1e150?, 0xc0?, 0x316d80?, {0xc00019ca80?, 0xc00017bdc8?, 0xc00017be88?}, 0xc0001f0000, 0x64, 0x64}, ...)
/home/pasindu/Documents/epaxos/src/epaxos/epaxos.go:845 +0x4ca
epaxos.(*Replica).handlePropose(0xc0000d8280, 0xc000115d40)
/home/pasindu/Documents/epaxos/src/epaxos/epaxos.go:826 +0x267
epaxos.(*Replica).run(0xc0000d8280)
/home/pasindu/Documents/epaxos/src/epaxos/epaxos.go:314 +0x6eb
created by epaxos.NewReplica
/home/pasindu/Documents/epaxos/src/epaxos/epaxos.go:184 +0x136a

Thanks