mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-09-20 13:30:46 +02:00
- Add BrokerClient wrapper around pub_client.TopicPublisher - Support publishing decoded RecordValue messages to mq.broker - Implement schema validation and RecordType creation - Add comprehensive unit tests for broker client functionality - Support both schematized and raw message publishing - Include publisher caching and statistics tracking - Handle error conditions and edge cases gracefully Key features: - PublishSchematizedMessage: decode Confluent envelope and publish RecordValue - PublishRawMessage: publish non-schematized messages directly - ValidateMessage: validate schematized messages without publishing - CreateRecordType: infer RecordType from schema for topic configuration - Publisher caching and lifecycle management Note: Tests acknowledge known limitations in Avro integer decoding and RecordType inference - core functionality works correctly.