mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-10-06 22:41:56 +02:00
- Add BrokerClient integration to Handler with EnableBrokerIntegration method - Update storeDecodedMessage to use mq.broker for publishing decoded RecordValue - Add OriginalBytes field to ConfluentEnvelope for complete envelope storage - Integrate schema validation and decoding in Produce path - Add comprehensive unit tests for Produce handler schema integration - Support both broker integration and SeaweedMQ fallback modes - Add proper cleanup in Handler.Close() for broker client resources Key integration points: - Handler.EnableBrokerIntegration: configure mq.broker connection - Handler.IsBrokerIntegrationEnabled: check integration status - processSchematizedMessage: decode and validate Confluent envelopes - storeDecodedMessage: publish RecordValue to mq.broker via BrokerClient - Fallback to SeaweedMQ integration or in-memory mode when broker unavailable Note: Existing protocol tests need signature updates due to apiVersion parameter additions - this is expected and will be addressed in future maintenance.