BigQuery Storage Write API: LimitExceededBehavior of FlowControlSettings is ignored in JsonStreamWriter #1539
Labels
api: bigquerystorage
Issues related to the googleapis/java-bigquerystorage API.
type: feature request
‘Nice-to-have’ improvement, new feature or different behavior or design.
Environment details
Java version: 8 latest
Library version(s): 2.8.1
Steps to reproduce
writer.append(jsonArr)
blocks indefinitely.Stack trace
Any additional information below
During service problems like omg/48020 or other changes, that affect writing data to BigQuery we must avoid to indefinetly get blocked in our application. We can't afford that our application crashes or hangs because we are not able to ingest data to BigQuery. Instead we would rather have our application discarding those BigQuery events and trigger an alert. If the library would throw an exception instead of blocking, which this LimitExceededBehaviour seems to be intended for, this would be sufficient for us. So in this case WE could decide what to do when the limit is reached and not the library decides to block. This has real dramatic impact if this is permanently blocking due to a bug like omg/48020 and never recovers. To work around this with future bugs we implemented the same inflight quota counting on top and start discarding events before the the library internal quotas are reached. This is obviously not a good solution.
The text was updated successfully, but these errors were encountered: