Skip to content

Conversation

@mp911de
Copy link
Collaborator

@mp911de mp911de commented Jun 18, 2014

No description provided.

mp911de added a commit that referenced this pull request Jun 18, 2014
@mp911de mp911de merged commit d4c1791 into master Jun 18, 2014
tishun added a commit that referenced this pull request Feb 3, 2025
* Introducing the FT.CREATE command

* Formatter issues

* Polishing #1
kiryazovi-redis added a commit that referenced this pull request Oct 2, 2025
…#3461)

* feat(CAE-1130): Add comprehensive connection testing for Redis Enterprise maintenance events

- Add ConnectionTesting class with 9 test scenarios for maintenance handoff behavior
- Test old connection graceful shutdown during MOVING operations
- Validate traffic resumption with autoconnect after handoff
- Verify maintenance notifications only work with RESP3 protocol
- Test new connection establishment during migration and bind phases
- Add memory leak validation for multiple concurrent connections
- Include TLS support testing for maintenance events
- Replace .supportMaintenanceEvents(true) with MaintenanceEventsOptions.enabled()
- Add comprehensive monitoring and validation of connection lifecycle

Tests cover CAE-1130 requirements for Redis Enterprise maintenance event handling
including connection draining, autoconnect behavior, and notification delivery.

* Add comprehensive maintenance events tests for CLIENT MAINT_NOTIFICATIONS

- connectionHandshakeIncludesEnablingNotificationsTest: Verifies all 5 notification types (MOVING, MIGRATING, MIGRATED, FAILING_OVER, FAILED_OVER) are received when maintenance events are enabled
- disabledDontReceiveNotificationsTest: Verifies no notifications received when maintenance events are disabled
- clientHandshakeWithEndpointTypeTest: Tests CLIENT MAINT_NOTIFICATIONS with 'none' endpoint type (nil IP scenario)
- clientMaintenanceNotificationInfoTest: Verifies CLIENT MAINT_NOTIFICATIONS configuration with moving-endpoint-type

Based on CLIENT MAINT_NOTIFICATIONS implementation from commit bd408cf

* Update Redis Enterprise maintenance event notification protocol

- Update push notification patterns to include sequence numbers (4-element format)
- Fix MOVING notification parsing to handle new address format with sequence and time
- Update MIGRATING, MIGRATED, FAILING_OVER, and FAILED_OVER patterns with sequence numbers
- Improve FaultInjectionClient status handling: change from 'pending' to 'running' checks
- Enhance JSON response parsing with better output field handling and debugging
- Remove deprecated maintenance sequence functionality and associated unit test
- Add test phase isolation to prevent cleanup notification interference
- Extend monitoring timeout from 2 to 5 minutes for longer maintenance operations
- Add @AfterEach cleanup to restore cluster state between tests
- Remove hardcoded optimal node selection logic in RedisEnterpriseConfig

This aligns with the updated Redis Enterprise maintenance events specification
and improves test reliability by handling the new notification protocol format.

* Fix moving tests for timeout de-relaxation after moving

* fix notification capture logic and several tests.

* fix up resp2 test, and add proper test for None, will rebase to master

* Fix None test

* Fix several tests related to handling. 5 tests left to fix up.

* fix up new connection test and connection leak tests

* fix up traffic test and remove un-needed code.

* fix more tests, remove more un-needed code

* revert log changes

* revert the re-throw change, to be discussed

* remove resp3 test after offline discussion

* change endpoint name

* temporarely reduce number of tests

* add more tests

* reduce test execution time by 50%

* remove hardcoded target config and enable working with 6 nodes and multiple dbs

* fix up relaxedtimeoutconfig to use newest functions and add connection handoff test

* add 1 more handoff test, add more logging, fix some issues that were raised during review

* fix some bugs and remove the un-needed clean-up of testing, to speed up tests by 50%

* Merge pull request #1 from kiryazovi-redis/CI-fix-functional-handoff-and-connection-testing-of-maint-events-2

Ci fix functional handoff and connection testing of maint events 2

* optimise relaxed timeoutest, fix compilation issues after renaming done by Ivo

* remove MaintenanceNotificationTest, as all functionality is covered now, also implement more fixes and improvements

* renamed memoryleak infra, refactored several tests, implemented more fixes from review, started removin comments

* remove any useless sleeps, refactor several tests again to be more functionally correct, enable logging for testing
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.

2 participants