-
Notifications
You must be signed in to change notification settings - Fork 66
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
feat: add logical termination for RunQueryResponse #956
Conversation
eb7d4e8
to
fbba090
Compare
fbba090
to
695b504
Compare
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.
Requesting some minor changes.
google-cloud-firestore/src/main/java/com/google/cloud/firestore/Query.java
Outdated
Show resolved
Hide resolved
google-cloud-firestore/src/main/java/com/google/cloud/firestore/Query.java
Outdated
Show resolved
Hide resolved
google-cloud-firestore/src/test/java/com/google/cloud/firestore/QueryTest.java
Show resolved
Hide resolved
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.
We are almost done here..
google-cloud-firestore/src/test/java/com/google/cloud/firestore/QueryTest.java
Outdated
Show resolved
Hide resolved
google-cloud-firestore/src/test/java/com/google/cloud/firestore/QueryTest.java
Show resolved
Hide resolved
google-cloud-firestore/src/test/java/com/google/cloud/firestore/QueryTest.java
Show resolved
Hide resolved
google-cloud-firestore/src/test/java/com/google/cloud/firestore/QueryTest.java
Outdated
Show resolved
Hide resolved
@wu-hui |
I think this is fine. |
semaphore.release(); | ||
} | ||
}); | ||
|
||
semaphore.acquire(); | ||
|
||
Thread.sleep(200); |
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.
Add comment to explain why we are doing this
🤖 I have created a release *beep* *boop* --- ## [3.3.0](v3.2.0...v3.3.0) (2022-07-01) ### Features * add logical termination for RunQueryResponse ([#956](#956)) ([1d869c8](1d869c8)) ### Bug Fixes * add build script for JDK 17 native image testing ([#965](#965)) ([963e384](963e384)) ### Performance Improvements * Change how proto was called in Query.java ([#970](#970)) ([f6f6352](f6f6352)) ### Dependencies * update beam.version to v2.40.0 ([#978](#978)) ([44276f8](44276f8)) * update dependency com.google.cloud:google-cloud-shared-dependencies to v2.13.0 ([#974](#974)) ([6def73d](6def73d)) * update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.12 ([#973](#973)) ([bfb4ec9](bfb4ec9)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
🤖 I have created a release *beep* *boop* --- ## [3.3.0](v3.2.0...v3.3.0) (2022-07-01) ### Features * add logical termination for RunQueryResponse ([#956](#956)) ([1d869c8](1d869c8)) ### Bug Fixes * add build script for JDK 17 native image testing ([#965](#965)) ([963e384](963e384)) ### Performance Improvements * Change how proto was called in Query.java ([#970](#970)) ([f6f6352](f6f6352)) ### Dependencies * update beam.version to v2.40.0 ([#978](#978)) ([44276f8](44276f8)) * update dependency com.google.cloud:google-cloud-shared-dependencies to v2.13.0 ([#974](#974)) ([6def73d](6def73d)) * update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.12 ([#973](#973)) ([bfb4ec9](bfb4ec9)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
Add logical termination for RunQueryResponse.
When the SDK side receives either halfClose or RunQueryResponse.done set to true, the SDK will return user requested documents.