Skip to content

Commit

Permalink
Log and increase metric once
Browse files Browse the repository at this point in the history
Signed-off-by: Vladislav Volodkin <vlaad@amazon.co.uk>
  • Loading branch information
Vladislav Volodkin committed Jul 29, 2024
1 parent 3cb0a62 commit 860e533
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions mountpoint-s3/src/prefetch/caching_stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -219,9 +219,6 @@ async fn compose_parts<Client: ObjectClient, Cache: DataCache + Send + Sync>(
);
match body_receiver.next().await {
Some(Ok((offset, body))) => {
trace!(offset, length = body.len(), "received GetObject part");
metrics::counter!("s3.client.total_bytes", "type" => "read").increment(body.len() as u64);

let expected_offset = block_offset + buffer.len() as u64;
if offset != expected_offset {
warn!(key, offset, expected_offset, "wrong offset for GetObject body part");
Expand Down

0 comments on commit 860e533

Please sign in to comment.