fallintoplace opened a new pull request, #1454:
URL: https://github.com/apache/iceberg-go/pull/1454

   ## What
   
   Retry properties were parsed into unsigned values and later converted to 
signed integers and `time.Duration`, allowing extreme metadata values to wrap 
and potentially panic `rand.Int64N` during commit retries.
   
   This validates retry milliseconds against the largest safe duration, rejects 
reversed wait bounds and retry-count overflow, returns the offending property 
in the configuration error, and hardens backoff arithmetic. A full-width 
`PropUInt64` helper preserves values needed for validation.
   
   ## Tests
   
   - `go test ./...`
   - Boundary coverage for `math.MaxUint64`, `math.MaxInt64+1`, reversed 
min/max, and the largest safe duration.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to