You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: sdk/cosmos/azure-cosmos/CHANGELOG.md
-1Lines changed: 0 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,6 @@
12
12
* Fixed Null Pointer Exception for query when container recreated with same name. - [PR 45930](https://github.com/Azure/azure-sdk-for-java/pull/45930)
13
13
* Fixed Null Pointer Exception for readMany when container recreated with same name. - [PR 45930](https://github.com/Azure/azure-sdk-for-java/pull/45930)
* Fixed a rare race in parallel Hybrid Search queries by making internal SchedulingStopwatch start/stop atomic and idempotent. - [PR 46485](https://github.com/Azure/azure-sdk-for-java/pull/46485)
16
15
17
16
#### Other Changes
18
17
* Added change to optimize lease checkpointing in `ChangeFeedProcessor` by conditionally executing checkpoint operations for 304 responses based on continuation token comparison, which helps to reduce RU consumption for unchanged feeds. See [PR 46521](https://github.com/Azure/azure-sdk-for-java/pull/46521)
Copy file name to clipboardExpand all lines: sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/query/metrics/SchedulingStopwatch.java
+6-18Lines changed: 6 additions & 18 deletions
Original file line number
Diff line number
Diff line change
@@ -26,34 +26,28 @@ public SchedulingTimeSpan getElapsedTime() {
26
26
27
27
/**
28
28
* Tells the SchedulingStopwatch know that the process is in a state where it is ready to be worked on,
29
-
* which in turn starts the stopwatch for response time and turnaround time.
29
+
* which in turn starts the stopwatch for for response time and turnaround time.
30
30
*/
31
31
publicvoidready() {
32
32
startStopWatch(this.turnaroundTimeStopwatch);
33
33
startStopWatch(this.responseTimeStopwatch);
34
34
}
35
35
36
36
publicvoidstart() {
37
-
synchronized (this.runTimeStopwatch) {
38
-
if (this.runTimeStopwatch.isStarted()) {
39
-
return;
40
-
}
37
+
if (!this.runTimeStopwatch.isStarted()) {
41
38
if (!this.responded) {
42
39
// This is the first time the process got a response, so the response time stopwatch needs to stop.
0 commit comments