-
Notifications
You must be signed in to change notification settings - Fork 2.5k
[HUDI-4937] Fix HoodieTable injecting non-reusable HoodieBackedTableMetadata aggressively flushing MT readers
#6815
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
0ebb868
Updated all usages to reference `HoodieSparkKryoRegistrar`
b52d080
Fixing MT table to be always created in a _reusable_ state by default…
eb4e2fb
Inlined "reuse" flag to be true by default for `HoodieBackedTableMeta…
b929ba5
Added `TransientLazy` utility (`Serializable` counterpart of `Lazy`)
091b81d
Rebased `HoodieTable` to rely on `TransientLazy` to manage lifecycle …
28c2b1c
Made `SparkRDDReadClient` closeable;
59df98b
Fixing compilation
9bf6a20
Fixing `TransientLazy` to disallow eager init
80525b3
Fixing compilation after rebase
f1979a2
Fixed `HoodieTable` to be broadcasted to make sure we have single obj…
c654bac
Revisited `Transient` to allow eager initialization
1ae9995
Fixed `HoodieTable` to use proper context
822e1dc
Revisited `HoodieTable` to hold
df71694
Make `HoodieBackedTableMetadata` serializable
c76049a
Added `LeakTrackingFSDataInputStream` to track "leaked" (non-closed) …
10516b1
Fixing compilation
9ba06fe
Reduced MT buffer size from 10Mb to 10Kb
e560c75
Fixed `HoodieTable` close to re-throw unchecked
47d2bcf
Avoid wiring `HoodieSparkSessionExtension` in "hudi-spark-client"
058a991
Killed superfluous Hadoop's `Configuration`
c8f0524
Reverted `HoodieTableFileSystemView` to be serializable in `HoodieBac…
8c7ffe0
Make sure `ByteBuffer` is being duplicated prior to being read out
9709b1b
Added `destroy` method to `Transient` allowing to free up any referen…
64f35dc
Revisited `HoodieSparkTable` to hold `Transient` relying on `Broadcas…
e63c45c
Avoid holding additional `SerializableConfiguration` refs
e3b6af9
Reverted `HoodieTable` to hold `HoodieTableMetadata` directly instead…
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -37,10 +37,16 @@ | |
|
|
||
| public abstract class HoodieJavaTable<T> | ||
| extends HoodieTable<T, List<HoodieRecord<T>>, List<HoodieKey>, List<WriteStatus>> { | ||
|
|
||
| protected HoodieJavaTable(HoodieWriteConfig config, HoodieEngineContext context, HoodieTableMetaClient metaClient) { | ||
| super(config, context, metaClient); | ||
| } | ||
|
|
||
| @Override | ||
| protected HoodieIndex getIndex(HoodieWriteConfig config, HoodieEngineContext context) { | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No changes |
||
| return JavaHoodieIndexFactory.createIndex(config); | ||
| } | ||
|
|
||
| public static <T> HoodieJavaTable<T> create(HoodieWriteConfig config, HoodieEngineContext context) { | ||
| HoodieTableMetaClient metaClient = | ||
| HoodieTableMetaClient.builder().setConf(context.getHadoopConf().get()).setBasePath(config.getBasePath()) | ||
|
|
@@ -66,9 +72,4 @@ public static HoodieWriteMetadata<List<WriteStatus>> convertMetadata( | |
| HoodieWriteMetadata<HoodieData<WriteStatus>> metadata) { | ||
| return metadata.clone(metadata.getWriteStatuses().collectAsList()); | ||
| } | ||
|
|
||
| @Override | ||
| protected HoodieIndex getIndex(HoodieWriteConfig config, HoodieEngineContext context) { | ||
| return JavaHoodieIndexFactory.createIndex(config); | ||
| } | ||
| } | ||
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
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This just been moved; no changes (there were other changes, but these were reverted back)