Files
seaweedfs/weed/mq/kafka/protocol
chrislu 5d0c45c9dc Phase 2: Implement CreateTopics protocol compliance for v0/v1
CreateTopics Protocol Compliance completed:

## Implementation
- Implement handleCreateTopicsV0V1() with proper v0/v1 request parsing
- Support regular array/string format (not compact) for v0/v1
- Parse topic name, partitions, replication factor, assignments, configs
- Handle timeout_ms and validate_only fields correctly
- Maintain existing v2+ compact format support
- Wire to SeaweedMQ handler for actual topic creation

## Key Features
- Full v0-v5 CreateTopics API version support
- Proper error handling (TOPIC_ALREADY_EXISTS, INVALID_PARTITIONS, etc.)
- Partition count validation and enforcement
- Compatible with existing SeaweedMQ topic management

## Tests
- Comprehensive unit tests for v0/v1/v2+ parsing
- Error condition testing (duplicate topics, invalid partitions)
- Multi-topic creation support
- Integration tests across all API versions
- Performance benchmarks for CreateTopics operations

## Verification
- All protocol tests pass (v0-v5 CreateTopics)
- E2E Sarama tests continue to work
- Real topics created with specified partition counts
- Proper error responses for edge cases

Ready for Phase 3: ApiVersions matrix accuracy
2025-09-13 13:18:54 -07:00
..
2025-09-13 13:03:51 -07:00
2025-09-13 08:47:46 -07:00
2025-09-13 09:06:02 -07:00
2025-09-13 13:03:51 -07:00
2025-09-13 13:03:51 -07:00
2025-09-13 10:23:14 -07:00
2025-09-13 13:03:51 -07:00
2025-09-13 10:23:14 -07:00
2025-09-13 08:06:36 -07:00
2025-09-13 08:06:36 -07:00
2025-09-13 11:06:29 -07:00
2025-09-11 19:53:00 -07:00
2025-09-13 08:06:36 -07:00