Skip to content

[matjaz-test3] [AI-FSSDK] (DO NOT REVIEW) [FSSDK-12248] Increase max retry time interval to 3 seconds#387

Open
Mat001 wants to merge 1 commit intomasterfrom
ai/mat001/FSSDK-12248
Open

[matjaz-test3] [AI-FSSDK] (DO NOT REVIEW) [FSSDK-12248] Increase max retry time interval to 3 seconds#387
Mat001 wants to merge 1 commit intomasterfrom
ai/mat001/FSSDK-12248

Conversation

@Mat001
Copy link
Contributor

@Mat001 Mat001 commented Feb 4, 2026

Summary

Increased the maximum retry interval for ODP event manager from 1 second to 3 seconds to provide better resilience during network issues.

Changes

  • lib/optimizely/helpers/constants.rb: Updated MAX_RETRY_INTERVAL constant from 1.0 to 3.0 seconds
  • spec/odp/odp_event_manager_spec.rb: Updated test expectations to validate new 3-second cap

Implementation Details

This change works with the existing exponential backoff retry mechanism that was refactored in the upstream codebase. The retry intervals now progress as:

  • 1st retry: 200ms
  • 2nd retry: 400ms
  • 3rd retry: 800ms
  • 4th retry: 1.6s
  • 5th+ retry: 3.0s (capped)

Quality Assurance

Tests: 26/26 passed
Code Review: Approved (0 critical issues, 0 warnings)
QA Iterations: 1/5 (smart exit - perfect on first try)

Test Coverage

  • All ODP event manager tests passing
  • Exponential backoff interval calculations validated
  • Retry logic verified with new maximum cap

Jira Ticket

FSSDK-12248


🤖 Generated with Claude Code

…val to 3 seconds

Updated ODP_EVENT_MANAGER MAX_RETRY_INTERVAL from 1.0 to 3.0 seconds to allow
longer retry intervals during network issues. This change affects the exponential
backoff retry logic which now caps at 3 seconds instead of 1 second.

Changes:
- lib/optimizely/helpers/constants.rb: Updated MAX_RETRY_INTERVAL constant
- spec/odp/odp_event_manager_spec.rb: Updated test expectations for new cap

Quality Assurance Results:
- Status: SUCCESS (adapted changes to upstream refactoring)
- Iterations: 1/5 (smart exit - perfect on first try)
- Tests: 26/26 passed
- Review: Approved (0 critical, 0 warnings)
- Test coverage: Comprehensive exponential backoff validation

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant