- Fix TestKafkaGateway_SchemaPerformance: Update test schema to match registered schema with email field
- Fix TestSchematizedMessageToSMQ: Always store records in ledger regardless of schema processing
- Fix persistent_offset_integration_test.go: Remove unused subscription variable
- Improve error handling for schema registry connection failures
- All schema integration tests now pass successfully
Issues Fixed:
1. Avro decoding failure due to schema mismatch (missing email field)
2. Offset retrieval failure due to records not being stored in ledger
3. Compilation error with unused variable
4. Graceful handling of schema registry unavailability
Test Results:
✅ TestKafkaGateway_SchemaIntegration - All subtests pass
✅ TestKafkaGateway_SchemaPerformance - Performance test passes (avg: 9.69µs per decode)
✅ TestSchematizedMessageToSMQ - Offset management and Avro workflow pass
✅ TestCompressionWithSchemas - Compression integration passes
Schema registry integration is now robust and handles both connected and disconnected scenarios.