-
Notifications
You must be signed in to change notification settings - Fork 2.5k
[HUDI-2028] Implement RockDbBasedMap as an alternate to DiskBasedMap in ExternalSpillableMap #3117
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 1 commit
Commits
Show all changes
51 commits
Select commit
Hold shift + click to select a range
29a53c6
Implement RockDbBasedMap as an alternate to DiskBasedMap in SpillableMap
e41f13f
[MINOR] Put Azure cache tasks first (#3118)
xushiyan 429e9fb
[HUDI-1248] Increase timeout for deltaStreamerTestRunner in TestHoodi…
codope adf1679
[HUDI-2049] StreamWriteFunction should wait for the next inflight ins…
danny0405 f8d9242
[HUDI-2050] Support rollback inflight compaction instances for batch …
swuferhong 4fd8a88
[HUDI-1776] Support AlterCommand For Hoodie (#3086)
93dad05
Fix iterator for rocks db
cb5cd35
[HUDI-2043] HoodieDefaultTimeline$filterPendingCompactionTImeline() m…
swuferhong 7bd517a
[HUDI-2031] JVM occasionally crashes during compaction when spark spe…
marin-ma 5db37c2
[HUDI-2047] Ignore FileNotFoundException in WriteProfiles #getWritePa…
yuzhaojing 69c0d9e
[HUDI-1883] Support Truncate Table For Hoodie (#3098)
062d5ba
[HUDI-2013] Removed option to fallback to file listing when Metadata …
prashantwason 11e64b2
[HUDI-1717] Metadata Reader should merge all the un-synced but comple…
prashantwason 3fb59dd
[HUDI-1988] FinalizeWrite() been executed twice in AbstractHoodieWrit…
swuferhong 2687eab
[HUDI-2054] Remove the duplicate name for flink write pipeline (#3135)
danny0405 43b9c1f
[HUDI-1826] Add ORC support in HoodieSnapshotExporter (#3130)
vaibhav-sinha 380518e
[HUDI-2038] Support rollback inflight compaction instances for Compac…
yuzhaojing dd248a3
Fix checkstyle issues
e039e0f
[HUDI-2064] Fix TestHoodieBackedMetadata#testOnlyValidPartitionsAdded…
leesf 7e50f9a
[HUDI-2061] Incorrect Schema Inference For Schema Evolved Table (#3137)
84dd3ca
[HUDI-2053] Insert Static Partition With DateType Return Incorrect P…
b328555
[HUDI-2069] Fix KafkaAvroSchemaDeserializer to not rely on reflection…
sbernauer 218f2a6
[HUDI-2062] Catch FileNotFoundException in WriteProfiles #getCommitMe…
yuzhaojing e64fe55
[HUDI-2068] Skip the assign state for SmallFileAssign when the state …
danny0405 0fb8556
Add ability to provide multi-region (global) data consistency across …
s-sanjay 23dbc09
[MINOR] Removing un-used files and references (#3150)
n3nash ed1a5da
[HUDI-2060] Added tests for KafkaOffsetGen (#3136)
veenaypatil f73bedd
[MINOR] Remove unused methods (#3152)
wangxianghu e99a6b0
[HUDI-2073] Fix the bug of hoodieClusteringJob never quit (#3157)
zhangyue19921010 d24341d
[HUDI-2074] Use while loop instead of recursive call in MergeOnReadIn…
danny0405 9e61dad
[MINOR] Drop duplicate keygenerator class configuration setting (#3167)
wangxianghu 34fc8a8
[HUDI-2067] Sync FlinkOptions config to FlinkStreamerConfig (#3151)
veenaypatil 039aeb6
[HUDI-1910] Commit Offset to Kafka after successful Hudi commit (#3092)
veenaypatil 37b7c65
[HUDI-2084] Resend the uncommitted write metadata when start up (#3168)
yuzhaojing 0749cc8
[HUDI-2081] Move schema util tests out from TestHiveSyncTool (#3166)
xushiyan b8a8f57
[HUDI-2094] Supports hive style partitioning for flink writer (#3178)
danny0405 5a7d1b3
[HUDI-2097] Fix Flink unable to read commit metadata error (#3180)
swuferhong f665db0
[HUDI-2085] Support specify compaction paralleism and compaction targ…
swuferhong 6d4b556
Address reviewer comments
72a3594
Address reviewer comments
202887b
[HUDI-2092] Fix NPE caused by FlinkStreamerConfig#writePartitionUrlEn…
wangxianghu 5564c7e
[HUDI-2006] Adding more yaml templates to test suite (#3073)
nsivabalan 1cbf43b
[HUDI-2103] Add rebalance before index bootstrap (#3185)
yuzhaojing 94f0f40
[HUDI-1944] Support Hudi to read from committed offset (#3175)
veenaypatil 07e93de
[HUDI-2052] Support load logFile in BootstrapFunction (#3134)
yuzhaojing 91427f3
Implement RockDbBasedMap as an alternate to DiskBasedMap in SpillableMap
26ed037
Fix iterator for rocks db
6ca64ba
Fix checkstyle issues
4eb25d0
Address reviewer comments
e45577b
Address reviewer comments
231b679
Merge branch 'rm_rocks_db' of https://github.com/rmahindra123/hudi in…
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
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
37 changes: 37 additions & 0 deletions
37
hudi-common/src/main/java/org/apache/hudi/common/util/collection/SpillableDiskMap.java
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 |
|---|---|---|
| @@ -0,0 +1,37 @@ | ||
| /* | ||
| * Licensed to the Apache Software Foundation (ASF) under one | ||
| * or more contributor license agreements. See the NOTICE file | ||
| * distributed with this work for additional information | ||
| * regarding copyright ownership. The ASF licenses this file | ||
| * to you under the Apache License, Version 2.0 (the | ||
| * "License"); you may not use this file except in compliance | ||
| * with the License. You may obtain a copy of the License at | ||
| * | ||
| * http://www.apache.org/licenses/LICENSE-2.0 | ||
| * | ||
| * Unless required by applicable law or agreed to in writing, software | ||
| * distributed under the License is distributed on an "AS IS" BASIS, | ||
| * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| * See the License for the specific language governing permissions and | ||
| * limitations under the License. | ||
| */ | ||
|
|
||
| package org.apache.hudi.common.util.collection; | ||
|
|
||
| import java.io.Serializable; | ||
| import java.util.Map; | ||
| import java.util.stream.Stream; | ||
|
|
||
| /** | ||
| * The spillable map that provides the map interface for storing records in disk/ db after they | ||
| * spill over from memory. Used by {@link ExternalSpillableMap}. | ||
| * @param <T> | ||
rmahindra123 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| * @param <R> | ||
| */ | ||
| public interface SpillableDiskMap<T extends Serializable, R extends Serializable> extends Map<T, R>, Iterable<R> { | ||
| Stream<R> valueStream(); | ||
|
|
||
| long sizeOfFileOnDiskInBytes(); | ||
rmahindra123 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| void close(); | ||
| } | ||
rmahindra123 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
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.
Uh oh!
There was an error while loading. Please reload this page.