Repository navigation
Conversation
… sample bugs (BQS-0f) - Replace broken googleapis.dev deep-links and legacy cloud.google.com links across samples with canonical docs.cloud.google.com URLs - Migrate deprecated org.threeten.bp.Duration calls (setInitialRetryDelay/setMaxRetryDelay/setKeepAliveTime/setKeepAliveTimeout) to java.time.Duration *Duration setters across all 10 write samples - Close leaked BigQueryWriteClient in WriteCommittedStream and WritePendingStream via try-with-resources - Store and shut down leaked ScheduledExecutorService in WriteToDefaultStream, WriteToDefaultStreamWithArrow, WriteToDefaultStreamTimestampJson, WriteToDefaultStreamTimestampWithArrow, and ExportOpenTelemetry - Register inflightRequestCount.register() before ApiFutures.addCallback(...) across all Phaser-tracked samples to eliminate deregister-before-register races - Stop retrying closed ArrowRecordBatch in onFailure in WriteToDefaultStreamWithArrow and WriteToDefaultStreamTimestampWithArrow - Remove dead response.hasError() branch inside onSuccess in JsonWriterStreamCdc and ParallelWriteCommittedStream - Replace Integer.parseInt with Long.parseLong for snapshotMillis in StorageSample and StorageArrowSample
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary (BQS-0f)
Wave 1 hygiene and bug fixes across 12
java-bigquerystoragesample files undersamples/snippets/src/main/java/com/example/bigquerystorage/:googleapis.devdeep-links (8 occurrences losing class anchors) and legacycloud.google.comdocs/quotas links with live HTTP 200docs.cloud.google.comURLs.java.time.Durationmigration: Replaced deprecatedorg.threeten.bp.Durationimports andsetInitialRetryDelay/setMaxRetryDelay/setKeepAliveTime/setKeepAliveTimeoutcalls withjava.time.Duration*Durationsetters across all 10 write samples.BigQueryWriteClientintry-with-resources inWriteCommittedStreamandWritePendingStream.ScheduledExecutorServiceincleanup()acrossWriteToDefaultStream,WriteToDefaultStreamWithArrow,WriteToDefaultStreamTimestampJson,WriteToDefaultStreamTimestampWithArrow, andExportOpenTelemetry.inflightRequestCount.register()beforeApiFutures.addCallback(..., MoreExecutors.directExecutor())across all 7 Phaser-tracked samples to eliminate the deregister-before-register race.ArrowRecordBatchinstances insideonFailureinWriteToDefaultStreamWithArrowandWriteToDefaultStreamTimestampWithArrow(StreamWriter.append(ArrowRecordBatch)closes batches upon submission; callers must rebuild a fresh batch from source data).response.hasError()branches insideonSuccessinJsonWriterStreamCdcandParallelWriteCommittedStream.Integer.parseIntwithLong.parseLongforsnapshotMillisinStorageSampleandStorageArrowSampleto prevent 32-bit epoch millisecond overflow.Verification
javac --release 8 -Xlint:deprecationvia Maven (BUILD SUCCESS, 0 errors, 0Durationdeprecation warnings).google-java-format --dry-run --set-exit-if-changedpasses with 0 diffs on all 12 modified files.googleapis.dev,threeten.bp, or legacycloud.google.com/(bigquery|java)references insamples/snippets/, and HTTP 200 on all replacement URLs.