Commit 51c2291
committed
HADOOP-17318. Support concurrent S3A jobs with conflicting app attempt IDs
* ITests for the uuid generate/require logic
* Pendingset and _SUCCESS files add jobId field
* And on job commit, the jobID of pendingset files are validated
The validation will detect and fail if a job with a different ID
has got a .pendingset file into the directory used by the current
job.
The _SUCCESS file is to aid auditing/testing
Change-Id: I07a6a2d00ac5598c8f961aebbc9c9fdbb70ab51a
commit f2128bd1bf94de36ee1e3ed542de0a0e839307e3
Author: Steve Loughran <[email protected]>
Date: Tue Oct 27 17:05:12 2020 +0000
HADOOP-17318. Support concurrent S3A jobs with conflicting app attempt IDs.
Have a job UUID everywhere, which for spark must be passed in or
self-generated; for MR it will be the yarn app attempt.
The task attempts are still used under this where task work needs
to be differentiated.
Examples
* temp dir for staging
* magic path for magic committers
* HDFS dir for staging summary info
Change-Id: I17c641280d916ea1ad4ce4407215d07e488954af
commit 0ae79187d6c821eef13872e4c384948729b9c72d
Author: Steve Loughran <[email protected]>
Date: Tue Oct 20 21:36:36 2020 +0100
HADOOP-17318. Support concurrent S3A commit jobs slightly better.
All S3A committers can have purging pending deletes on job commit
disabled. (new option; old one deprecated).
More logging of what is going on with individual file load/upload/commit
(including with duration)
Test of concurrent jobs designed to trigger the specific failure conditions
of Staging (job2 commit after task1 commit) and Magic (job2 commit before
task2 commit)
Change-Id: If560c7541c287dc6d4c2f1af395c93b838495139
Change-Id: I2374b904bfb65399e08084e6c2b78237ec1603cd1 parent fc961b6 commit 51c2291
File tree
30 files changed
+1340
-298
lines changed- hadoop-common-project/hadoop-common/src/main/resources
- hadoop-tools/hadoop-aws/src
- main/java/org/apache/hadoop/fs/s3a
- commit
- files
- magic
- staging
- site/markdown/tools/hadoop-aws
- test/java/org/apache/hadoop/fs/s3a
- commit
- integration
- magic
- staging
- integration
- terasort
- scale
30 files changed
+1340
-298
lines changedLines changed: 3 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1925 | 1925 | | |
1926 | 1926 | | |
1927 | 1927 | | |
1928 | | - | |
| 1928 | + | |
1929 | 1929 | | |
1930 | 1930 | | |
1931 | | - | |
| 1931 | + | |
1932 | 1932 | | |
1933 | 1933 | | |
1934 | | - | |
1935 | | - | |
1936 | | - | |
1937 | | - | |
1938 | | - | |
1939 | | - | |
1940 | | - | |
1941 | | - | |
| 1934 | + | |
1942 | 1935 | | |
1943 | 1936 | | |
1944 | 1937 | | |
| |||
Lines changed: 6 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
180 | 180 | | |
181 | 181 | | |
182 | 182 | | |
| 183 | + | |
| 184 | + | |
183 | 185 | | |
184 | 186 | | |
185 | 187 | | |
| |||
314 | 316 | | |
315 | 317 | | |
316 | 318 | | |
317 | | - | |
318 | | - | |
319 | 319 | | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
320 | 323 | | |
321 | 324 | | |
322 | 325 | | |
| |||
4581 | 4584 | | |
4582 | 4585 | | |
4583 | 4586 | | |
4584 | | - | |
| 4587 | + | |
4585 | 4588 | | |
4586 | 4589 | | |
4587 | 4590 | | |
| |||
Lines changed: 7 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
| 134 | + | |
| 135 | + | |
134 | 136 | | |
135 | 137 | | |
136 | 138 | | |
| |||
323 | 325 | | |
324 | 326 | | |
325 | 327 | | |
326 | | - | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
327 | 331 | | |
328 | 332 | | |
329 | 333 | | |
| |||
585 | 589 | | |
586 | 590 | | |
587 | 591 | | |
588 | | - | |
| 592 | + | |
| 593 | + | |
589 | 594 | | |
590 | 595 | | |
591 | 596 | | |
| |||
0 commit comments