HADOOP-17928. Syncable: S3A to warn and downgrade#3585
Merged
steveloughran merged 3 commits intoapache:trunkfrom Nov 2, 2021
Merged
HADOOP-17928. Syncable: S3A to warn and downgrade#3585steveloughran merged 3 commits intoapache:trunkfrom
steveloughran merged 3 commits intoapache:trunkfrom
Conversation
This switches the default behavior of S3A output streams to warning that Syncable.hsync() or hflush() have been called; it's not considered an error unless the defaults are overridden. This avoids breaking applications which call the APIs, at the risk of people trying to use S3 as a safe store of streamed data (HBase WALs, audit logs etc). Contributed by Steve Loughran. Change-Id: Id7f8fc65a32a5ab664ebbd68d92754d4c38e29d8
Contributor
Author
|
Testing in progress. FWIW, internally we had the core-default setting up for a while, because various obscure apps (ranger logs &c) were calling hflush and hsync, and while "stop it" is the correct long-term fix, that relies co-ordination across OSS release schedules. Which as we know, doesn't exist. |
Change-Id: Ic9fb5026f13904bc4921946a75b9d807b2db326d
Contributor
Author
|
Test result, all good except for the buffer incomplete issue which happens locally for me |
Contributor
Author
Member
mehakmeet
reviewed
Oct 27, 2021
Contributor
mehakmeet
left a comment
There was a problem hiding this comment.
looks good. Pending that blanks fix caught by Yetus.
Member
|
Thank you for pinging me, @sunchao . |
Contributor
Author
|
thx, will fix the eof and apply |
Change-Id: I61441b01f1aee342f3e59da7ef107b1dfc023e1d
Contributor
Author
|
ok, as soon as yetus is done i will merge |
|
🎊 +1 overall
This message was automatically generated. |
asfgit
pushed a commit
that referenced
this pull request
Nov 4, 2021
This switches the default behavior of S3A output streams to warning that Syncable.hsync() or hflush() have been called; it's not considered an error unless the defaults are overridden. This avoids breaking applications which call the APIs, at the risk of people trying to use S3 as a safe store of streamed data (HBase WALs, audit logs etc). Contributed by Steve Loughran. Change-Id: I0a02ec1e622343619f147f94158c18928a73a885
HarshitGupta11
pushed a commit
to HarshitGupta11/hadoop
that referenced
this pull request
Nov 28, 2022
This switches the default behavior of S3A output streams to warning that Syncable.hsync() or hflush() have been called; it's not considered an error unless the defaults are overridden. This avoids breaking applications which call the APIs, at the risk of people trying to use S3 as a safe store of streamed data (HBase WALs, audit logs etc). Contributed by Steve Loughran.
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.
This switches the default behavior of S3A output streams
to warning that Syncable.hsync() or hflush() have been
called; it's not considered an error unless the defaults
are overridden.
This avoids breaking applications which call the APIs,
at the risk of people trying to use S3 as a safe store
of streamed data (HBase WALs, audit logs etc).
Contributed by Steve Loughran.
Change-Id: Id7f8fc65a32a5ab664ebbd68d92754d4c38e29d8
How was this patch tested?
New unit tests; cloud store test in progress
For code changes: