-
Notifications
You must be signed in to change notification settings - Fork 2.2k
- Adding nregion feature to changelog #47987
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -948,6 +948,7 @@ StoreResult createStoreResult(StoreResponse storeResponse, | |
| int numberOfReadRegions = -1; | ||
| Double backendLatencyInMs = null; | ||
| Double retryAfterInMs = null; | ||
| long globalNRegionCommittedLSN = -1; | ||
|
|
||
| if (replicaStatusList != null) { | ||
| ImplementationBridgeHelpers | ||
|
|
@@ -995,15 +996,14 @@ StoreResult createStoreResult(StoreResponse storeResponse, | |
| numberOfReadRegions = Integer.parseInt(headerValue); | ||
| } | ||
|
|
||
| long globalNRegionCommittedLSN = -1; | ||
| headerValue = cosmosException.getResponseHeaders().get(WFConstants.BackendHeaders.GLOBAL_COMMITTED_LSN); | ||
| if (!Strings.isNullOrEmpty(headerValue)) { | ||
| globalCommittedLSN = Long.parseLong(headerValue); | ||
| } else { | ||
| headerValue = cosmosException.getResponseHeaders().get(WFConstants.BackendHeaders.GLOBAL_N_REGION_COMMITTED_GLSN); | ||
| if (!Strings.isNullOrEmpty(headerValue)) { | ||
| globalNRegionCommittedLSN = Long.parseLong(headerValue); | ||
| } | ||
| } | ||
|
|
||
| headerValue = cosmosException.getResponseHeaders().get(WFConstants.BackendHeaders.GLOBAL_N_REGION_COMMITTED_GLSN); | ||
| if (!Strings.isNullOrEmpty(headerValue)) { | ||
| globalNRegionCommittedLSN = Long.parseLong(headerValue); | ||
| } | ||
|
Comment on lines
+1004
to
1007
|
||
|
|
||
| headerValue = cosmosException.getResponseHeaders().get(HttpConstants.HttpHeaders.BACKEND_REQUEST_DURATION_MILLISECONDS); | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The PR description still contains the template instruction text (“Please add an informative description… and link all relevant issues.”). Please replace that with an actual summary/repro/verification notes and any linked issues so the changelog entry and code change are properly traceable.