shunping opened a new pull request, #39445:
URL: https://github.com/apache/beam/pull/39445
This PR fixes a bug where annotating `GoogleCloudStorageReadOptions` with
`@JsonIgnore` caused custom GCS read options (such as `fadvise`) to be dropped
during JSON serialization, forcing remote workers to fall back to default
settings.
Going forward, users can configure `GoogleCloudStorageReadOptions` so that
they successfully take effect on workers using a code snippet like the
following:
```java
// Configure GCS Read Options with SEQUENTIAL fadvise
GoogleCloudStorageReadOptions gcsReadOpt =
GoogleCloudStorageReadOptions.DEFAULT.toBuilder()
.setFadvise(GoogleCloudStorageReadOptions.Fadvise.SEQUENTIAL)
.build();
options.as(GcsOptions.class).setGoogleCloudStorageReadOptions(gcsReadOpt);
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]