Skip to content

Conversation

@LeonYoah
Copy link
Contributor

@LeonYoah LeonYoah commented Apr 16, 2024

Purpose of this pull request

fix bug : #6678
The [S3Conf] class in the S3 connector has a statically modified variable [SCHEMA], which causes it to be reassigned after deserialization. I will remove the static modification:
image
image
close #6678

Does this PR introduce any user-facing change?

No

How was this patch tested?

Check list

… to be non-static to avoid being reassigned after deserialization
Config config = readonlyConfig.toConfig();
HadoopConf hadoopConf = new S3Conf(readonlyConfig.get(S3ConfigOptions.S3_BUCKET));
String bucketName = readonlyConfig.get(S3ConfigOptions.S3_BUCKET);
String bucketName = config.getString(S3ConfigOptions.S3_BUCKET.key());
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can reuse the code above:

return buildWithReadOnlyConfig(readonlyConfig.toConfig);

… to be non-static to avoid being reassigned after deserialization
Copy link
Member

@EricJoy2048 EricJoy2048 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, waiting for CI complete.

@hailin0 hailin0 merged commit 79bb701 into apache:dev Apr 17, 2024
chaorongzhi pushed a commit to chaorongzhi/seatunnel that referenced this pull request Aug 21, 2024
… to be non-static to avoid being reassigned after deserialization (apache#6717)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] [S3File] [zeta-local] Error writing to S3File in version 2.3.4:: Java lang. An IllegalStateException: Connection pool shut down

3 participants