Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
96 commits
Select commit Hold shift + click to select a range
eea5600
HDDS-11911. Return consistent error code when snapshot is not found i…
sadanand48 Dec 12, 2024
6b9cbe0
HDDS-11909. Intermittent timeout building Hadoop in s3a test (#7559)
adoroszlai Dec 12, 2024
745ed1c
HDDS-11367. Improve ozone balancing status command output (#7139)
juncevich Dec 12, 2024
8536490
HDDS-11367. Fix flaky balancer robot test (#7569)
juncevich Dec 12, 2024
b5d04e2
HDDS-11915. Netty OpenSsl not available in acceptance tests on arm64 …
adoroszlai Dec 12, 2024
853d657
HDDS-11893. Fix full snapshot diff fallback logic because of DAG prun…
swamirishi Dec 12, 2024
bf6f323
HDDS-11413. PipelineManagerImpl lock optimization reduces AllocateBlo…
guohao-rosicky Dec 13, 2024
437f595
HDDS-11784 adding missing parent directories for MPU abort and
Dec 11, 2024
16ba289
Revert "HDDS-11413. PipelineManagerImpl lock optimization reduces All…
adoroszlai Dec 13, 2024
66ccc25
HDDS-11908. Snapshot diff DAG traversal should not skip node based on…
swamirishi Dec 13, 2024
1835326
HDDS-11927. Mark testGetCurrentStatisticsWhileBalancingInProgress as …
adoroszlai Dec 13, 2024
7a46080
HDDS-11914. Snapshot diff should not filter SST Files based by readin…
swamirishi Dec 13, 2024
008f9a6
HDDS-11852. Reduce duplication in some GenericCli subclasses (#7553)
adoroszlai Dec 13, 2024
202b0c7
HDDS-11860. Improve BufferUtils.writeFully. (#7564)
szetszwo Dec 14, 2024
1453fd9
HDDS-11935. Bump develocity-maven-extension to 1.23 (#7577)
dependabot[bot] Dec 14, 2024
bef2415
HDDS-11940. Bump jline to 3.28.0 (#7576)
dependabot[bot] Dec 15, 2024
f5e5493
HDDS-11927. Fix flaky TestContainerBalancerStatusInfo.testGetCurrentS…
juncevich Dec 15, 2024
daf2f9f
HDDS-11863. Speed up TestFSORepairTool (#7561)
sarvekshayr Dec 16, 2024
c523825
HDDS-11926 - Rename bucket name for bucket info/ls for linked buckets…
jyotirmoy-gh Dec 16, 2024
54f0272
HDDS-11807. Make callId different for each request in openKeyCleanupS…
ashishkumar50 Dec 16, 2024
3648b59
HDDS-11906. Add sortpom dependency, sort root POM. (#7555)
adoroszlai Dec 17, 2024
8bb0587
HDDS-11712. Process other DeletedBlocksTransaction before retrying fa…
ashishkumar50 Dec 17, 2024
dae388b
HDDS-11907. OzoneSecretKey does not need to implement Writable (#7574)
chiacyu Dec 17, 2024
c28e16e
HDDS-11950. Enable sortpom in dev-support module. (#7586)
nandakumar131 Dec 17, 2024
976e45f
HDDS-11711. Add SCM metrics for delete commands sent and response rec…
Tejaskriya Dec 17, 2024
a27e4ec
HDDS-11779. Add DN metrics to show deletion progress (#7552)
Tejaskriya Dec 17, 2024
bde8cf4
HDDS-11759. Remove LegacyReplicationManager (#7580)
chiacyu Dec 17, 2024
1f29e05
HDDS-11934. Split compat suite to old/new (#7578)
adoroszlai Dec 17, 2024
6e0c753
HDDS-11509. logging improvements for directory deletion (#7314)
Tejaskriya Dec 18, 2024
3a0e3b5
HDDS-11845. Extract k8s definitions for HttpFS and Recon from getting…
adoroszlai Dec 18, 2024
f5ff2f0
HDDS-11868. Enable OM Ratis in TestQuotaRepairTask (#7593)
chungen0126 Dec 18, 2024
f2b24a5
HDDS-11784 address PR comments
Dec 19, 2024
a523e17
HDDS-11846. [Recon] Recon Schema version_number column is always set …
ArafatKhan2198 Dec 19, 2024
4fe166d
HDDS-11957. Make breadcrumb scrollable for long path names in DiskUsa…
devabhishekpal Dec 19, 2024
0066526
HDDS-11869. Enable OM Ratis in TestOzoneDelegationTokenSecretManager …
chungen0126 Dec 19, 2024
0a0cffc
HDDS-11964. Allow ozone sh bucket create to take obs and fso as optio…
kerneltime Dec 20, 2024
0306d97
HDDS-11961. Improve existing repair tests (#7595)
adoroszlai Dec 20, 2024
7af38a9
HDDS-11963. Add parent interface of component and layout versions for…
swamirishi Dec 20, 2024
e41ba9b
HDDS-11982. Bump jersey2 to 2.46 (#7604)
dependabot[bot] Dec 21, 2024
e25e6bf
HDDS-11983. Bump junit to 5.11.4 (#7605)
dependabot[bot] Dec 21, 2024
ed9ac7a
HDDS-11984. Bump reload4j to 1.2.26 (#7608)
dependabot[bot] Dec 21, 2024
be18a49
HDDS-11985. Bump assertj-core to 3.27.0 (#7607)
dependabot[bot] Dec 21, 2024
16322fd
Add flush to buffer (#7609)
chiacyu Dec 21, 2024
5b27f6d
HDDS-11941. Include fork timeout in integration check summary (#7582)
adoroszlai Dec 23, 2024
f34cf34
HDDS-11857. Freon log flooded by HSync message (#7613)
chiacyu Dec 24, 2024
f125363
HDDS-11878. Use CommandSpec to find top-level command. (#7575)
adoroszlai Dec 26, 2024
ddd5433
HDDS-11986. Enable SCM Ratis in TestSCMNodeManager (#7624)
chiacyu Dec 28, 2024
345c468
HDDS-11995. Acceptance Test test-all script fails to delete old resul…
nandakumar131 Dec 29, 2024
c3003fd
HDDS-11992. Replace GenericCli#createOzoneConfiguration calls with ge…
nandakumar131 Dec 29, 2024
ad108c8
HDDS-11997. Duplicate snapshot purge request causes NPE (#7627)
swamirishi Dec 30, 2024
f57cf01
HDDS-11993. Move OzoneAdmin to ozone-tools (#7619)
adoroszlai Jan 1, 2025
14756bf
HDDS-11865. Remove tests for non-Ratis OM (#7535)
adoroszlai Jan 1, 2025
f2e6d38
HDDS-11994. Convert Freon to pluggable model (#7620)
adoroszlai Jan 1, 2025
0d1a0ce
HDDS-11880. Intermediate subcommands do not need to implement Callabl…
adoroszlai Jan 2, 2025
9aae7a5
HDDS-9791. Add tests for Datanodes page (#7626)
devabhishekpal Jan 2, 2025
9b5cedd
HDDS-11951. Enable sortpom in hadoop-hdds sub-modules : annotations, …
nandakumar131 Jan 2, 2025
c282d91
HDDS-8175. getFileChecksum() throws exception in debug mode. (#7611)
chiacyu Jan 2, 2025
4121aa2
HDDS-11726. Add leader readiness state to OM UI (#7628)
chiacyu Jan 2, 2025
47c1b35
HDDS-12001. Create parent class for repair tools (#7633)
adoroszlai Jan 3, 2025
bf112aa
HDDS-11990. Use arity in decommission subcommands (#7618)
adoroszlai Jan 3, 2025
fbb792d
HDDS-11945. Improve startup message for ozone repair commands (#7591)
sarvekshayr Jan 3, 2025
69206e9
HDDS-11902. Remove upgrade tests for non-ha and om-ha (#7610)
chiacyu Jan 3, 2025
d013188
HDDS-11727. Block `ozone repair om fso-tree` if OM is running (#7589)
sarvekshayr Jan 3, 2025
99fd5fc
HDDS-11801. Logs missing if kubernetes check fails before tests (#7496)
adoroszlai Jan 3, 2025
60a7fdb
HDDS-11819. Improve mock datanode version handling in MiniOzoneCluste…
adoroszlai Jan 3, 2025
ce6fb45
HDDS-11999. Remove `ozone repair ldb command` and move its subcommand…
sarvekshayr Jan 3, 2025
2dd8a71
HDDS-11731. ContainerSafeModeRule Refactor (#7587)
nandakumar131 Jan 4, 2025
91d9537
HDDS-12013. Bump sqlite-jdbc to 3.47.2.0 (#7641)
dependabot[bot] Jan 4, 2025
df6e119
HDDS-12006. Enable sortpom in hdds-container-service, hdds-crypto-api…
nandakumar131 Jan 4, 2025
de79c37
HDDS-12014. Bump assertj-core to 3.27.1 (#7642)
dependabot[bot] Jan 4, 2025
138cbe3
HDDS-11998. BlockDataStreamOutput should decrPendingContainerOpsMetri…
ivandika3 Jan 4, 2025
53fc590
HDDS-12019. Bump zstd-jni to 1.5.6-9 (#7643)
dependabot[bot] Jan 4, 2025
24a7211
HDDS-7188. Read chunk files using netty ChunkedNioFile. (#7625)
szetszwo Jan 4, 2025
6280c66
HDDS-11952. Enable sortpom in hadoop-ozone. (#7646)
nandakumar131 Jan 5, 2025
f9bd055
HDDS-12020. Enable sortpom in hdds-erasurecode, hdds-server-framework…
nandakumar131 Jan 5, 2025
71de2a2
HDDS-10469. Ozone Manager should continue to work when S3 secret stor…
Cyrill Jan 5, 2025
8f2689d
HDDS-11864. Remove config from OM for disabling Ratis (#7640)
adoroszlai Jan 6, 2025
ab161dd
HDDS-11949. Ozone Recon - Update Recon OM Sync default configs and do…
devmadhuu Jan 6, 2025
3d35b01
HDDS-12011. Show PID of running service. (#7648)
sarvekshayr Jan 6, 2025
2ec05cb
HDDS-11987. Remove duplicate Quota In Bytes field from DU metadata (#…
devabhishekpal Jan 6, 2025
5354cec
HDDS-12027. Mark TestBlockDataStreamOutput#testMultiBlockWrite as flaky
adoroszlai Jan 6, 2025
ae9a56f
HDDS-11991. Use picocli built-in for missing subcommand of GenericCli…
adoroszlai Jan 7, 2025
6b8b844
HDDS-12009. Merge FSORepairTool and FSORepairCLI (#7639)
adoroszlai Jan 7, 2025
8a774a5
HDDS-11989. Enable SCM Ratis in tests related to DeletedBlockLog (#7615)
chungen0126 Jan 7, 2025
44ba9a3
HDDS-12023. Enable SCM Ratis in TestContainerCommandsEC (#7650)
chungen0126 Jan 7, 2025
e8d96f4
HDDS-12022. Enable SCM Ratis in TestStorageContainerManager (#7651)
chungen0126 Jan 7, 2025
3dfd241
HDDS-11753. Deprecate file per chunk layout from datanode code. (#7654)
jojochuang Jan 7, 2025
984027c
HDDS-12035. Enable sortpom in hdds-hadoop-dependency-server and -test…
nandakumar131 Jan 7, 2025
2fc9c6e
HDDS-12034. Enable sortpom in hdds-interface-admin, -client and -serv…
nandakumar131 Jan 8, 2025
36a430d
HDDS-7307. Move S3 Gateway web content to separate port (#6898)
adoroszlai Jan 8, 2025
f8394cf
HDDS-11975. wrap TermIndex in ExecutionContext (#7602)
sumitagrawl Jan 8, 2025
14bba1e
HDDS-5045. Create acceptance test for using rclone with s3 protocol (…
ptlrs Jan 8, 2025
a1324b6
HDDS-11511. Introduce metrics in deletion services of OM (#7377)
Tejaskriya Jan 8, 2025
ab29a55
HDDS-7990. Add acceptance test for HA Proxy with secure Ozone S3 Gate…
ptlrs Jan 8, 2025
05a48d5
add directory tables into @CleanupTableInfo
Jan 8, 2025
2c14e1f
Merge remote-tracking branch 'apache/master' into HDDS-11784
Jan 8, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ env:
FAIL_FAST: ${{ github.event_name == 'pull_request' }}
# Minimum required Java version for running Ozone is defined in pom.xml (javac.version).
TEST_JAVA_VERSION: 21 # JDK version used by CI build and tests; should match the JDK version in apache/ozone-runner image
MAVEN_ARGS: --batch-mode --settings ${{ github.workspace }}/dev-support/ci/maven-settings.xml --show-version
MAVEN_OPTS: -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false -Dmaven.wagon.http.retryHandler.class=standard -Dmaven.wagon.http.retryHandler.count=3
HADOOP_IMAGE: ghcr.io/apache/hadoop
OZONE_IMAGE: ghcr.io/apache/ozone
Expand Down
2 changes: 1 addition & 1 deletion .mvn/extensions.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<extension>
<groupId>com.gradle</groupId>
<artifactId>develocity-maven-extension</artifactId>
<version>1.22.1</version>
<version>1.23</version>
</extension>
<extension>
<groupId>com.gradle</groupId>
Expand Down
35 changes: 35 additions & 0 deletions dev-support/ci/maven-settings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
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.
-->
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0http://maven.apache.org/xsd/settings-1.0.0.xsd">
<mirrors>
<mirror>
<id>block-snapshots1</id>
<mirrorOf>apache.snapshots</mirrorOf>
<name>Block access to Apache Snapshots</name>
<url>https://repository.apache.org/snapshots</url>
<blocked>true</blocked>
</mirror>
<mirror>
<id>block-snapshots2</id>
<mirrorOf>apache.snapshots.https</mirrorOf>
<name>Block access to Apache Snapshots</name>
<url>https://repository.apache.org/content/repositories/snapshots</url>
<blocked>true</blocked>
</mirror>
</mirrors>
</settings>
30 changes: 14 additions & 16 deletions dev-support/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,27 +12,25 @@
See the License for the specific language governing permissions and
limitations under the License. See accompanying LICENSE file.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<artifactId>ozone-main</artifactId>
<groupId>org.apache.ozone</groupId>
<artifactId>ozone-main</artifactId>
<version>2.0.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>ozone-dev-support</artifactId>
<description>Helper module for sharing resources among projects</description>
<name>Apache Ozone Dev Support</name>
<description>Helper module for sharing resources among projects</description>

<properties>
<failIfNoTests>false</failIfNoTests>
</properties>
<build>
<resources>
<resource>
<directory>${project.build.directory}/extra-resources</directory>
<targetPath>META-INF</targetPath>
<directory>${project.build.directory}/extra-resources</directory>
<includes>
<include>LICENSE.txt</include>
<include>NOTICE.txt</include>
Expand All @@ -54,10 +52,10 @@
<executions>
<execution>
<id>copy-resources</id>
<phase>validate</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<phase>validate</phase>
<configuration>
<outputDirectory>${project.build.directory}/extra-resources</outputDirectory>
<resources>
Expand All @@ -77,21 +75,21 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-remote-resources-plugin</artifactId>
<executions>
<execution>
<phase>process-resources</phase>
<goals>
<goal>bundle</goal>
</goals>
</execution>
</executions>
<configuration>
<resourcesDirectory>${project.build.outputDirectory}</resourcesDirectory>
<includes>
<include>META-INF/LICENSE.txt</include>
<include>META-INF/NOTICE.txt</include>
</includes>
</configuration>
<executions>
<execution>
<goals>
<goal>bundle</goal>
</goals>
<phase>process-resources</phase>
</execution>
</executions>
</plugin>
</plugins>
</build>
Expand Down
15 changes: 6 additions & 9 deletions hadoop-hdds/annotations/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,7 @@
See the License for the specific language governing permissions and
limitations under the License. See accompanying LICENSE file.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
https://maven.apache.org/xsd/maven-4.0.0.xsd">
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.apache.ozone</groupId>
Expand All @@ -25,14 +22,14 @@ https://maven.apache.org/xsd/maven-4.0.0.xsd">

<artifactId>hdds-annotation-processing</artifactId>
<version>2.0.0-SNAPSHOT</version>
<description>Apache Ozone annotation processing tools for validating custom
annotations at compile time.
</description>
<name>Apache Ozone Annotation Processing</name>
<packaging>jar</packaging>
<name>Apache Ozone Annotation Processing</name>
<description>Apache Ozone annotation processing tools for validating custom
annotations at compile time.</description>

<properties>
<maven.test.skip>true</maven.test.skip> <!-- no tests in this module so far -->
<!-- no tests in this module so far -->
<maven.test.skip>true</maven.test.skip>
</properties>

<build>
Expand Down
60 changes: 25 additions & 35 deletions hadoop-hdds/client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,7 @@
See the License for the specific language governing permissions and
limitations under the License. See accompanying LICENSE file.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
https://maven.apache.org/xsd/maven-4.0.0.xsd">
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.apache.ozone</groupId>
Expand All @@ -25,14 +22,31 @@ https://maven.apache.org/xsd/maven-4.0.0.xsd">

<artifactId>hdds-client</artifactId>
<version>2.0.0-SNAPSHOT</version>
<description>Apache Ozone Distributed Data Store Client Library</description>
<name>Apache Ozone HDDS Client</name>
<packaging>jar</packaging>

<properties>
</properties>
<name>Apache Ozone HDDS Client</name>
<description>Apache Ozone Distributed Data Store Client Library</description>

<dependencies>
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
</dependency>
<dependency>
<groupId>io.opentracing</groupId>
<artifactId>opentracing-api</artifactId>
</dependency>
<dependency>
<groupId>io.opentracing</groupId>
<artifactId>opentracing-util</artifactId>
</dependency>
<dependency>
<groupId>jakarta.annotation</groupId>
<artifactId>jakarta.annotation-api</artifactId>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
</dependency>
<dependency>
<groupId>org.apache.ozone</groupId>
<artifactId>hdds-common</artifactId>
Expand All @@ -49,11 +63,6 @@ https://maven.apache.org/xsd/maven-4.0.0.xsd">
<groupId>org.apache.ozone</groupId>
<artifactId>hdds-interface-client</artifactId>
</dependency>

<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
</dependency>
<dependency>
<groupId>org.apache.ratis</groupId>
<artifactId>ratis-client</artifactId>
Expand All @@ -74,31 +83,11 @@ https://maven.apache.org/xsd/maven-4.0.0.xsd">
<groupId>org.apache.ratis</groupId>
<artifactId>ratis-thirdparty-misc</artifactId>
</dependency>

<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
</dependency>

<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
</dependency>

<dependency>
<groupId>io.opentracing</groupId>
<artifactId>opentracing-api</artifactId>
</dependency>
<dependency>
<groupId>io.opentracing</groupId>
<artifactId>opentracing-util</artifactId>
</dependency>

<dependency>
<groupId>jakarta.annotation</groupId>
<artifactId>jakarta.annotation-api</artifactId>
</dependency>

<!-- Test dependencies -->
<dependency>
<groupId>org.apache.ozone</groupId>
Expand Down Expand Up @@ -148,7 +137,8 @@ https://maven.apache.org/xsd/maven-4.0.0.xsd">
<artifactId>maven-enforcer-plugin</artifactId>
<executions>
<execution>
<id>ban-annotations</id> <!-- override default restriction from root POM -->
<id>ban-annotations</id>
<!-- override default restriction from root POM -->
<configuration>
<rules>
<restrictImports>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ public void write(ByteBuffer b, int off, int len) throws IOException {
}
while (len > 0) {
allocateNewBufferIfNeeded();
int writeLen = Math.min(len, currentBuffer.length());
int writeLen = Math.min(len, currentBuffer.remaining());
final StreamBuffer buf = new StreamBuffer(b, off, writeLen);
currentBuffer.put(buf);
writeChunkIfNeeded();
Expand All @@ -265,7 +265,7 @@ public void write(ByteBuffer b, int off, int len) throws IOException {
}

private void writeChunkIfNeeded() throws IOException {
if (currentBuffer.length() == 0) {
if (currentBuffer.remaining() == 0) {
writeChunk(currentBuffer);
currentBuffer = null;
}
Expand Down Expand Up @@ -672,6 +672,7 @@ private void writeChunkToContainer(ByteBuffer buf)
out.writeAsync(buf, StandardWriteOption.SYNC) :
out.writeAsync(buf))
.whenCompleteAsync((r, e) -> {
metrics.decrPendingContainerOpsMetrics(ContainerProtos.Type.WriteChunk);
if (e != null || !r.isSuccess()) {
if (e == null) {
e = new IOException("result is not success");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ public ByteBuffer duplicate() {
return buffer.duplicate();
}

public int length() {
return buffer.limit() - buffer.position();
public int remaining() {
return buffer.remaining();
}

public int position() {
Expand Down
Loading
Loading