Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
93 commits
Select commit Hold shift + click to select a range
ce05bd0
correlation-id : req-id : retry-count
sumangala17 Sep 29, 2020
da6c025
adding IDs
sumangala17 Oct 6, 2020
e21f7c6
add op id
sumangala17 Oct 7, 2020
67c53a3
undo formatting
sumangala17 Oct 7, 2020
0e57f19
to pc
sumangala17 Oct 7, 2020
20c916d
tc -> ops
sumangala17 Oct 8, 2020
5e97c55
other IDs
sumangala17 Oct 8, 2020
2df54bf
debug
sumangala17 Oct 8, 2020
d3ba550
debug
sumangala17 Oct 9, 2020
70e7d0f
builds
sumangala17 Oct 9, 2020
3cb2ccb
primary req id
sumangala17 Oct 12, 2020
c3ddf82
readahead
sumangala17 Oct 12, 2020
2e882d4
dependent & client req id (readaheads)
sumangala17 Oct 13, 2020
eeae13e
liststatus ok
sumangala17 Oct 13, 2020
d4343fa
create overwrite case ok
sumangala17 Oct 13, 2020
0ef9a27
fixed some errors
sumangala17 Oct 15, 2020
107df06
tc changes
sumangala17 Oct 15, 2020
166f99c
fix errors
sumangala17 Oct 19, 2020
d762d86
test
sumangala17 Oct 20, 2020
d905c93
1 test draft
sumangala17 Oct 20, 2020
56acf80
test IDs
sumangala17 Oct 23, 2020
0a96fbe
clear()
sumangala17 Oct 23, 2020
ba8d988
minor edits
sumangala17 Oct 27, 2020
6be948e
minor edits
sumangala17 Oct 27, 2020
5af42f6
minor edits
sumangala17 Oct 27, 2020
077b5bd
minor edits
sumangala17 Oct 27, 2020
ee07bae
minor edits/whitespc
sumangala17 Oct 27, 2020
9457a04
merge conflict
sumangala17 Nov 2, 2020
1681138
pr changes + dummyTC
sumangala17 Nov 3, 2020
a475555
test ns() + remove extra changes
sumangala17 Nov 3, 2020
6442932
revert httpop formatting
sumangala17 Nov 3, 2020
ec92f25
revert httpop formatting
sumangala17 Nov 3, 2020
fecc00a
move tc init near usage
sumangala17 Nov 3, 2020
1cead53
minor change
sumangala17 Nov 4, 2020
5dbc783
pr changes
sumangala17 Nov 5, 2020
6409e3f
enum, opnames
sumangala17 Nov 5, 2020
d304123
enum
sumangala17 Nov 8, 2020
1e4f46d
format changes
sumangala17 Nov 12, 2020
15a22cd
test code (#3)
sumangala-patki Nov 12, 2020
e44c64c
other tests (main)
sumangala17 Nov 12, 2020
725c984
all tests
sumangala17 Nov 16, 2020
9b4f558
test tc for appendblob=true
sumangala17 Nov 17, 2020
858695b
clean up code
sumangala17 Nov 23, 2020
a9a4f42
simplify preq test
sumangala17 Nov 23, 2020
e18bab6
fix matchers error
sumangala17 Nov 25, 2020
1553cf6
merge conflicts
sumangala17 Nov 25, 2020
22c3a84
pr revw changes
sumangala17 Nov 25, 2020
3a3a40e
fix some test failures
sumangala17 Nov 26, 2020
472d090
code cleanup
sumangala17 Nov 27, 2020
21e2a86
fix sastoken matcher
sumangala17 Nov 27, 2020
8eaad73
access test, formatting
sumangala17 Nov 30, 2020
db8d895
format PR diff
sumangala17 Nov 30, 2020
0521969
more formatting
sumangala17 Nov 30, 2020
907fc1b
merge conflict
sumangala17 Dec 3, 2020
f3f91f4
merge conflict
sumangala17 Dec 3, 2020
18ea7f0
pr changes
sumangala17 Dec 3, 2020
af74d8e
stream id test
sumangala17 Dec 3, 2020
3a4eb41
documentation md
sumangala17 Dec 4, 2020
dee9ec6
Merge branch 'trunk' into HADOOP-17290
sumangala17 Dec 4, 2020
f90bbb3
fix yetus bugs
sumangala17 Dec 5, 2020
a5b64ed
fix randomread getTC failure
sumangala17 Dec 7, 2020
6a5b512
Merge branch 'trunk' into HADOOP-17290
sumangala17 Dec 24, 2020
d2bf54c
addressing pr comments
sumangala17 Dec 24, 2020
84c620c
merge conflicts
sumangala17 Feb 23, 2021
98e0fb0
new file conflicts
sumangala17 Feb 23, 2021
9f37b0f
Merge branch 'trunk' into HADOOP-17290
sumangala17 Mar 2, 2021
c8c1a04
Merge branch 'trunk' into HADOOP-17290
sumangala17 Mar 3, 2021
ec869fe
imports
sumangala17 Mar 3, 2021
fe3f041
Merge branch 'trunk' into HADOOP-17290
sumangala17 Mar 9, 2021
22e9a40
import
sumangala17 Mar 10, 2021
29f59f8
Merge branch 'trunk' into HADOOP-17290
sumangala17 Mar 10, 2021
a42e5b1
use write code for out
sumangala17 Mar 10, 2021
51e1a8f
handle invocation ex + write tests
sumangala17 Mar 11, 2021
4ed465f
checkstyle
sumangala17 Mar 11, 2021
0e97700
minor chkstyle
sumangala17 Mar 11, 2021
1e529f4
Merge branch 'trunk' into HADOOP-17290
sumangala17 Mar 15, 2021
1b8f589
fix merge conflict
sumangala17 Apr 11, 2021
302fc06
Merge branch 'trunk' into HADOOP-17290
sumangala17 Apr 15, 2021
3447977
lease rm acquire op
sumangala17 Apr 15, 2021
979f2b5
Merge branch 'trunk' into HADOOP-17290
sumangala17 Apr 26, 2021
c9217d9
part of merge fix
sumangala17 Apr 26, 2021
fd63121
add active lease fn tests
sumangala17 Apr 26, 2021
78a15dc
Merge branch 'trunk' into HADOOP-17290
sumangala17 Apr 26, 2021
d52ee79
javadoc
sumangala17 Apr 26, 2021
6966924
Merge branch 'trunk' into HADOOP-17290
sumangala17 May 30, 2021
d15d2cf
merge
sumangala17 May 30, 2021
d0b33c1
typo
sumangala17 May 30, 2021
6250d04
fix merge conflict
sumangala17 Jun 23, 2021
1567e3e
address review comments
sumangala17 Jun 24, 2021
ecee180
revw comments
sumangala17 Jun 28, 2021
b69d9e2
correction
sumangala17 Jun 30, 2021
8cf0fe3
checkstyle
sumangala17 Jul 1, 2021
0dc83f4
set header in tc
sumangala17 Jul 2, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,15 @@
import org.apache.hadoop.fs.azurebfs.services.ExponentialRetryPolicy;
import org.apache.hadoop.fs.azurebfs.services.KeyProvider;
import org.apache.hadoop.fs.azurebfs.services.SimpleKeyProvider;
import org.apache.hadoop.fs.azurebfs.utils.TracingHeaderFormat;
import org.apache.hadoop.security.ssl.DelegatingSSLSocketFactory;
import org.apache.hadoop.security.ProviderUtils;
import org.apache.hadoop.util.ReflectionUtils;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import static org.apache.hadoop.fs.azurebfs.constants.AbfsHttpConstants.EMPTY_STRING;
import static org.apache.hadoop.fs.azurebfs.constants.ConfigurationKeys.*;
import static org.apache.hadoop.fs.azurebfs.constants.FileSystemConfigurations.*;

Expand Down Expand Up @@ -264,6 +266,10 @@ public class AbfsConfiguration{
DefaultValue = DEFAULT_VALUE_UNKNOWN)
private String clusterType;

@StringConfigurationValidatorAnnotation(ConfigurationKey = FS_AZURE_CLIENT_CORRELATIONID,
DefaultValue = EMPTY_STRING)
private String clientCorrelationId;

@BooleanConfigurationValidatorAnnotation(ConfigurationKey = FS_AZURE_ENABLE_DELEGATION_TOKEN,
DefaultValue = DEFAULT_ENABLE_DELEGATION_TOKEN)
private boolean enableDelegationToken;
Expand Down Expand Up @@ -332,6 +338,14 @@ public String getAccountName() {
return accountName;
}

/**
* Gets client correlation ID provided in config.
* @return Client Correlation ID config
*/
public String getClientCorrelationId() {
return clientCorrelationId;
}

/**
* Appends an account name to a configuration key yielding the
* account-specific form.
Expand Down Expand Up @@ -722,6 +736,14 @@ public DelegatingSSLSocketFactory.SSLChannelMode getPreferredSSLFactoryOption()
return getEnum(FS_AZURE_SSL_CHANNEL_MODE_KEY, DEFAULT_FS_AZURE_SSL_CHANNEL_MODE);
}

/**
* Enum config to allow user to pick format of x-ms-client-request-id header
* @return tracingContextFormat config if valid, else default ALL_ID_FORMAT
*/
public TracingHeaderFormat getTracingHeaderFormat() {
return getEnum(FS_AZURE_TRACINGHEADER_FORMAT, TracingHeaderFormat.ALL_ID_FORMAT);
}

public AuthType getAuthType(String accountName) {
return getEnum(FS_AZURE_ACCOUNT_AUTH_TYPE_PROPERTY_NAME, AuthType.SharedKey);
}
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,12 @@ public final class ConfigurationKeys {
* Default value of this config is true. **/
public static final String FS_AZURE_DISABLE_OUTPUTSTREAM_FLUSH = "fs.azure.disable.outputstream.flush";
public static final String FS_AZURE_USER_AGENT_PREFIX_KEY = "fs.azure.user.agent.prefix";
/**
* The client correlation ID provided over config that will be added to
* x-ms-client-request-Id header. Defaults to empty string if the length and
* character constraints are not satisfied. **/
public static final String FS_AZURE_CLIENT_CORRELATIONID = "fs.azure.client.correlationid";
public static final String FS_AZURE_TRACINGHEADER_FORMAT = "fs.azure.tracingheader.format";
public static final String FS_AZURE_CLUSTER_NAME = "fs.azure.cluster.name";
public static final String FS_AZURE_CLUSTER_TYPE = "fs.azure.cluster.type";
public static final String FS_AZURE_SSL_CHANNEL_MODE_KEY = "fs.azure.ssl.channel.mode";
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"), you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package org.apache.hadoop.fs.azurebfs.constants;

public enum FSOperationType {
ACCESS("AS"),
APPEND("AP"),
BREAK_LEASE("BL"),
CREATE("CR"),
CREATE_FILESYSTEM("CF"),
CREATE_NON_RECURSIVE("CN"),
DELETE("DL"),
GET_ACL_STATUS("GA"),
GET_ATTR("GR"),
GET_FILESTATUS("GF"),
LISTSTATUS("LS"),
MKDIR("MK"),
MODIFY_ACL("MA"),
OPEN("OP"),
HAS_PATH_CAPABILITY("PC"),
SET_PERMISSION("SP"),
READ("RE"),
RELEASE_LEASE("RL"),
REMOVE_ACL("RA"),
REMOVE_ACL_ENTRIES("RT"),
REMOVE_DEFAULT_ACL("RD"),
RENAME("RN"),
SET_ATTR("SR"),
SET_OWNER("SO"),
SET_ACL("SA"),
TEST_OP("TS"),
WRITE("WR");

private final String opCode;

FSOperationType(String opCode) {
this.opCode = opCode;
}

@Override
public String toString() {
return opCode;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ public final class FileSystemConfigurations {
public static final boolean DEFAULT_DELETE_CONSIDERED_IDEMPOTENT = true;
public static final int DEFAULT_CLOCK_SKEW_WITH_SERVER_IN_MS = 5 * 60 * 1000; // 5 mins

public static final int STREAM_ID_LEN = 12;
public static final boolean DEFAULT_ENABLE_ABFS_LIST_ITERATOR = true;

private FileSystemConfigurations() {}
Expand Down
Loading