Commit a252e94
Address PR review: thread safety, comments, and test fixes
- Add synchronized to rate-limit state methods to fix check-then-act
race condition
- Add comments explaining defensive 429 and non-standard 460 in
isStatusRetryWithBackoff
- Fix outdated test comments and line references
- Widen timing assertion upper bound (3s → 5s) to reduce CI flakiness
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 9e7d140 commit a252e94
2 files changed
Lines changed: 10 additions & 8 deletions
File tree
- analytics/src
- main/java/com/segment/analytics/internal
- test/java/com/segment/analytics/internal
Lines changed: 7 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
229 | 229 | | |
230 | 230 | | |
231 | 231 | | |
232 | | - | |
| 232 | + | |
233 | 233 | | |
234 | 234 | | |
235 | 235 | | |
| |||
238 | 238 | | |
239 | 239 | | |
240 | 240 | | |
241 | | - | |
| 241 | + | |
242 | 242 | | |
243 | 243 | | |
244 | 244 | | |
245 | 245 | | |
246 | 246 | | |
247 | | - | |
| 247 | + | |
248 | 248 | | |
249 | 249 | | |
250 | 250 | | |
| |||
702 | 702 | | |
703 | 703 | | |
704 | 704 | | |
705 | | - | |
| 705 | + | |
| 706 | + | |
| 707 | + | |
| 708 | + | |
706 | 709 | | |
707 | 710 | | |
708 | 711 | | |
| |||
Lines changed: 3 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
618 | 618 | | |
619 | 619 | | |
620 | 620 | | |
621 | | - | |
622 | | - | |
| 621 | + | |
623 | 622 | | |
624 | 623 | | |
625 | 624 | | |
| |||
732 | 731 | | |
733 | 732 | | |
734 | 733 | | |
735 | | - | |
| 734 | + | |
736 | 735 | | |
737 | 736 | | |
738 | 737 | | |
| |||
747 | 746 | | |
748 | 747 | | |
749 | 748 | | |
750 | | - | |
| 749 | + | |
751 | 750 | | |
752 | 751 | | |
753 | 752 | | |
| |||
0 commit comments