🐛 Bug Overview
This report details two critical issues regarding runtime safety and resource optimization within the framework:
- EventHub: A missing initialization guard in
Publish allowed execution to proceed with a nil producer client, introducing structural flakiness. Concurrently, the associated failure test was unstable and explicitly skipped.
- S3 File System: The
ReadDir implementation relied on a wide prefix-only lookup, fetching metadata for all deeply nested objects. This behavior caused unnecessary memory allocation overhead in dense directory structures.
🕹️ Steps to Reproduce
1. EventHub Uninitialized State Execution
Creating an EventHub client and attempting a write sequence without an explicit connection hook:
// Configuration is valid, but Connect() lifecycle step is omitted
client := eventhub.New(cfg)
err := client.Publish(context.Background(), cfg.EventhubName, []byte("msg"))
🐛 Bug Overview
This report details two critical issues regarding runtime safety and resource optimization within the framework:
Publishallowed execution to proceed with anilproducer client, introducing structural flakiness. Concurrently, the associated failure test was unstable and explicitly skipped.ReadDirimplementation relied on a wide prefix-only lookup, fetching metadata for all deeply nested objects. This behavior caused unnecessary memory allocation overhead in dense directory structures.🕹️ Steps to Reproduce
1. EventHub Uninitialized State Execution
Creating an EventHub client and attempting a write sequence without an explicit connection hook: