Wei Ziran
Wei Ziran
#### Can be reproduced ? Yes #### Steps: cd components/prophet/election CGO_ENABLED=1 go test -race -run=TestCurrentLeader #### Expected behavior: No error. #### Actual behavior: ``` {"level":"info","ts":"2022-03-11T18:23:16.326+0800","caller":"embed/etcd.go:131","msg":"configuring peer listeners","listen-peer-urls":["http://127.0.0.1:30001"]} {"level":"info","ts":"2022-03-11T18:23:16.327+0800","caller":"embed/etcd.go:139","msg":"configuring client listeners","listen-client-urls":["http://127.0.0.1:30000"]}...
### Is there an existing issue for the same bug? - [X] I have checked the existing issues. ### Environment ```Markdown - Version or commit-id (e.g. v0.1.0 or 8b23a93): -...
## What type of PR is this? - [ ] API-change - [x] BUG - [ ] Improvement - [ ] Documentation - [ ] Feature - [ ] Test...
## What type of PR is this? - [ ] API-change - [ ] BUG - [ ] Improvement - [ ] Documentation - [x] Feature - [ ] Test...
## What type of PR is this? - [ ] API-change - [ ] BUG - [ ] Improvement - [ ] Documentation - [ ] Feature - [ ]...
…pressedList initialization 1. Fix issue in test: Avoid copying the address of buf in tests, preventing the generated arrays from pointing to the same address. 2. Enhance compressedList initialization: Introduce...
### Problem When creating a `compressedList` using the `newCompressedList` function, the current implementation lacks the ability to specify the initial size of the list. This results in multiple memory allocations...
Test in [Matrixcube](https://github.com/matrixorigin/matrixcube) failed because of goroutine leaks. ``` === RUN TestLogDBGetMaxIndexReturnsNoSavedLogErrorWhenMaxIndexIsNotSaved leak.go:138: Leaked goroutine: goroutine 141 [chan receive]: github.com/fagongzi/goetty/timewheel.(*TimeoutWheel).doTick(0xc0000c8080) /matrixcube/vendor/github.com/fagongzi/goetty/timewheel/timewheel.go:291 +0x105 created by github.com/fagongzi/goetty/timewheel.(*TimeoutWheel).Start /matrixcube/vendor/github.com/fagongzi/goetty/timewheel/timewheel.go:227 +0x291 leak.go:138: Leaked goroutine:...
## What type of PR is this? - [ ] API-change - [ ] BUG - [x] Improvement - [ ] Documentation - [ ] Feature - [ ] Test...
## What type of PR is this? - [ ] API-change - [x] BUG - [ ] Improvement - [ ] Documentation - [ ] Feature - [ ] Test...