Skip to content
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

Dep 328 #132

Merged
merged 2 commits into from
Apr 11, 2023
Merged

Dep 328 #132

merged 2 commits into from
Apr 11, 2023

Conversation

marosmars
Copy link

Pull Request type

  • Bugfix
  • Feature
  • Refactoring (no functional changes, no api changes)
  • Build related changes (Please run ./gradlew generateLock saveLock to refresh dependencies)
  • WHOSUSING.md
  • Other (please describe):

NOTE: Please remember to run ./gradlew spotlessApply to fix any format violations.

Changes in this PR

Describe the new behavior from this PR, and why it's needed
Issue #

Alternatives considered

Describe alternative implementation you have considered

with external storage enabled

In case of a:
1. Long running task
2. With big output (externalized)
3. With output growing over time
4. Causing multiple externalize / internalize executions
5. ... such as a join task collecting outputs of all forked tasks
6. Lost some of its outputs when finally completed

This issue was caused by / because:
1. On an Nth execution of a task (such as described above)
2. The task internalized its intermediate output from external storage
3. The task was executed and it updated its output to current value in memory
4. The task tried to externalize the new version of its output
5. ... but while doing so, the outputPayload (last externalized value)
   was combined with outputData (current, in-memory value) in a way
   where output payload over-wrote the latest values
6. Thus, newly calculated outputs have been lost

Signed-off-by: Maros Marsalek <mmarsalek@frinx.io>
Signed-off-by: Maros Marsalek <mmarsalek@frinx.io>
@marosmars
Copy link
Author

Upstream: Netflix#3573

@marosmars marosmars requested a review from Jozefiel April 11, 2023 09:02
@marosmars marosmars merged commit 608f4d0 into master Apr 11, 2023
@marosmars marosmars deleted the DEP-328 branch April 11, 2023 16:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant