aiven / kafka

Mirror of Apache Kafka

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add ClientMetadata to RemoteStorageFetchInfo

jeqo opened this issue · comments

Once Tiered Storage is deployed, it will be important to understand how remote data is accessed, and which patterns emerge on each deployment.

To do this, tiered storage logs should provide enough context about which client is fetching which partition/offset range and when.

At the moment, Client metadata is not propagated to the tiered-storage framework. To fix this, RemoteStorageFetchInfo can be extended with Optional[ClientMetadata] available on FetchParams, and have this bits of data available to improve the logging when fetching.