You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by GitBox <gi...@apache.org> on 2020/09/04 16:05:34 UTC
[GitHub] [hudi] sreeram26 opened a new pull request #2069: [WIP][HUDI-945] Cleanup Spillable map files eagerly for DiskBasedMap
sreeram26 opened a new pull request #2069:
URL: https://github.com/apache/hudi/pull/2069
## *Tips*
- *Thank you very much for contributing to Apache Hudi.*
- *Please review https://hudi.apache.org/contributing.html before opening a pull request.*
## What is the purpose of the pull request
Cleanup Spillable map files eagerly for DiskBasedMap
Ref: https://issues.apache.org/jira/browse/HUDI-945
This is still in progress. Creating for remote builds
## Brief change log
*(for example:)*
- *Modify AnnotationLocation checkstyle rule in checkstyle.xml*
## Verify this pull request
*(Please pick either of the following options)*
This pull request is a trivial rework / code cleanup without any test coverage.
*(or)*
This pull request is already covered by existing tests, such as *(please describe tests)*.
(or)
This change added tests and can be verified as follows:
*(example:)*
- *Added integration tests for end-to-end.*
- *Added HoodieClientWriteTest to verify the change.*
- *Manually verified the change by running a job locally.*
## Committer checklist
- [ ] Has a corresponding JIRA in PR title & commit
- [ ] Commit message is descriptive of the change
- [ ] CI is green
- [ ] Necessary doc changes done or have another open PR
- [ ] For large changes, please consider breaking it into sub-tasks under an umbrella JIRA.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] nsivabalan commented on pull request #2069: [WIP][HUDI-945] Cleanup Spillable map files eagerly for DiskBasedMap
Posted by GitBox <gi...@apache.org>.
nsivabalan commented on pull request #2069:
URL: https://github.com/apache/hudi/pull/2069#issuecomment-959140484
@rmahindra123 : Can you take one pass and see if this is valid anymore.
--
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: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] bvaradar commented on pull request #2069: [WIP][HUDI-945] Cleanup Spillable map files eagerly for DiskBasedMap
Posted by GitBox <gi...@apache.org>.
bvaradar commented on pull request #2069:
URL: https://github.com/apache/hudi/pull/2069#issuecomment-757120127
@prashantwason : Please go ahead and take over this PR to fit in 0.7 timeline.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] bvaradar commented on pull request #2069: [WIP][HUDI-945] Cleanup Spillable map files eagerly for DiskBasedMap
Posted by GitBox <gi...@apache.org>.
bvaradar commented on pull request #2069:
URL: https://github.com/apache/hudi/pull/2069#issuecomment-970052612
@nsivabalan @vinothchandar @rmahindra123 : This is not a blocker. There is only one case of concurrency when diskbased map is used in embedded timeline server mode. Even here, we have thread-safety at the higher layer (AbstractTableFileSystemView). So, it is ok to skip
--
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: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] nsivabalan commented on pull request #2069: [WIP][HUDI-945] Cleanup Spillable map files eagerly for DiskBasedMap
Posted by GitBox <gi...@apache.org>.
nsivabalan commented on pull request #2069:
URL: https://github.com/apache/hudi/pull/2069#issuecomment-959140484
@rmahindra123 : Can you take one pass and see if this is valid anymore.
--
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: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] hudi-bot removed a comment on pull request #2069: [WIP][HUDI-945] Cleanup Spillable map files eagerly for DiskBasedMap
Posted by GitBox <gi...@apache.org>.
hudi-bot removed a comment on pull request #2069:
URL: https://github.com/apache/hudi/pull/2069#issuecomment-914625846
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "abc97417e9acc86dc4fa8750f1b658b6bcb08473",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "abc97417e9acc86dc4fa8750f1b658b6bcb08473",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* abc97417e9acc86dc4fa8750f1b658b6bcb08473 UNKNOWN
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run travis` re-run the last Travis build
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
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: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] vinothchandar commented on pull request #2069: [WIP][HUDI-945] Cleanup Spillable map files eagerly for DiskBasedMap
Posted by GitBox <gi...@apache.org>.
vinothchandar commented on pull request #2069:
URL: https://github.com/apache/hudi/pull/2069#issuecomment-970256695
closing issue is already fixed. So closing the PR..
--
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: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] prashanthvg89 commented on pull request #2069: [WIP][HUDI-945] Cleanup Spillable map files eagerly for DiskBasedMap
Posted by GitBox <gi...@apache.org>.
prashanthvg89 commented on pull request #2069:
URL: https://github.com/apache/hudi/pull/2069#issuecomment-756969267
I saw this failure in Spark streaming job writing to Hudi. Is this still being worked on and is there an ETA for this?
Hudi version: 0.6.0
Spark version: 2.4.0
EMR version: 5.29.0
Hudi storage type: Copy-On-Write
Number of partitions specified using partition path field: 100
Number of Hudi records currently: 463 million
Caused by: org.apache.hudi.exception.HoodieIOException: Cannot instantiate an ExternalSpillableMap
at org.apache.hudi.io.HoodieMergeHandle.init(HoodieMergeHandle.java:155)
at org.apache.hudi.io.HoodieMergeHandle.<init>(HoodieMergeHandle.java:75)
at org.apache.hudi.table.action.commit.CommitActionExecutor.getUpdateHandle(CommitActionExecutor.java:101)
at org.apache.hudi.table.action.commit.CommitActionExecutor.handleUpdate(CommitActionExecutor.java:72)
at org.apache.hudi.table.action.commit.BaseCommitActionExecutor.handleUpsertPartition(BaseCommitActionExecutor.java:257)
... 30 more
Caused by: java.io.IOException: Too many open files
at java.io.UnixFileSystem.createFileExclusively(Native Method)
at java.io.File.createNewFile(File.java:1014)
at org.apache.hudi.common.util.collection.DiskBasedMap.initFile(DiskBasedMap.java:115)
at org.apache.hudi.common.util.collection.DiskBasedMap.<init>(DiskBasedMap.java:81)
at org.apache.hudi.common.util.collection.ExternalSpillableMap.<init>(ExternalSpillableMap.java:86)
at org.apache.hudi.io.HoodieMergeHandle.init(HoodieMergeHandle.java:152)
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] hudi-bot removed a comment on pull request #2069: [WIP][HUDI-945] Cleanup Spillable map files eagerly for DiskBasedMap
Posted by GitBox <gi...@apache.org>.
hudi-bot removed a comment on pull request #2069:
URL: https://github.com/apache/hudi/pull/2069#issuecomment-914625846
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "abc97417e9acc86dc4fa8750f1b658b6bcb08473",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "abc97417e9acc86dc4fa8750f1b658b6bcb08473",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* abc97417e9acc86dc4fa8750f1b658b6bcb08473 UNKNOWN
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run travis` re-run the last Travis build
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
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: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] prashanthvg89 commented on pull request #2069: [WIP][HUDI-945] Cleanup Spillable map files eagerly for DiskBasedMap
Posted by GitBox <gi...@apache.org>.
prashanthvg89 commented on pull request #2069:
URL: https://github.com/apache/hudi/pull/2069#issuecomment-756969267
I saw this failure in Spark streaming job writing to Hudi. Is this still being worked on and is there an ETA for this?
Hudi version: 0.6.0
Spark version: 2.4.0
EMR version: 5.29.0
Hudi storage type: Copy-On-Write
Number of partitions specified using partition path field: 100
Number of Hudi records currently: 463 million
Caused by: org.apache.hudi.exception.HoodieIOException: Cannot instantiate an ExternalSpillableMap
at org.apache.hudi.io.HoodieMergeHandle.init(HoodieMergeHandle.java:155)
at org.apache.hudi.io.HoodieMergeHandle.<init>(HoodieMergeHandle.java:75)
at org.apache.hudi.table.action.commit.CommitActionExecutor.getUpdateHandle(CommitActionExecutor.java:101)
at org.apache.hudi.table.action.commit.CommitActionExecutor.handleUpdate(CommitActionExecutor.java:72)
at org.apache.hudi.table.action.commit.BaseCommitActionExecutor.handleUpsertPartition(BaseCommitActionExecutor.java:257)
... 30 more
Caused by: java.io.IOException: Too many open files
at java.io.UnixFileSystem.createFileExclusively(Native Method)
at java.io.File.createNewFile(File.java:1014)
at org.apache.hudi.common.util.collection.DiskBasedMap.initFile(DiskBasedMap.java:115)
at org.apache.hudi.common.util.collection.DiskBasedMap.<init>(DiskBasedMap.java:81)
at org.apache.hudi.common.util.collection.ExternalSpillableMap.<init>(ExternalSpillableMap.java:86)
at org.apache.hudi.io.HoodieMergeHandle.init(HoodieMergeHandle.java:152)
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] hudi-bot commented on pull request #2069: [WIP][HUDI-945] Cleanup Spillable map files eagerly for DiskBasedMap
Posted by GitBox <gi...@apache.org>.
hudi-bot commented on pull request #2069:
URL: https://github.com/apache/hudi/pull/2069#issuecomment-961587487
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "abc97417e9acc86dc4fa8750f1b658b6bcb08473",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "abc97417e9acc86dc4fa8750f1b658b6bcb08473",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* abc97417e9acc86dc4fa8750f1b658b6bcb08473 UNKNOWN
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
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: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] vinothchandar commented on pull request #2069: [WIP][HUDI-945] Cleanup Spillable map files eagerly for DiskBasedMap
Posted by GitBox <gi...@apache.org>.
vinothchandar commented on pull request #2069:
URL: https://github.com/apache/hudi/pull/2069#issuecomment-914624932
@rmahindra123 can you take one pass at this and see if this still make sense. I know a lot of fixes have gone in since then.
--
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: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] hudi-bot removed a comment on pull request #2069: [WIP][HUDI-945] Cleanup Spillable map files eagerly for DiskBasedMap
Posted by GitBox <gi...@apache.org>.
hudi-bot removed a comment on pull request #2069:
URL: https://github.com/apache/hudi/pull/2069#issuecomment-914625846
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "abc97417e9acc86dc4fa8750f1b658b6bcb08473",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "abc97417e9acc86dc4fa8750f1b658b6bcb08473",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* abc97417e9acc86dc4fa8750f1b658b6bcb08473 UNKNOWN
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run travis` re-run the last Travis build
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
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: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] hudi-bot commented on pull request #2069: [WIP][HUDI-945] Cleanup Spillable map files eagerly for DiskBasedMap
Posted by GitBox <gi...@apache.org>.
hudi-bot commented on pull request #2069:
URL: https://github.com/apache/hudi/pull/2069#issuecomment-961587487
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "abc97417e9acc86dc4fa8750f1b658b6bcb08473",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "abc97417e9acc86dc4fa8750f1b658b6bcb08473",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* abc97417e9acc86dc4fa8750f1b658b6bcb08473 UNKNOWN
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
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: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] hudi-bot commented on pull request #2069: [WIP][HUDI-945] Cleanup Spillable map files eagerly for DiskBasedMap
Posted by GitBox <gi...@apache.org>.
hudi-bot commented on pull request #2069:
URL: https://github.com/apache/hudi/pull/2069#issuecomment-914625846
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "abc97417e9acc86dc4fa8750f1b658b6bcb08473",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "abc97417e9acc86dc4fa8750f1b658b6bcb08473",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* abc97417e9acc86dc4fa8750f1b658b6bcb08473 UNKNOWN
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run travis` re-run the last Travis build
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
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: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] bvaradar commented on pull request #2069: [WIP][HUDI-945] Cleanup Spillable map files eagerly for DiskBasedMap
Posted by GitBox <gi...@apache.org>.
bvaradar commented on pull request #2069:
URL: https://github.com/apache/hudi/pull/2069#issuecomment-694494713
@nbalajee : Since this is a critical part w.r.t merge performance and you are familiar with it, can you please take a look and review this. I will also be reviewing this. @sreeram26 is working on the PR fixing the tests but it would be great if you can give an initial review.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] vinothchandar closed pull request #2069: [WIP][HUDI-945] Cleanup Spillable map files eagerly for DiskBasedMap
Posted by GitBox <gi...@apache.org>.
vinothchandar closed pull request #2069:
URL: https://github.com/apache/hudi/pull/2069
--
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: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] bvaradar commented on pull request #2069: [WIP][HUDI-945] Cleanup Spillable map files eagerly for DiskBasedMap
Posted by GitBox <gi...@apache.org>.
bvaradar commented on pull request #2069:
URL: https://github.com/apache/hudi/pull/2069#issuecomment-757120127
@prashantwason : Please go ahead and take over this PR to fit in 0.7 timeline.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] nsivabalan commented on pull request #2069: [WIP][HUDI-945] Cleanup Spillable map files eagerly for DiskBasedMap
Posted by GitBox <gi...@apache.org>.
nsivabalan commented on pull request #2069:
URL: https://github.com/apache/hudi/pull/2069#issuecomment-959140484
--
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: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] hudi-bot commented on pull request #2069: [WIP][HUDI-945] Cleanup Spillable map files eagerly for DiskBasedMap
Posted by GitBox <gi...@apache.org>.
hudi-bot commented on pull request #2069:
URL: https://github.com/apache/hudi/pull/2069#issuecomment-961587487
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "abc97417e9acc86dc4fa8750f1b658b6bcb08473",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "abc97417e9acc86dc4fa8750f1b658b6bcb08473",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* abc97417e9acc86dc4fa8750f1b658b6bcb08473 UNKNOWN
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
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: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] rmahindra123 commented on pull request #2069: [WIP][HUDI-945] Cleanup Spillable map files eagerly for DiskBasedMap
Posted by GitBox <gi...@apache.org>.
rmahindra123 commented on pull request #2069:
URL: https://github.com/apache/hudi/pull/2069#issuecomment-963670536
There are 2 things in the PR:
1. Fix to ensure the Spullable Maps is closed in HoodieMergedLogRecordScanner. This is already landed in master.
2. Ensure that DiskMap can work with concurrency. Not sure DiskMap is used in multithreaded env, so we may not require concurrency support there.
--
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: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] nsivabalan commented on pull request #2069: [WIP][HUDI-945] Cleanup Spillable map files eagerly for DiskBasedMap
Posted by GitBox <gi...@apache.org>.
nsivabalan commented on pull request #2069:
URL: https://github.com/apache/hudi/pull/2069#issuecomment-964767074
@bvaradar : Can you chime in here please. Can you check Rajesh's comment above. Can you help us understand if we need to fix the concurrency on spillable map as such or should we fix concurrency in some higher layers. would appreciate if you can give some insights into the where exactly the concurrency is required, given we have fixed the close issue.
--
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: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] vinothchandar commented on pull request #2069: [WIP][HUDI-945] Cleanup Spillable map files eagerly for DiskBasedMap
Posted by GitBox <gi...@apache.org>.
vinothchandar commented on pull request #2069:
URL: https://github.com/apache/hudi/pull/2069#issuecomment-970255352
Thanks for confirming
--
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: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org