mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-09-12 01:20:45 +02:00
Core SeaweedMQ Integration completed: ## Implementation - Implement SeaweedMQHandler.GetStoredRecords() to retrieve actual records from SeaweedMQ - Add SeaweedSMQRecord wrapper implementing offset.SMQRecord interface - Wire Fetch API to use real SMQ records instead of synthetic batches - Support both agent and broker client connections for record retrieval ## Key Features - Proper Kafka offset mapping from SeaweedMQ records - Respects maxRecords limit and batch size constraints - Graceful error handling for missing topics/partitions - High water mark boundary checking ## Tests - Unit tests for SMQRecord interface compliance - Edge case testing (empty topics, offset boundaries, limits) - Integration with existing end-to-end Kafka tests - Benchmark tests for record accessor performance ## Verification - All integration tests pass - E2E Sarama test shows 'Found X SMQ records' debug output - GetStoredRecords now returns real data instead of TODO placeholder Ready for Phase 2: CreateTopics protocol compliance