-
Notifications
You must be signed in to change notification settings - Fork 9.2k
HADOOP-18146: ABFS: Added changes for expect hundred continue header #4039
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
Changes from 30 commits
e2ffb8c
d110408
a29faa8
dacfde0
c14f458
7e40f07
ef67598
93a77a7
9b43316
899b40b
2af317d
cc9fcdb
9fc9c99
56eda26
091f1d4
3709619
fe33f93
94397c7
9c8f7d0
5f26061
f2ffb23
0f18d94
83fbd8c
58c1123
aab3128
d13f8bd
478021a
9fbb4de
7c43202
75a3332
3fc18b9
aaca1c1
135e04f
eaf9dfc
2a1834f
3f37058
443e263
e694264
7961d08
05df41c
457fda0
f2e6f52
fd006bd
baf9ec7
fe8deea
cafd409
f17c15a
61138e9
ac3e973
36ec260
8283ef2
9611999
93003b2
7899d1c
5398f2a
796b774
115b0b6
db89c78
0fb9067
f3e2e14
51bdece
83f14fb
c3268dc
675687c
99a9377
e210b04
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -34,19 +34,21 @@ public enum Mode { | |
| private final Mode mode; | ||
| private final boolean isAppendBlob; | ||
| private final String leaseId; | ||
| private boolean isExpectHeaderEnabled; | ||
|
|
||
| public AppendRequestParameters(final long position, | ||
| final int offset, | ||
| final int length, | ||
| final Mode mode, | ||
| final boolean isAppendBlob, | ||
| final String leaseId) { | ||
| final String leaseId, boolean isExpectHeaderEnabled) { | ||
anmolanmol1234 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| this.position = position; | ||
| this.offset = offset; | ||
| this.length = length; | ||
| this.mode = mode; | ||
| this.isAppendBlob = isAppendBlob; | ||
| this.leaseId = leaseId; | ||
| this.isExpectHeaderEnabled = isExpectHeaderEnabled; | ||
| } | ||
|
|
||
| public long getPosition() { | ||
|
|
@@ -72,4 +74,12 @@ public boolean isAppendBlob() { | |
| public String getLeaseId() { | ||
| return this.leaseId; | ||
| } | ||
|
|
||
| public boolean getIsExpectHeaderEnabled() { | ||
|
||
| return isExpectHeaderEnabled; | ||
| } | ||
|
|
||
| public void setExpectHeaderEnabled(boolean expectHeaderEnabled) { | ||
| isExpectHeaderEnabled = expectHeaderEnabled; | ||
| } | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -320,6 +320,8 @@ public void sendRequest(byte[] buffer, int offset, int length) throws IOExceptio | |
| // accompanying statusCode | ||
| this.bytesSent = length; | ||
| outputStream.write(buffer, offset, length); | ||
| } catch (IOException e) { | ||
| this.bytesSent = length; | ||
anmolanmol1234 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| } finally { | ||
| if (this.isTraceEnabled) { | ||
| this.sendRequestTimeMs = elapsedTimeMs(startTime); | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.