Hadoop segment index file rename#11194
Conversation
…x-file-rename-new
… potential race conditions (apache#11075)" (apache#11151)" This reverts commit 49a9c3f.
| * This class exists for testing purposes, see {@link JobHelperPowerMockTest}. Using the | ||
| * raw {@link FileSystem} class resulted in errors with java assist. | ||
| */ | ||
| public class FileSystemHelper |
There was a problem hiding this comment.
Is this class still needed?
|
I ran both the |
|
Some additional color- this was done to fix a race condition that was suspected to be something with
The intent was to fix a problem where sometimes, instead of |
Description
Segment index file zips are now renamed from the index task, rather than in the hadoop reduce job. When index file renaming
occurs in the hadoop reduce job, it was found that at times, the final index file would get deleted because of a race condition
between between job retries.
Manually tested this using the hadoop ingest tutorial: https://druid.apache.org/docs/latest/tutorials/tutorial-batch-hadoop.html
This PR has: