Closed buger closed 1 month ago
API Changes
no api changes detected
Here are some key observations to aid the review process:
**π« Ticket compliance analysis πΆ** **[6629](https://github.com/TykTechnologies/tyk/issues/6629) - Partially compliant** Fully compliant requirements: - Update the gorpc library to a newer version. - Refactor the connection dialing logic to prevent panic when deploying GW before Control Plane is deployed. Not compliant requirements: - Ensure the changes do not introduce new issues and are compatible with existing systems. |
β±οΈ Estimated effort to review: 3 π΅π΅π΅βͺβͺ |
π§ͺ No relevant tests |
π No security concerns identified |
β‘ Recommended focus areas for review Connection Handling The removal of manual `sync.WaitGroup` handling and reliance on `clientSingleton.ConnectionDialingWG.Wait()` needs thorough testing to ensure no race conditions or deadlocks occur. |
Explore these optional code suggestions:
Category | Suggestion | Score |
Possible bug |
Add error handling for
___
**Ensure that the | 9 |
Failed conditions
0.0% Coverage on New Code (required β₯ 80%)
User description
TT-13130 updated version of gorpc library and prevent panic on start edge (#6629)
User description
TT-13130
Description
Moved the logic of waitgroup to be handled internally in the gorpc library. GW only have to wait until done()
Related Issue
TT-13130
Motivation and Context
How This Has Been Tested
Screenshots (if appropriate)
Types of changes
Checklist
PR Type
Bug fix, Enhancement
Description
rpc_client.go
to remove manualsync.WaitGroup
handling, leveraging the internal wait group management provided by thegorpc
library.gorpc
library to a newer version ingo.mod
andgo.sum
, ensuring compatibility and leveraging improvements.Changes walkthrough π
rpc_client.go
Refactor connection dialing wait group handling
rpc/rpc_client.go
sync.WaitGroup
for connection dialing.clientSingleton.ConnectionDialingWG
for managing connectionreadiness.
go.mod
Update gorpc library version in go.mod
go.mod - Updated `gorpc` library version to latest.
go.sum
Update go.sum for new gorpc version
go.sum - Updated checksums for new `gorpc` library version.
Co-authored-by: sredny buitrago sredny@srednys-MacBook-Pro.local
PR Type
Bug fix, Enhancement
Description
rpc_client.go
to remove manualsync.WaitGroup
handling, leveraging the internal wait group management provided by thegorpc
library.gorpc
library to a newer version ingo.mod
andgo.sum
, ensuring compatibility and leveraging improvements.Changes walkthrough π
rpc_client.go
Refactor connection dialing wait group handling
rpc/rpc_client.go
sync.WaitGroup
for connection dialing.clientSingleton.ConnectionDialingWG
for managing connectionreadiness.
go.mod
Update gorpc library version in go.mod
go.mod - Updated `gorpc` library version to the latest.
go.sum
Update go.sum for new gorpc version
go.sum - Updated checksums for new `gorpc` library version.