Skip to content

[Java SDK] Add Error Handling and Edge Case Tests for Async Client #2226

@chiradip

Description

@chiradip

Title

Improve error handling test coverage for async TCP client

Description

The async client needs comprehensive error handling tests to ensure robust behavior under failure conditions. Currently, only NULL consumer timeout is tested.

Tasks

  • Add connection failure tests:
    • Server unreachable
    • Invalid host/port
    • Connection timeout scenarios
  • Add network interruption tests:
    • Connection drops during operation
    • Partial message transmission
    • Reconnection logic
  • Add protocol error tests:
    • Invalid command codes
    • Malformed messages
    • Server error responses
  • Add resource cleanup tests:
    • Proper channel closure
    • Memory leak prevention
    • Thread pool shutdown

Labels

enhancement, testing, reliability, async-client, java-sdk

Metadata

Metadata

Assignees

No one assigned

    Labels

    improvementA change that improves our (or users) QoLjavaIssues related to Java SDK

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions