-
Notifications
You must be signed in to change notification settings - Fork 9.1k
HADOOP-15566 Opentelemetry changes using java agent #3445
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
Open
kiran-maturi
wants to merge
673
commits into
apache:trunk
Choose a base branch
from
kiran-maturi:HADOOP-15566-javaagent
base: trunk
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
673 commits
Select commit
Hold shift + click to select a range
047144d
YARN-10813. Set default capacity of root for node labels. Contributed…
szilard-nemeth 36a4699
HADOOP-17760. Delete hadoop.ssl.enabled and dfs.https.enable from doc…
tasanuma 4cd5a69
HDFS-13671. Namenode deletes large dir slowly caused by FoldedTreeSet…
hust-hhb 6c6afec
HDFS-16074. Remove an expensive debug string concatenation (#3107)
jojochuang 42f80ed
HADOOP-17724. Add Dockerfile for Debian 10 (#3038)
GauthamBanasandra adc4360
HDFS-15842. HDFS mover to emit metrics. (#2738)
LeonGao91 d0f7bb6
HDFS-16078. Remove unused parameters for DatanodeManager.handleLifeli…
tomscut 1aed112
HDFS-16061. DFTestUtil.waitReplication can produce false positives (#…
amahussein e643684
HDFS-16080. RBF: Invoking method in all locations should break the lo…
virajjasani d9f8868
HDFS-16079. Improve the block state change log (#3120). Contributed b…
tomscut 8b42eb2
HDFS-16075. Use empty array constants present in StorageType and Data…
virajjasani 9786414
MAPREDUCE-7354. Use empty array constant present in TaskCompletionEve…
virajjasani e2e5fa9
HDFS-14575. LeaseRenewer#daemon threads leak in DFSClient. Contribute…
Hexiaoqiao f9996bb
HDFS-16082. Atomic operations on exceptionsSinceLastBalance and faile…
virajjasani b0cb50c
YARN-10826. [UI2] Upgrade Node.js to v12.22.1. (#3128)
iwasakims 7465205
HADOOP-17766. CI for Debian 10 (#3129)
GauthamBanasandra 3129f61
HDFS-16076. Avoid using slow DataNodes for reading by sorting locatio…
tomscut 64e4dfb
HDFS-16085. Move the getPermissionChecker out of the read lock (#3134…
tomscut fb0a20b
HADOOP-17769. Upgrade JUnit to 4.13.2. fixes TestBlockRecovery (#3130…
amahussein 38d276f
HADOOP-17771. S3AFS creation fails "Unable to find a region via the r…
steveloughran 8d99d3a
HDFS-16044. Fix getListing call getLocatedBlocks even source is a dir…
Hexiaoqiao 1d42abd
YARN-10780. Optimise retrieval of configured node labels in CS queues…
pbacsko 6a67b4a
Revert "HDFS-16044. Fix getListing call getLocatedBlocks even source …
Hexiaoqiao b106f39
HADOOP-17764. S3AInputStream read does not re-open the input stream o…
majdyz 9b167ef
YARN-10824. Title not set for JHS and NM webpages. Contributed by Bil…
jbrennan333 ee5d869
HDFS-13916. Distcp SnapshotDiff to support WebHDFS. Contributed by Xu…
iwasakims 4bdaa8e
YARN-10820. Make GetClusterNodesRequestPBImpl thread safe. Contribute…
PrabhuJoseph 08621d5
YARN-10834. Intra-queue preemption: apps that don't use defined custo…
jbrennan333 a05a50f
HDFS-16092. Avoid creating LayoutFlags redundant objects (#3150)
virajjasani 13584ca
HDFS-16089. Add metric EcReconstructionValidateTimeMillis for Striped…
tomscut de37111
HADOOP-17777. Update clover-maven-plugin version from 3.3.0 to 4.4.1 …
jiwq e7e9b57
HDFS-16096. Delete useless method DirectoryWithQuotaFeature#setQuota …
zhuxiangyi 8589d78
HADOOP-17331. [JDK 16] TestDNS fails (#2884)
aajisaka 877a934
HDFS-16090. Fine grained lock for datanodeNetworkCounts (#3148)
virajjasani f87ca27
HADOOP-17778. CI for Centos 8 (#3151)
GauthamBanasandra 9dd3d09
HDFS-16086. Add volume information to datanode log for tracing (#3136)
tomscut 19bb247
HDFS-16104. Remove unused parameter and fix java doc for DiskBalancer…
tomscut a735d9d
HDFS-16099. Make bpServiceToActive to be volatile. (#3159)
zhangshuyan0 792188a
HDFS-16106. Fix flaky unit test TestDFSShell (#3168)
tomscut ff4561b
HADOOP-17774. S3A bytesRead FS statistic showing twice the correct va…
mehakmeet e0fbb44
HADOOP-17290. ABFS: Add Identifiers to Client Request Header (#2520)
sumangala-patki b8286c7
HDFS-16109. Fix flaky some unit tests since they offen timeout (#3172)
tomscut 90318bd
HDFS-16108. Fix incorrect log placeholders used in JournalNodeSyncer …
virajjasani 8395a88
HADOOP-17250 Lot of short reads can be merged with readahead. (#3110)
mukund-thakur 950c721
HADOOP-17402. Add GCS config to the core-site (#2638)
ravwojdyla c651a30
HADOOP-17749. Remove lock contention in SelectorPool of SocketIOWithT…
liangxs 1c67bde
HDFS-16110. Remove unused method reportChecksumFailure in DFSClient (…
tomscut 63068eb
HDFS-16101. Remove unuse variable and IoException in ProvidedStorageM…
ayushtkn 9ee6e3a
HADOOP-17775. Remove JavaScript package from Docker environment. (#3137)
iwasakims 8154c9e
MAPREDUCE-7351 - CleanupJob during handle of SIGTERM signal (#3176)
shubhamod 7581895
HDFS-16114. the balancer parameters print error (#3179)
JiaguodongF 0a95820
MAPREDUCE-7353: Mapreduce job fails when NM is stopped. Contributed b…
erichadoop dcb36d3
HDFS-16088. Standby NameNode process getLiveDatanodeStorageReport req…
tomscut e002c41
HADOOP-17788. Replace IOUtils#closeQuietly usages by Hadoop's own uti…
virajjasani 37bbb37
HDFS-16121. Iterative snapshot diff report can generate duplicate rec…
bshashikant e68f3df
HDFS-15796. ConcurrentModificationException error happens on NameNode…
9eecd03
HADOOP-17794. Add a sample configuration to use ZKDelegationTokenSecr…
aajisaka c8f5788
HADOOP-17793. Better token validation (#3189)
artem-smotrakov a49ed1f
HDFS-16122. Fix DistCpContext#toString() (#3191). Contributed by tom…
tomscut 0b57ef9
HADOOP-12665. Document hadoop.security.token.service.use_ip. (#3187)
aajisaka ebfef3b
HADOOP-17770 WASB : Support disabling buffered reads in positional re…
anoopsjohn 0e77ce3
MAPREDUCE-7356. Remove some duplicate dependencies from mapreduce-cli…
virajjasani 78efa96
HDFS-15785. Datanode to support using DNS to resolve nameservices to …
LeonGao91 97ccfef
HADOOP-17028. ViewFS should initialize mounted target filesystems laz…
abhishekdas99 8394fe7
HADOOP-17672.Remove an invalid comment content in the FileContext cla…
jianghuazhu e9e2e07
HADOOP-17795. Provide fallbacks for callqueue.impl and scheduler.impl…
virajjasani 4b3fcd2
YARN-10456. RM PartitionQueueMetrics records are named QueueMetrics i…
jbrennan333 09efd6a
HDFS-15650. Make the socket timeout for computing checksum of striped…
crossfire e30e51f
HADOOP-16272. Upgrade HikariCP to 4.0.3 (#3204)
virajjasani 5ebcefb
HADOOP-17803. Remove WARN logging from LoggingAuditor when executing …
mehakmeet a02578f
HADOOP-17801. No error message reported when bucket doesn't exist in …
mehakmeet 1338051
HDFS-16127. Improper pipeline close recovery causes a permanent write…
kihwal d0c0f6a
HDFS-16067. Support Append API in NNThroughputBenchmark. Contributed …
Hexiaoqiao d66302b
YARN-10855. yarn logs cli fails to retrieve logs if any TFile is corr…
zhuqi-lucas f2e09c4
YARN-10858. [UI2] YARN-10826 breaks Queue view. (#3213)
iwasakims adbe2f1
HADOOP-16290. Enable RpcMetrics units to be configurable (#3198)
virajjasani 8fd6d47
HDFS-16087. Fix stuck issue in rbfbalance tool (#3141). Contributed …
lipppppp a4d547b
YARN-10630. [UI2] Ambiguous queue name resolution (#3214)
9uapaw b944ae2
YARN-10860. Make max container per heartbeat configs refreshable. Con…
zhuqi-lucas e24fe6c
HADOOP-17796. Upgrade jetty version to 9.4.43 (#3208)
prasad-acit d914c1e
YARN-10657. We should make max application per queue to support node …
zhuqi-lucas e31e4e4
HADOOP-17813. Checkstyle - Allow line length: 100
virajjasani d2ce8cb
HADOOP-17808. ipc.Client to set interrupt flag after catching Interru…
virajjasani 0e55933
YARN-10829. Support getApplications API in FederationClientIntercepto…
akshatb1 e7de0ca
HADOOP-17458. S3A to treat "SdkClientException: Data read has a diffe…
bogthe 727d8e6
YARN-10833. Set the X-FRAME-OPTIONS header for the default contexts. …
brumi1024 72a9c64
HADOOP-17317. [JDK 11] Upgrade dnsjava to remove illegal access warni…
aajisaka 3cbee6e
Addendum HADOOP-17770 WASB : Support disabling buffered reads in posi…
anoopsjohn 6e4d4f4
HDFS-12920. HDFS default value change (with adding time unit) breaks …
aajisaka e76e46c
[UI2] Bump http-proxy to 1.18.1 (#2891)
dependabot[bot] 386072f
HDFS-16131. Show storage type for failed volumes on namenode web (#32…
tomscut b3c30e9
HDFS-16140. TestBootstrapAliasmap fails by BindException. (#3229)
aajisaka fa83a9d
HADOOP-17807. Use separate src dir for platform builds (#3210)
GauthamBanasandra fe1ba90
HDFS-16139. Update BPServiceActor Scheduler's nextBlockReportTime ato…
virajjasani 6f1504b
HADOOP-13887. Support S3 client side encryption (S3-CSE) using AWS-SD…
mehakmeet 5a34b3d
YARN-6221. Entities missing from ATS when summary log file info got r…
szilard-nemeth f6085a8
HDFS-16119. start balancer with parameters -hotBlockTimeInterval xxx …
JiaguodongF 4ba3561
HADOOP-17765. ABFS: Use Unique File Paths in Tests. (#3153)
sumangala-patki c1908a6
HDFS-16111. Add a configuration to RoundRobinVolumeChoosingPolicy to …
zhihaixu2012 0d9a15b
YARN-9551. TestTimelineClientV2Impl.testSyncCall fails intermittent (…
9uapaw 584a531
HDFS-16145. CopyListing fails with FNF exception with snapshot diff. …
bshashikant 66ef9d6
HDFS-16137.Improve the comments related to FairCallQueue#queues. (#3226)
jianghuazhu ac7f873
YARN-10727. ParentQueue does not validate the queue on removal. Contr…
szilard-nemeth d360089
HDFS-16144. Revert HDFS-15372 (Files in snapshots no longer see attri…
4d4da37
HADOOP-17817. S3A to raise IOE if both S3-CSE and S3Guard enabled (#3…
mehakmeet 60cf4ba
YARN-10790. CS Flexible AQC: Add separate parent and leaf template pr…
szilard-nemeth 6a6b999
YARN-6272. TestAMRMClient#testAMRMClientWithContainerResourceChange f…
szilard-nemeth 31543fe
HADOOP-17814. Provide fallbacks for identity/cost providers and backo…
virajjasani 4d1b6fd
HADOOP-17811: ABFS ExponentialRetryPolicy doesn't pick up configurati…
brianloss e17bd05
HADOOP-17819. Add extensions to ProtobufRpcEngine RequestHeaderProto.…
hchaverri 809ff97
HDFS-15175. Multiple CloseOp shared block instance causes the standby…
Hexiaoqiao 20c1e20
HDFS-15936.Solve SocketTimeoutException#sendPacket() does not record …
jianghuazhu c3e8039
YARN-10841. Fix token reset synchronization for UAM response token. (…
minni31 8095b97
YARN-10628. Add node usage metrics in SLS. Contributed by Vadaga Anan…
szilard-nemeth e903420
YARN-10663. Add runningApps stats in SLS. Contributed by Vadaga Anany…
szilard-nemeth fab24cc
YARN-10869. CS considers only the default maximum-allocation-mb/vcore…
brumi1024 a9603e2
YARN-10856. Prevent ATS v2 health check REST API call if the ATS serv…
brumi1024 7176927
HADOOP-17815. Run CI for Centos 7 (#3231)
GauthamBanasandra 87457da
YARN-10814. Fallback to RandomSecretProvider if the secret file is em…
tomicooler d879a39
HDFS-14529. SetTimes to throw FileNotFoundException if inode is not f…
jojochuang 84076ce
HADOOP-17139 Re-enable optimized copyFromLocal implementation in S3AF…
bogthe de59432
HADOOP-17812. NPE in S3AInputStream read() after failure to reconnect…
wbo4958 2abb688
MAPREDUCE-7258. HistoryServerRest.html#Task_Counters_API, modify the …
cjn082030 e64e02b
YARN-10854. Support marking inactive node as untracked without config…
zhuqi-lucas 73192a2
HADOOP-17628. Distcp contract test is really slow with ABFS and S3A; …
steveloughran 6f9bced
HADOOP-17822. fs.s3a.acl.default not working after S3A Audit feature …
steveloughran b12f3ec
HADOOP-17612. Upgrade Zookeeper to 3.6.3 and Curator to 5.2.0 (#3241)
virajjasani b04b76b
HDFS-16149.Improve the parameter annotation in FairCallQueue#priority…
jianghuazhu 5101205
YARN-10874. Refactor NM ContainerLaunch#getEnvDependencies's unit tes…
tomicooler 1d9f6c0
HDFS-16146. All three replicas are lost due to not adding a new DataN…
zhangshuyan0 a9c2aab
YARN-10355. Refactor NM ContainerLaunch.java#orderEnvByDependencies
tomicooler 9c2df41
YARN-10849 Clarify testcase documentation for TestServiceAM#testConta…
ecf9713
HADOOP-17618. ABFS: Partially obfuscate SAS object IDs in Logs (#2845)
sumangala-patki e9960b8
YARN-10878. move TestNMSimulator off com.google (#3268)
steveloughran f2b3110
HADOOP-17823. S3A S3Guard tests to skip if S3-CSE are enabled (#3263)
mehakmeet ec73be3
HADOOP-17816. Run optional CI for changes in C (#3238)
GauthamBanasandra c06b3e9
HADOOP-17808. Avoid excessive logging for interruption (ADDENDUM) (#3…
virajjasani 5c3b4a1
HDFS-16153. Avoid evaluation of LOG.debug statement in QuorumJournalM…
wzhallright 1d9587f
HADOOP-17837: Add unresolved endpoint value to UnknownHostException (…
bbeaudreault 4527d2f
HDFS-16154. TestMiniJournalCluster failing intermittently because of …
wzhallright 347053d
HADOOP-17837: Add unresolved endpoint value to UnknownHostException (…
bbeaudreault f254f96
HADOOP-17787. Refactor fetching of credentials in Jenkins (#3167)
GauthamBanasandra 337ba17
HADOOP-17835. Use CuratorCache implementation instead of PathChildren…
virajjasani 3717ff3
Fix potential heap buffer overflow in hdfs.c. Contributed by Igor Che…
aajisaka 526f946
HADOOP-17370. Upgrade commons-compress to 1.21 (#3274)
aajisaka 3941cd8
HDFS-16151. Improve the parameter comments related to ProtobufRpcEngi…
jianghuazhu e43c743
HADOOP-17841. Remove ListenerHandle from Hadoop registry (#3278)
virajjasani 50c409c
HDFS-15976. Make mkdtemp cross platform (#2908)
GauthamBanasandra bc2e34e
opentelemetry using javaagent
kiran-maturi ae8302f
HADOOP-17844. Upgrade JSON smart to 2.4.7 (#3299)
prasad-acit b5e787f
HADOOP-17799. Improve the GitHub pull request template (#3277)
aajisaka 8faef36
HADOOP-17834. Bump aliyun-sdk-oss to 3.13.0 (#3261)
smengcl afb0797
added opentelemetry trace options for hdfs
kiran-maturi cb999d9
HDFS-16163. Avoid locking entire blockPinningFailures map (#3296)
virajjasani 9cb3833
HDFS-16171. De-flake testDecommissionStatus (#3280)
virajjasani 57a17d8
HADOOP-17825. Add BuiltInGzipCompressor (#3250)
viirya 26bf2c5
HDFS-16162.Improve DFSUtil#checkProtectedDescendants() related parame…
jianghuazhu 1983d6a
YARN-10873: Account for scheduled AM containers before deactivating n…
srinivasst 72f756c
HDFS-16174. Refactor TempFile and TempDir in libhdfs++ (#3303)
GauthamBanasandra 3d7ccf5
HADOOP-17836. Improve logging on ABFS error reporting (#3281)
steveloughran 2bc7d0b
HADOOP-17682. ABFS: Support FileStatus input to OpenFileWithOptions()…
sumangala-patki f5cf2f3
HDFS-16160. Improve the parameter annotation in DatanodeProtocol#send…
tomscut 8a302d3
HDFS-16177. Bug fix for Util#receiveFile (#3310)
tomscut 9c59c12
HDFS-16178. Make recursive rmdir in libhdfs++ cross platform (#3311)
GauthamBanasandra 55bf7e9
HDFS-16180.FsVolumeImpl.nextBlock should consider that the block met…
Neilxzn 0a7f46c
YARN-10838. Implement an optimised version of Configuration getPropsW…
szilard-nemeth 03dec53
HADOOP-17858. Avoid possible class loading deadlock with VerifierNone…
virajjasani 8ac775d
HADOOP-17854. Run junit in Jenkins only if surefire reports exist (#3…
GauthamBanasandra a009895
HDFS-16184. De-flake TestBlockScanner#testSkipRecentAccessFile (#3329)
virajjasani ffc76d9
HDFS-16175.Improve the configurable value of Server #PURGE_INTERVAL_N…
jianghuazhu e48ed3d
HDFS-16157. Support configuring DNS record to get list of journal nod…
LeonGao91 ea2cf8c
HDFS-16143. Add Timer in EditLogTailer and de-flake TestEditLogTailer…
virajjasani a9448b2
HDFS-16173.Improve CopyCommands#Put#executor queue configurability. (…
jianghuazhu 14d0755
YARN-10891. Extend QueueInfo with max-parallel-apps in CS. (#3314)
tomicooler 46b6892
HADOOP-17877. BuiltInGzipCompressor header and trailer should not be …
viirya 643df58
MAPREDUCE-7342. Stop RMService in TestClientRedirect.testRedirect() (…
lzx404243 beb66b2
HADOOP-17544. Mark KeyProvider as Stable. (#2776)
aajisaka 5fda27a
HADOOP-17869. `fs.s3a.connection.maximum` should be bigger than `fs.s…
dongjoon-hyun 23ce19a
HDFS-16192: ViewDistributedFileSystem#rename wrongly using src in the…
umamaheswararao bcb01d4
HADOOP-17870. Http Filesystem to qualify relative paths. (#3338)
yellowflash 7670bfd
MAPREDUCE-7311. Clear filesystem statistics after tests in TestTaskPr…
lzx404243 ce92818
HDFS-15966. Empty the statistical parameters when emptying the redund…
langlaile1221 cdff57c
HADOOP-17886. Upgrade ant to 1.10.11 (#3371)
amahussein 75e02c4
HADOOP-17874. ExceptionsHandler to add terse/suppressed Exceptions in…
virajjasani fafa6df
HDFS-16202. Use constants "HdfsClientConfigKeys.Failover.PREFIX" inst…
WeisonWei aa6f709
HADOOP-15129. Datanode caches namenode DNS lookup failure and cannot …
cnauroth 434dc55
HDFS-16199. Resolve log placeholders in NamenodeBeanMetrics (#3362). …
virajjasani 8949898
HDFS-16194. Simplify the code with DatanodeID#getXferAddrWithHostname…
tomscut 7ac0f7c
HDFS-16138. BlockReportProcessingThread exit doesn't print the actual…
prasad-acit 2f405dd
HDFS-16204. Improve FSDirEncryptionZoneOp related parameter comments.…
jianghuazhu bfd42c4
HADOOP-17156. ABFS: Release the byte buffers held by input streams in…
mukund-thakur 138a360
HADOOP-17894. CredentialProviderFactory.getProviders() recursion load…
steveloughran b01edfb
YARN-10884: Handle empty owners to parse log files (#3318)
swathic95 f8120d2
HDFS-16209. Add description for dfs.namenode.caching.enabled (#3378)
tomscut de02c64
HADOOP-17897. Allow nested blocks in switch case in checkstyle settin…
iwasakims 14262dd
HADOOP-17899. Avoid using implicit dependency on junit-jupiter-api. (…
iwasakims 90687c0
YARN-10576. Update Capacity Scheduler documentation with JSON-based p…
szilard-nemeth f15b813
YARN-10522. Document for Flexible Auto Queue Creation in Capacity Sch…
brumi1024 99bebbf
Add documentation for YARN-10623 auto refresh queue conf in CS (#3279)
zhuqi-lucas 7813961
YARN-10646. TestCapacitySchedulerWeightMode test descriptor comments …
brumi1024 0b93af8
YARN-10919. Remove LeafQueue#scheduler field (#3382)
JackWangCS 881ddfb
YARN-10901. Permission checking error on an existing directory in Log…
tomicooler 560e910
HADOOP-17857. Check real user ACLs in addition to proxied user ACLs. …
szilard-nemeth 229a1b6
YARN-10870. Missing user filtering check -> yarn.webapp.filter-entity…
szilard-nemeth f0b4c37
YARN-10829. Follow up: Adding null checks before merging ResourceUsag…
akshatb1 734d8c2
HDFS-16210. RBF: Add the option of refreshCallQueue to RouterAdmin (#…
symious 0a229ab
HDFS-16207. Remove NN logs stack trace for non-existent xattr query (…
amahussein 3d0b559
HADOOP-17887. Remove the wrapper class GzipOutputStream (#3377)
viirya b8f9965
HADOOP-17804. Expose prometheus metrics only after a flush and dedupe…
Kimahriman 5dfe0ac
HDFS-16065. RBF: Add metrics to record Router's operations (#3100)
symious 6750af5
YARN-10893. Adding metrics for getClusterMetrics and getApplications …
akshatb1 70bd0f2
YARN-10914. Simplify duplicated code for tracking ResourceUsage in Ab…
tomicooler ec0f456
YARN-10910. AbstractCSQueue#setupQueueConfigs: Separate validation lo…
brumi1024 def0a11
YARN-10852. Optimise CSConfiguration getAllUserWeightsForQueue (#3392)
9uapaw 5b812d3
YARN-10872. Replace getPropsWithPrefix calls in AutoCreatedQueueTempl…
brumi1024 544af0c
HADOOP-17901. Performance degradation in Text.append() after HADOOP-1…
pbacsko e1384b5
HDFS-16188. RBF: Router to support resolving monitored namenodes with…
LeonGao91 3eee20a
HADOOP-17904. Test Result Not Working In Jenkins Result. (#3413). Con…
ayushtkn 6703ca8
HDFS-16221. RBF: Add usage of refreshCallQueue for Router (#3421)
symious 585ad60
HDFS-16197.Simplify getting NNStorage in FSNamesystem. (#3357)
jianghuazhu b194902
YARN-10903. Fix the headroom check in ParentQueue and RegularContaine…
JackWangCS 409780f
YARN-10928. Support default queue config for minimum-user-limit-perce…
zheng-weihao 69a28f4
HDFS-16187. SnapshotDiff behaviour with Xattrs and Acls is not consis…
bshashikant 81a02c0
HDFS-16223. AvailableSpaceRackFaultTolerantBlockPlacementPolicy shoul…
ayushtkn 0a672ea
HADOOP-17900. Move ClusterStorageCapacityExceededException to Public …
ayushtkn d36cb10
HDFS-16198. Short circuit read leaks Slot objects when InvalidToken e…
EungsopYoo 08e8d7e
HDFS-15920.Solve the problem that the value of SafeModeMonitor#RECHEC…
jianghuazhu ad8041f
HDFS-16225. Fix typo for FederationTestUtils (#3428). Contributed by …
tomscut 2b3bde9
YARN-10912. AbstractCSQueue#updateConfigurableResourceRequirement: Se…
tomicooler ee6d496
YARN-10917. Investigate and simplify CapacitySchedulerConfigValidator…
tomicooler a795d2f
YARN-10915. AbstractCSQueue: Simplify complex logic in methods: deriv…
brumi1024 95d639a
HADOOP-17891. Exclude snappy-java and lz4-java from relocation in sha…
viirya f03e77c
HDFS-16181. [SBN Read] Fix display of JournalNode metric RpcRequestCa…
wzhallright ca8c17c
HADOOP-17907. FileUtil#fullyDelete deletes contents of sym-linked dir…
zheng-weihao cf52526
YARN-10935. AM Total Queue Limit goes below per-user AM Limit if pare…
ericbadger da0b400
HADOOP-17195. OutOfMemory error while performing hdfs CopyFromLocal t…
mehakmeet 0acf6b2
Revert "HADOOP-17195. OutOfMemory error while performing hdfs CopyFro…
steveloughran 85ce2b3
HADOOP-17871. S3A CSE: minor tuning (#3412)
mehakmeet a39d923
HDFS-16203. Discover datanodes with unbalanced block pool usage by th…
tomscut bb52290
changes to handle NPE and modified serialization and deserialization …
kiran-maturi 9eaca6e
cleanup
kiran-maturi d78bcc5
Update hadoop-common-project/hadoop-common/src/main/conf/hadoop-env.sh
kiran-maturi 88cd2aa
removed name field for Tracer and moved opentelemetry javaagent to ha…
9f0c418
merged remote changes
kiran-maturi 24cf3ab
Merge branch 'trunk' of https://github.com/apache/hadoop into backup
kiran-maturi 32e5267
reverted protobuf.version to 2.5.0
kiran-maturi 57ed0dd
addressed review comments
kiran-maturi ea2dc2c
moving opentelemetry javaagent to hadoop tools and added new field in…
kiran-maturi a76aa87
Merge branch 'trunk' into HADOOP-15566-javaagent
kiran-maturi 78255c3
Merge branch 'trunk' into HADOOP-15566-javaagent
kiran-maturi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -18,15 +18,76 @@ | |
| package org.apache.hadoop.tracing; | ||
|
|
||
| import java.io.Closeable; | ||
| import java.util.HashMap; | ||
| import java.util.Map; | ||
|
|
||
| import io.opentelemetry.api.trace.TraceFlags; | ||
| import io.opentelemetry.api.trace.TraceState; | ||
| import io.opentelemetry.api.trace.TraceStateBuilder; | ||
| import org.slf4j.Logger; | ||
| import org.slf4j.LoggerFactory; | ||
|
|
||
| /** | ||
| * Wrapper class for SpanContext to avoid using OpenTracing/OpenTelemetry | ||
| * SpanContext class directly for better separation. | ||
| */ | ||
| public class SpanContext implements Closeable { | ||
| public SpanContext() { | ||
| public class SpanContext implements Closeable { | ||
| public static final Logger LOG = LoggerFactory.getLogger(SpanContext.class.getName()); | ||
| private static final String TRACE_ID = "TRACE_ID"; | ||
| private static final String SPAN_ID = "SPAN_ID"; | ||
| private static final String TRACE_FLAGS = "TRACE_FLAGS"; | ||
|
|
||
|
|
||
| private io.opentelemetry.api.trace.SpanContext openSpanContext; | ||
| public SpanContext(io.opentelemetry.api.trace.SpanContext openSpanContext) { | ||
| this.openSpanContext = openSpanContext; | ||
| } | ||
|
|
||
| public void close() { | ||
|
|
||
| } | ||
|
|
||
| public Map<String, String> getKVSpanContext(){ | ||
| if(openSpanContext != null){ | ||
| //TODO: may we should move this to Proto | ||
| Map<String, String> kvMap = new HashMap<>(); | ||
| kvMap.put(TRACE_ID, openSpanContext.getTraceId()); | ||
| kvMap.put(SPAN_ID, openSpanContext.getSpanId()); | ||
| kvMap.put(TRACE_FLAGS, openSpanContext.getTraceFlags().asHex()); | ||
| kvMap.putAll(openSpanContext.getTraceState().asMap()); | ||
| return kvMap; | ||
| } | ||
| return null; | ||
| } | ||
|
|
||
| static SpanContext buildFromKVMap(Map<String, String> kvMap){ | ||
| try{ | ||
| String traceId = kvMap.get(TRACE_ID); | ||
| String spanId = kvMap.get(SPAN_ID); | ||
| String traceFlagsHex = kvMap.get(TRACE_FLAGS); | ||
| if(traceId == null || spanId == null || traceFlagsHex == null){ | ||
| return null; | ||
| } | ||
| TraceFlags traceFlags = TraceFlags.fromHex(traceFlagsHex, 0); | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. what if traceFlagsHex isn't found? exit fast |
||
| TraceStateBuilder traceStateBuilder = TraceState.builder(); | ||
| for(Map.Entry<String, String> keyValue: kvMap.entrySet()){ | ||
| if(keyValue.getKey().equals(TRACE_ID) || keyValue.getKey().equals(SPAN_ID) || keyValue.getKey().equals(TRACE_FLAGS)){ | ||
| continue; | ||
| } | ||
| traceStateBuilder.put(keyValue.getKey(), keyValue.getValue()); | ||
| } | ||
| TraceState traceState = traceStateBuilder.build(); | ||
| io.opentelemetry.api.trace.SpanContext spanContext = io.opentelemetry.api.trace.SpanContext.createFromRemoteParent(traceId, spanId, traceFlags, traceState ); | ||
| return new SpanContext(spanContext); | ||
| } catch (Exception e){ | ||
| LOG.error("Error in processing remote context :", e); | ||
| return null; | ||
| } | ||
|
|
||
|
|
||
| } | ||
|
|
||
| public io.opentelemetry.api.trace.SpanContext getOpenSpanContext() { | ||
| return openSpanContext; | ||
| } | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.