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
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@
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)
15
+
* Fixed a rare race in parallel Hybrid Search queries by making internal SchedulingStopwatch start/stop atomic and idempotent. - [PR 46594](https://github.com/Azure/azure-sdk-for-java/pull/46594)
16
16
* Fixed the Hybrid Search SchedulingStopWatch to use Cumulative Timing Across all parallel queries. - [PR 46591](https://github.com/Azure/azure-sdk-for-java/pull/46591)
17
17
* Fixed Strong Consistency violation when a single replica in a partition returns a 410 `Lease Not Found`. - [PR 46433](https://github.com/Azure/azure-sdk-for-java/pull/46433)
Copy file name to clipboardExpand all lines: sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/query/metrics/SchedulingStopwatch.java
+18-6Lines changed: 18 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -26,28 +26,34 @@ 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 for response time and turnaround time.
29
+
* which in turn starts the stopwatch 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
-
if (!this.runTimeStopwatch.isStarted()) {
37
+
synchronized (this.runTimeStopwatch) {
38
+
if (this.runTimeStopwatch.isStarted()) {
39
+
return;
40
+
}
38
41
if (!this.responded) {
39
42
// This is the first time the process got a response, so the response time stopwatch needs to stop.
0 commit comments