Commit 9db61ad
committed
HADOOP-16202. Enhanced openFile(): hadoop-aws changes. (#2584/3)
S3A input stream support for the few fs.option.openfile settings.
As well as supporting the read policy option and values,
if the file length is declared in fs.option.openfile.length
then no HEAD request will be issued when opening a file.
This can cut a few tens of milliseconds off the operation.
The patch adds a new openfile parameter/FS configuration option
fs.s3a.input.async.drain.threshold (default: 16000).
It declares the number of bytes remaining in the http input stream
above which any operation to read and discard the rest of the stream,
"draining", is executed asynchronously.
This asynchronous draining offers some performance benefit on seek-heavy
file IO.
Contributed by Steve Loughran.
Change-Id: I9b0626bbe635e9fd97ac0f463f5e7167e0111e391 parent e123de9 commit 9db61ad
38 files changed
Lines changed: 2065 additions & 375 deletions
File tree
- hadoop-tools/hadoop-aws
- dev-support
- src
- main/java/org/apache/hadoop/fs/s3a
- commit
- files
- impl
- s3guard
- select
- statistics
- impl
- site/markdown/tools/hadoop-aws
- test/java/org/apache/hadoop/fs
- contract/s3a
- s3a
- impl
- performance
- scale
- select
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
31 | 36 | | |
32 | 37 | | |
33 | 38 | | |
| |||
Lines changed: 39 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| |||
602 | 603 | | |
603 | 604 | | |
604 | 605 | | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
605 | 621 | | |
606 | 622 | | |
607 | 623 | | |
608 | 624 | | |
609 | 625 | | |
610 | | - | |
611 | 626 | | |
612 | 627 | | |
613 | 628 | | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
614 | 640 | | |
615 | 641 | | |
| 642 | + | |
| 643 | + | |
616 | 644 | | |
617 | 645 | | |
618 | | - | |
619 | 646 | | |
620 | 647 | | |
621 | 648 | | |
622 | 649 | | |
623 | 650 | | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
624 | 654 | | |
625 | | - | |
626 | | - | |
| 655 | + | |
| 656 | + | |
627 | 657 | | |
628 | 658 | | |
629 | 659 | | |
630 | 660 | | |
631 | 661 | | |
632 | 662 | | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
633 | 666 | | |
634 | | - | |
635 | | - | |
| 667 | + | |
| 668 | + | |
636 | 669 | | |
637 | 670 | | |
638 | 671 | | |
| |||
Lines changed: 28 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
34 | 35 | | |
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
| 42 | + | |
| 43 | + | |
41 | 44 | | |
42 | 45 | | |
43 | 46 | | |
| |||
122 | 125 | | |
123 | 126 | | |
124 | 127 | | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
125 | 153 | | |
126 | 154 | | |
127 | 155 | | |
| |||
0 commit comments