Files
seaweedfs/weed/mq/topic
chrislu 171dbdb4f3 Phase 4: Integrate offset management with SMQ broker components
- Add SW_COLUMN_NAME_OFFSET field to parquet storage for offset persistence
- Create BrokerOffsetManager for coordinating offset assignment across partitions
- Integrate offset manager into MessageQueueBroker initialization
- Add PublishWithOffset method to LocalPartition for offset-aware publishing
- Update broker publish flow to assign offsets during message processing
- Create offset-aware subscription handlers for consume operations
- Add comprehensive broker offset integration tests
- Support both single and batch offset assignment
- Implement offset-based subscription creation and management
- Add partition offset information and metrics APIs

Key TODOs and Assumptions:
- TODO: Replace in-memory storage with SQL-based persistence in Phase 5
- TODO: Integrate LogBuffer to natively handle offset assignment
- TODO: Add proper partition field access in subscription requests
- ASSUMPTION: LogEntry.Offset field populated by broker during publishing
- ASSUMPTION: Offset information preserved through parquet storage integration
- ASSUMPTION: BrokerOffsetManager handles all partition offset coordination

Tests show basic functionality working, some integration issues expected
until Phase 5 SQL storage backend is implemented.
2025-09-12 00:46:18 -07:00
..
2025-01-20 22:19:27 -08:00