Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unexpected read retries #5199

Merged
merged 2 commits into from
Sep 27, 2024
Merged

Conversation

polyrabbit
Copy link
Contributor

As discussed in #5192 , two benefits:

  1. Remove unexpected read retries to obey user specified io-retries option.
  2. Remove 1s delay between retries, just in case we get a stale file layout.

Signed-off-by: Changxin Miao <[email protected]>
used := time.Since(st)
logRequest("PUT", key, "", reqID, err, used)
store.objectDataBytes.WithLabelValues("PUT", sc).Add(float64(len(p.Data)))
store.objectReqsHistogram.WithLabelValues("PUT", sc).Observe(used.Seconds())
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should record the actual duration for the request, not bounded by timeout.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, I will leave it as is.

The reason for this update is - cachedStore.delete/cachedStore.load all measure duration bounded by timeout, why cachedStore.put differs from them?

@davies davies merged commit 8824126 into juicedata:main Sep 27, 2024
31 of 32 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants