Skip to content

HBASE-24625 AsyncFSWAL.getLogFileSizeIfBeingWritten does not return the expected synced file length. - #1970

Merged
Apache9 merged 10 commits into
apache:masterfrom
comnetwork:master
Jul 4, 2020
Merged

HBASE-24625 AsyncFSWAL.getLogFileSizeIfBeingWritten does not return the expected synced file length.#1970
Apache9 merged 10 commits into
apache:masterfrom
comnetwork:master

Conversation

@comnetwork

@comnetworkcomnetwork commented Jun 25, 2020

Copy link
Copy Markdown
Contributor

In the PR, I added a new method getSyncedLength to WriterBase interface to return the length which successfully synced to underlying fileSystem.
and AbstractFSWAL.getLogFileSizeIfBeingWritten is relied on the added WriteBase.getSyncedLength method:

@Apache-HBase

Copy link
Copy Markdown

💔 -1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec0m 0sDocker mode activated.
-1 ❌docker0m 15sDocker failed to build yetus/hbase:023c6fe56b.
SubsystemReport/Notes
GITHUB PR#1970
JIRA IssueHBASE-24625
Console outputhttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1970/1/console
versionsgit=2.17.1
Powered byApache Yetus 0.11.1 https://yetus.apache.org

This message was automatically generated.

@Apache-HBase

Copy link
Copy Markdown

💔 -1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec0m 0sDocker mode activated.
-1 ❌docker0m 19sDocker failed to build yetus/hbase:023c6fe56b.
SubsystemReport/Notes
GITHUB PR#1970
JIRA IssueHBASE-24625
Console outputhttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1970/1/console
versionsgit=2.17.1
Powered byApache Yetus 0.11.1 https://yetus.apache.org

This message was automatically generated.

1 similar comment
@Apache-HBase

Copy link
Copy Markdown

💔 -1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec0m 0sDocker mode activated.
-1 ❌docker0m 19sDocker failed to build yetus/hbase:023c6fe56b.
SubsystemReport/Notes
GITHUB PR#1970
JIRA IssueHBASE-24625
Console outputhttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1970/1/console
versionsgit=2.17.1
Powered byApache Yetus 0.11.1 https://yetus.apache.org

This message was automatically generated.

@wchevreuil

Copy link
Copy Markdown
Contributor

retest build

@wchevreuilwchevreuil left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That is to say, AsyncFSWAL.getLogFileSizeIfBeingWritten could not reflect the file length which successfully synced to underlying HDFS, which is not as expected.

Wasn't that intentional, as a mean to proper track WAL files still open for write? For example, in case of replication, it should go as far as any entry got already appended, no? Ping @Apache9 who worked on this before to give more thoughts.


protected FSDataOutputStream output;

private volatile long syncedLength = 0;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use an AtomicLong?

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems that using AtomicLong is unnecessary, because AtomicLong could not provide update if greater than semantics, so I used synchronized keyword here when updating the syncedLength for simplicity

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use AtomicUtils.updateMax. It is a util class in hbase-common.

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Used AtomicUtils to replace synchronized, thank you very much.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: why do we have AtomicUtils.updateMax? It seems getAndAccumulate is designed for this use case, i.e., syncedLength.getAndAccumulate(fsdos.getPos(), Math::max)

@Apache9

Copy link
Copy Markdown
Contributor

That is to say, AsyncFSWAL.getLogFileSizeIfBeingWritten could not reflect the file length which successfully synced to underlying HDFS, which is not as expected.

Wasn't that intentional, as a mean to proper track WAL files still open for write? For example, in case of replication, it should go as far as any entry got already appended, no? Ping @Apache9 who worked on this before to give more thoughts.

This guy contacted me offline and I confirmed that this should be a problem.

What I can recall is that, when doing some bug fixes and improving the performance in AsyncFSWAL, I changed the way we calculate the length of the writer. Maybe I forget the assumption in HBASE-14004 when doing these changes and lead to the problem.

So @comnetwork , please add more comments to say why we need the getSyncedLength method in the WAL.Writer interface? So later people will not break it again.

Thanks.

@Apache9Apache9 changed the title HBASE-24625HBASE-24625 AsyncFSWAL.getLogFileSizeIfBeingWritten does not return the expected synced file length.Jun 25, 2020
@Apache-HBase

Copy link
Copy Markdown

🎊 +1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec7m 5sDocker mode activated.
_ Prechecks _
+1 💚dupname0m 0sNo case conflicting files found.
+1 💚hbaseanti0m 0sPatch does not have any anti-patterns.
+1 💚@author0m 0sThe patch does not contain any @author tags.
_ master Compile Tests _
+0 🆗mvndep0m 21sMaven dependency ordering for branch
+1 💚mvninstall4m 5smaster passed
+1 💚checkstyle1m 25smaster passed
+1 💚spotbugs2m 41smaster passed
_ Patch Compile Tests _
+0 🆗mvndep0m 12sMaven dependency ordering for patch
+1 💚mvninstall3m 47sthe patch passed
-0 ⚠️checkstyle0m 11shbase-asyncfs: The patch generated 2 new + 1 unchanged - 0 fixed = 3 total (was 1)
-0 ⚠️checkstyle1m 11shbase-server: The patch generated 3 new + 38 unchanged - 0 fixed = 41 total (was 38)
+1 💚whitespace0m 0sThe patch has no whitespace issues.
+1 💚hadoopcheck12m 26sPatch does not cause any errors with Hadoop 3.1.2 3.2.1.
+1 💚spotbugs3m 5sthe patch passed
_ Other Tests _
+1 💚asflicense0m 22sThe patch does not generate ASF License warnings.
44m 54s
SubsystemReport/Notes
DockerClient=19.03.12 Server=19.03.12 base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1970/2/artifact/yetus-general-check/output/Dockerfile
GITHUB PR#1970
Optional Testsdupname asflicense spotbugs hadoopcheck hbaseanti checkstyle
unameLinux 99ad00f1b065 4.15.0-101-generic #102-Ubuntu SMP Mon May 11 10:07:26 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
Build toolmaven
Personalitydev-support/hbase-personality.sh
git revisionmaster / 1378776
checkstylehttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1970/2/artifact/yetus-general-check/output/diff-checkstyle-hbase-asyncfs.txt
checkstylehttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1970/2/artifact/yetus-general-check/output/diff-checkstyle-hbase-server.txt
Max. process+thread count84 (vs. ulimit of 12500)
modulesC: hbase-asyncfs hbase-server U: .
Console outputhttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1970/2/console
versionsgit=2.17.1 maven=(cecedd343002696d0abb50b32b541b8a6ba2883f) spotbugs=3.1.12
Powered byApache Yetus 0.11.1 https://yetus.apache.org

This message was automatically generated.

@Apache-HBase

Copy link
Copy Markdown

💔 -1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec6m 13sDocker mode activated.
-0 ⚠️yetus0m 3sUnprocessed flag(s): --brief-report-file --spotbugs-strict-precheck --whitespace-eol-ignore-list --whitespace-tabs-ignore-list --quick-hadoopcheck
_ Prechecks _
_ master Compile Tests _
+0 🆗mvndep0m 21sMaven dependency ordering for branch
+1 💚mvninstall4m 45smaster passed
+1 💚compile1m 29smaster passed
+1 💚shadedjars6m 54sbranch has no errors when building our shaded downstream artifacts.
-0 ⚠️javadoc0m 21shbase-asyncfs in master failed.
-0 ⚠️javadoc0m 49shbase-server in master failed.
_ Patch Compile Tests _
+0 🆗mvndep0m 15sMaven dependency ordering for patch
+1 💚mvninstall5m 1sthe patch passed
+1 💚compile1m 36sthe patch passed
+1 💚javac1m 36sthe patch passed
+1 💚shadedjars6m 28spatch has no errors when building our shaded downstream artifacts.
-0 ⚠️javadoc0m 16shbase-asyncfs in the patch failed.
-0 ⚠️javadoc0m 42shbase-server in the patch failed.
_ Other Tests _
+1 💚unit1m 39shbase-asyncfs in the patch passed.
-1 ❌unit10m 22shbase-server in the patch failed.
48m 37s
SubsystemReport/Notes
DockerClient=19.03.12 Server=19.03.12 base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1970/2/artifact/yetus-jdk11-hadoop3-check/output/Dockerfile
GITHUB PR#1970
Optional Testsjavac javadoc unit shadedjars compile
unameLinux 66ca5e2db40c 4.15.0-101-generic #102-Ubuntu SMP Mon May 11 10:07:26 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
Build toolmaven
Personalitydev-support/hbase-personality.sh
git revisionmaster / 1378776
Default Java2020-01-14
javadochttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1970/2/artifact/yetus-jdk11-hadoop3-check/output/branch-javadoc-hbase-asyncfs.txt
javadochttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1970/2/artifact/yetus-jdk11-hadoop3-check/output/branch-javadoc-hbase-server.txt
javadochttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1970/2/artifact/yetus-jdk11-hadoop3-check/output/patch-javadoc-hbase-asyncfs.txt
javadochttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1970/2/artifact/yetus-jdk11-hadoop3-check/output/patch-javadoc-hbase-server.txt
unithttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1970/2/artifact/yetus-jdk11-hadoop3-check/output/patch-unit-hbase-server.txt
Test Resultshttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1970/2/testReport/
Max. process+thread count714 (vs. ulimit of 12500)
modulesC: hbase-asyncfs hbase-server U: .
Console outputhttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1970/2/console
versionsgit=2.17.1 maven=(cecedd343002696d0abb50b32b541b8a6ba2883f)
Powered byApache Yetus 0.11.1 https://yetus.apache.org

This message was automatically generated.

@Apache-HBase

Copy link
Copy Markdown

🎊 +1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec3m 56sDocker mode activated.
-0 ⚠️yetus0m 3sUnprocessed flag(s): --brief-report-file --spotbugs-strict-precheck --whitespace-eol-ignore-list --whitespace-tabs-ignore-list --quick-hadoopcheck
_ Prechecks _
_ master Compile Tests _
+0 🆗mvndep0m 22sMaven dependency ordering for branch
+1 💚mvninstall3m 35smaster passed
+1 💚compile1m 17smaster passed
+1 💚shadedjars5m 37sbranch has no errors when building our shaded downstream artifacts.
+1 💚javadoc0m 53smaster passed
_ Patch Compile Tests _
+0 🆗mvndep0m 16sMaven dependency ordering for patch
+1 💚mvninstall3m 25sthe patch passed
+1 💚compile1m 15sthe patch passed
+1 💚javac1m 15sthe patch passed
+1 💚shadedjars5m 35spatch has no errors when building our shaded downstream artifacts.
+1 💚javadoc0m 49sthe patch passed
_ Other Tests _
+1 💚unit1m 30shbase-asyncfs in the patch passed.
+1 💚unit136m 58shbase-server in the patch passed.
167m 45s
SubsystemReport/Notes
DockerClient=19.03.12 Server=19.03.12 base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1970/2/artifact/yetus-jdk8-hadoop3-check/output/Dockerfile
GITHUB PR#1970
Optional Testsjavac javadoc unit shadedjars compile
unameLinux 4ec9d41f5890 4.15.0-60-generic #67-Ubuntu SMP Thu Aug 22 16:55:30 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Build toolmaven
Personalitydev-support/hbase-personality.sh
git revisionmaster / 1378776
Default Java1.8.0_232
Test Resultshttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1970/2/testReport/
Max. process+thread count4216 (vs. ulimit of 12500)
modulesC: hbase-asyncfs hbase-server U: .
Console outputhttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1970/2/console
versionsgit=2.17.1 maven=(cecedd343002696d0abb50b32b541b8a6ba2883f)
Powered byApache Yetus 0.11.1 https://yetus.apache.org

This message was automatically generated.

@comnetwork

comnetwork commented Jun 26, 2020

Copy link
Copy Markdown
ContributorAuthor

That is to say, AsyncFSWAL.getLogFileSizeIfBeingWritten could not reflect the file length which successfully synced to underlying HDFS, which is not as expected.

Wasn't that intentional, as a mean to proper track WAL files still open for write? For example, in case of replication, it should go as far as any entry got already appended, no? Ping @Apache9 who worked on this before to give more thoughts.

This guy contacted me offline and I confirmed that this should be a problem.

What I can recall is that, when doing some bug fixes and improving the performance in AsyncFSWAL, I changed the way we calculate the length of the writer. Maybe I forget the assumption in HBASE-14004 when doing these changes and lead to the problem.

So @comnetwork , please add more comments to say why we need the getSyncedLength method in the WAL.Writer interface? So later people will not break it again.

Thanks.

@Apache9 , I already added comments for WriteBase.getSyncedLength like following:

/**

  • NOTE: We add this method for {@link WALFileLengthProvider} used for replication, considering the
  • case if we use {@link AsyncFSWAL},we write to 3 DNs concurrently,according to the visibility
  • guarantee of HDFS, the data will be available immediately when arriving at DN since all the DNs
  • will be considered as the last one in pipeline. This means replication may read uncommitted data
  • and replicate it to the remote cluster and cause data inconsistency.
  • The method {@link WriterBase#getLength} may return length which just in hdfs client buffer and not
  • successfully synced to HDFS, so we use this method to return the length successfully synced to HDFS
  • and replication thread could only read writing WAL file limited by this length.
  • see also HBASE-14004 and this document for more details:
  • https://docs.google.com/document/d/11AyWtGhItQs6vsLRIx32PwTxmBY3libXwGXI25obVEY/edit#
    */

@comnetwork
comnetwork requested a review from Apache9June 26, 2020 04:32
@Apache-HBase

Copy link
Copy Markdown

🎊 +1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec1m 36sDocker mode activated.
_ Prechecks _
+1 💚dupname0m 0sNo case conflicting files found.
+1 💚hbaseanti0m 0sPatch does not have any anti-patterns.
+1 💚@author0m 0sThe patch does not contain any @author tags.
_ master Compile Tests _
+0 🆗mvndep0m 21sMaven dependency ordering for branch
+1 💚mvninstall4m 9smaster passed
+1 💚checkstyle1m 32smaster passed
+1 💚spotbugs2m 47smaster passed
-0 ⚠️patch2m 26sUsed diff version of patch file. Binary files and potentially other changes not applied. Please rebase and squash commits if necessary.
_ Patch Compile Tests _
+0 🆗mvndep0m 13sMaven dependency ordering for patch
+1 💚mvninstall3m 48sthe patch passed
-0 ⚠️checkstyle0m 10shbase-asyncfs: The patch generated 2 new + 1 unchanged - 0 fixed = 3 total (was 1)
-0 ⚠️checkstyle1m 15shbase-server: The patch generated 8 new + 38 unchanged - 0 fixed = 46 total (was 38)
+1 💚whitespace0m 0sThe patch has no whitespace issues.
+1 💚hadoopcheck12m 36sPatch does not cause any errors with Hadoop 3.1.2 3.2.1.
+1 💚spotbugs3m 37sthe patch passed
_ Other Tests _
+1 💚asflicense0m 24sThe patch does not generate ASF License warnings.
41m 29s
SubsystemReport/Notes
DockerClient=19.03.12 Server=19.03.12 base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1970/3/artifact/yetus-general-check/output/Dockerfile
GITHUB PR#1970
Optional Testsdupname asflicense spotbugs hadoopcheck hbaseanti checkstyle
unameLinux 699d6a87ab5d 4.15.0-101-generic #102-Ubuntu SMP Mon May 11 10:07:26 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
Build toolmaven
Personalitydev-support/hbase-personality.sh
git revisionmaster / 84e246f
checkstylehttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1970/3/artifact/yetus-general-check/output/diff-checkstyle-hbase-asyncfs.txt
checkstylehttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1970/3/artifact/yetus-general-check/output/diff-checkstyle-hbase-server.txt
Max. process+thread count84 (vs. ulimit of 12500)
modulesC: hbase-asyncfs hbase-server U: .
Console outputhttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1970/3/console
versionsgit=2.17.1 maven=(cecedd343002696d0abb50b32b541b8a6ba2883f) spotbugs=3.1.12
Powered byApache Yetus 0.11.1 https://yetus.apache.org

This message was automatically generated.

@Apache-HBase

Copy link
Copy Markdown

🎊 +1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec0m 30sDocker mode activated.
-0 ⚠️yetus0m 3sUnprocessed flag(s): --brief-report-file --spotbugs-strict-precheck --whitespace-eol-ignore-list --whitespace-tabs-ignore-list --quick-hadoopcheck
_ Prechecks _
_ master Compile Tests _
+0 🆗mvndep0m 32sMaven dependency ordering for branch
+1 💚mvninstall3m 58smaster passed
+1 💚compile1m 24smaster passed
+1 💚shadedjars5m 49sbranch has no errors when building our shaded downstream artifacts.
-0 ⚠️javadoc0m 17shbase-asyncfs in master failed.
-0 ⚠️javadoc0m 42shbase-server in master failed.
-0 ⚠️patch7m 11sUsed diff version of patch file. Binary files and potentially other changes not applied. Please rebase and squash commits if necessary.
_ Patch Compile Tests _
+0 🆗mvndep0m 16sMaven dependency ordering for patch
+1 💚mvninstall4m 7sthe patch passed
+1 💚compile1m 23sthe patch passed
+1 💚javac1m 23sthe patch passed
+1 💚shadedjars5m 45spatch has no errors when building our shaded downstream artifacts.
-0 ⚠️javadoc0m 17shbase-asyncfs in the patch failed.
-0 ⚠️javadoc0m 39shbase-server in the patch failed.
_ Other Tests _
+1 💚unit1m 25shbase-asyncfs in the patch passed.
+1 💚unit128m 28shbase-server in the patch passed.
157m 57s
SubsystemReport/Notes
DockerClient=19.03.12 Server=19.03.12 base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1970/3/artifact/yetus-jdk11-hadoop3-check/output/Dockerfile
GITHUB PR#1970
Optional Testsjavac javadoc unit shadedjars compile
unameLinux b55e15b83043 4.15.0-60-generic #67-Ubuntu SMP Thu Aug 22 16:55:30 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Build toolmaven
Personalitydev-support/hbase-personality.sh
git revisionmaster / 84e246f
Default Java2020-01-14
javadochttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1970/3/artifact/yetus-jdk11-hadoop3-check/output/branch-javadoc-hbase-asyncfs.txt
javadochttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1970/3/artifact/yetus-jdk11-hadoop3-check/output/branch-javadoc-hbase-server.txt
javadochttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1970/3/artifact/yetus-jdk11-hadoop3-check/output/patch-javadoc-hbase-asyncfs.txt
javadochttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1970/3/artifact/yetus-jdk11-hadoop3-check/output/patch-javadoc-hbase-server.txt
Test Resultshttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1970/3/testReport/
Max. process+thread count3870 (vs. ulimit of 12500)
modulesC: hbase-asyncfs hbase-server U: .
Console outputhttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1970/3/console
versionsgit=2.17.1 maven=(cecedd343002696d0abb50b32b541b8a6ba2883f)
Powered byApache Yetus 0.11.1 https://yetus.apache.org

This message was automatically generated.

@Apache-HBase

Copy link
Copy Markdown

🎊 +1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec1m 36sDocker mode activated.
-0 ⚠️yetus0m 3sUnprocessed flag(s): --brief-report-file --spotbugs-strict-precheck --whitespace-eol-ignore-list --whitespace-tabs-ignore-list --quick-hadoopcheck
_ Prechecks _
_ master Compile Tests _
+0 🆗mvndep0m 21sMaven dependency ordering for branch
+1 💚mvninstall4m 8smaster passed
+1 💚compile1m 22smaster passed
+1 💚shadedjars6m 20sbranch has no errors when building our shaded downstream artifacts.
+1 💚javadoc0m 51smaster passed
-0 ⚠️patch7m 31sUsed diff version of patch file. Binary files and potentially other changes not applied. Please rebase and squash commits if necessary.
_ Patch Compile Tests _
+0 🆗mvndep0m 15sMaven dependency ordering for patch
+1 💚mvninstall3m 58sthe patch passed
+1 💚compile1m 17sthe patch passed
+1 💚javac1m 17sthe patch passed
+1 💚shadedjars6m 9spatch has no errors when building our shaded downstream artifacts.
-0 ⚠️javadoc0m 36shbase-server generated 9 new + 28 unchanged - 0 fixed = 37 total (was 28)
_ Other Tests _
+1 💚unit1m 41shbase-asyncfs in the patch passed.
+1 💚unit203m 15shbase-server in the patch passed.
234m 7s
SubsystemReport/Notes
DockerClient=19.03.12 Server=19.03.12 base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1970/3/artifact/yetus-jdk8-hadoop3-check/output/Dockerfile
GITHUB PR#1970
Optional Testsjavac javadoc unit shadedjars compile
unameLinux 8389f6cd5833 4.15.0-101-generic #102-Ubuntu SMP Mon May 11 10:07:26 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
Build toolmaven
Personalitydev-support/hbase-personality.sh
git revisionmaster / 84e246f
Default Java1.8.0_232
javadochttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1970/3/artifact/yetus-jdk8-hadoop3-check/output/diff-javadoc-javadoc-hbase-server.txt
Test Resultshttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1970/3/testReport/
Max. process+thread count3555 (vs. ulimit of 12500)
modulesC: hbase-asyncfs hbase-server U: .
Console outputhttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1970/3/console
versionsgit=2.17.1 maven=(cecedd343002696d0abb50b32b541b8a6ba2883f)
Powered byApache Yetus 0.11.1 https://yetus.apache.org

This message was automatically generated.

@Apache-HBase

Copy link
Copy Markdown

🎊 +1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec2m 4sDocker mode activated.
_ Prechecks _
+1 💚dupname0m 0sNo case conflicting files found.
+1 💚hbaseanti0m 0sPatch does not have any anti-patterns.
+1 💚@author0m 0sThe patch does not contain any @author tags.
_ master Compile Tests _
+0 🆗mvndep0m 25sMaven dependency ordering for branch
+1 💚mvninstall4m 13smaster passed
+1 💚checkstyle1m 31smaster passed
+1 💚spotbugs2m 51smaster passed
-0 ⚠️patch2m 28sUsed diff version of patch file. Binary files and potentially other changes not applied. Please rebase and squash commits if necessary.
_ Patch Compile Tests _
+0 🆗mvndep0m 14sMaven dependency ordering for patch
+1 💚mvninstall3m 57sthe patch passed
-0 ⚠️checkstyle0m 13shbase-asyncfs: The patch generated 2 new + 1 unchanged - 0 fixed = 3 total (was 1)
-0 ⚠️checkstyle1m 15shbase-server: The patch generated 8 new + 38 unchanged - 0 fixed = 46 total (was 38)
+1 💚whitespace0m 0sThe patch has no whitespace issues.
+1 💚hadoopcheck12m 55sPatch does not cause any errors with Hadoop 3.1.2 3.2.1.
+1 💚spotbugs3m 41sthe patch passed
_ Other Tests _
+1 💚asflicense0m 27sThe patch does not generate ASF License warnings.
42m 46s
SubsystemReport/Notes
DockerClient=19.03.9 Server=19.03.9 base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1970/4/artifact/yetus-general-check/output/Dockerfile
GITHUB PR#1970
Optional Testsdupname asflicense spotbugs hadoopcheck hbaseanti checkstyle
unameLinux 458640ec86b3 4.15.0-101-generic #102-Ubuntu SMP Mon May 11 10:07:26 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
Build toolmaven
Personalitydev-support/hbase-personality.sh
git revisionmaster / c046120
checkstylehttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1970/4/artifact/yetus-general-check/output/diff-checkstyle-hbase-asyncfs.txt
checkstylehttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1970/4/artifact/yetus-general-check/output/diff-checkstyle-hbase-server.txt
Max. process+thread count84 (vs. ulimit of 12500)
modulesC: hbase-asyncfs hbase-server U: .
Console outputhttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1970/4/console
versionsgit=2.17.1 maven=(cecedd343002696d0abb50b32b541b8a6ba2883f) spotbugs=3.1.12
Powered byApache Yetus 0.11.1 https://yetus.apache.org

This message was automatically generated.

@Apache-HBase

Copy link
Copy Markdown

🎊 +1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec1m 43sDocker mode activated.
-0 ⚠️yetus0m 3sUnprocessed flag(s): --brief-report-file --spotbugs-strict-precheck --whitespace-eol-ignore-list --whitespace-tabs-ignore-list --quick-hadoopcheck
_ Prechecks _
_ master Compile Tests _
+0 🆗mvndep0m 30sMaven dependency ordering for branch
+1 💚mvninstall5m 5smaster passed
+1 💚compile1m 39smaster passed
+1 💚shadedjars7m 6sbranch has no errors when building our shaded downstream artifacts.
-0 ⚠️javadoc0m 18shbase-asyncfs in master failed.
-0 ⚠️javadoc0m 44shbase-server in master failed.
-0 ⚠️patch8m 27sUsed diff version of patch file. Binary files and potentially other changes not applied. Please rebase and squash commits if necessary.
_ Patch Compile Tests _
+0 🆗mvndep0m 17sMaven dependency ordering for patch
+1 💚mvninstall4m 57sthe patch passed
+1 💚compile1m 57sthe patch passed
+1 💚javac1m 57sthe patch passed
+1 💚shadedjars7m 0spatch has no errors when building our shaded downstream artifacts.
-0 ⚠️javadoc0m 15shbase-asyncfs in the patch failed.
-0 ⚠️javadoc0m 48shbase-server in the patch failed.
_ Other Tests _
+1 💚unit1m 44shbase-asyncfs in the patch passed.
+1 💚unit190m 8shbase-server in the patch passed.
226m 7s
SubsystemReport/Notes
DockerClient=19.03.12 Server=19.03.12 base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1970/4/artifact/yetus-jdk11-hadoop3-check/output/Dockerfile
GITHUB PR#1970
Optional Testsjavac javadoc unit shadedjars compile
unameLinux 039abb9fd522 4.15.0-101-generic #102-Ubuntu SMP Mon May 11 10:07:26 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
Build toolmaven
Personalitydev-support/hbase-personality.sh
git revisionmaster / c046120
Default Java2020-01-14
javadochttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1970/4/artifact/yetus-jdk11-hadoop3-check/output/branch-javadoc-hbase-asyncfs.txt
javadochttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1970/4/artifact/yetus-jdk11-hadoop3-check/output/branch-javadoc-hbase-server.txt
javadochttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1970/4/artifact/yetus-jdk11-hadoop3-check/output/patch-javadoc-hbase-asyncfs.txt
javadochttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1970/4/artifact/yetus-jdk11-hadoop3-check/output/patch-javadoc-hbase-server.txt
Test Resultshttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1970/4/testReport/
Max. process+thread count3498 (vs. ulimit of 12500)
modulesC: hbase-asyncfs hbase-server U: .
Console outputhttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1970/4/console
versionsgit=2.17.1 maven=(cecedd343002696d0abb50b32b541b8a6ba2883f)
Powered byApache Yetus 0.11.1 https://yetus.apache.org

This message was automatically generated.

@Apache-HBase

Copy link
Copy Markdown

🎊 +1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec2m 9sDocker mode activated.
-0 ⚠️yetus0m 3sUnprocessed flag(s): --brief-report-file --spotbugs-strict-precheck --whitespace-eol-ignore-list --whitespace-tabs-ignore-list --quick-hadoopcheck
_ Prechecks _
_ master Compile Tests _
+0 🆗mvndep0m 26sMaven dependency ordering for branch
+1 💚mvninstall4m 14smaster passed
+1 💚compile1m 22smaster passed
+1 💚shadedjars6m 23sbranch has no errors when building our shaded downstream artifacts.
+1 💚javadoc0m 54smaster passed
-0 ⚠️patch7m 35sUsed diff version of patch file. Binary files and potentially other changes not applied. Please rebase and squash commits if necessary.
_ Patch Compile Tests _
+0 🆗mvndep0m 15sMaven dependency ordering for patch
+1 💚mvninstall4m 0sthe patch passed
+1 💚compile1m 20sthe patch passed
+1 💚javac1m 20sthe patch passed
+1 💚shadedjars6m 7spatch has no errors when building our shaded downstream artifacts.
-0 ⚠️javadoc0m 36shbase-server generated 9 new + 28 unchanged - 0 fixed = 37 total (was 28)
_ Other Tests _
+1 💚unit1m 49shbase-asyncfs in the patch passed.
+1 💚unit203m 1shbase-server in the patch passed.
234m 54s
SubsystemReport/Notes
DockerClient=19.03.9 Server=19.03.9 base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1970/4/artifact/yetus-jdk8-hadoop3-check/output/Dockerfile
GITHUB PR#1970
Optional Testsjavac javadoc unit shadedjars compile
unameLinux 9f9c61cfcf35 4.15.0-101-generic #102-Ubuntu SMP Mon May 11 10:07:26 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
Build toolmaven
Personalitydev-support/hbase-personality.sh
git revisionmaster / c046120
Default Java1.8.0_232
javadochttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1970/4/artifact/yetus-jdk8-hadoop3-check/output/diff-javadoc-javadoc-hbase-server.txt
Test Resultshttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1970/4/testReport/
Max. process+thread count3206 (vs. ulimit of 12500)
modulesC: hbase-asyncfs hbase-server U: .
Console outputhttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1970/4/console
versionsgit=2.17.1 maven=(cecedd343002696d0abb50b32b541b8a6ba2883f)
Powered byApache Yetus 0.11.1 https://yetus.apache.org

This message was automatically generated.


protected FSDataOutputStream output;

private volatile long syncedLength = 0;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use AtomicUtils.updateMax. It is a util class in hbase-common.

@comnetwork
comnetwork requested a review from Apache9July 2, 2020 02:46
@comnetwork

comnetwork commented Jul 2, 2020

Copy link
Copy Markdown
ContributorAuthor

@Apache9 , Used AtomicUtils to replace synchronized, please have a review again, thanks.

@Apache-HBase

Copy link
Copy Markdown

🎊 +1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec1m 24sDocker mode activated.
_ Prechecks _
+1 💚dupname0m 0sNo case conflicting files found.
+1 💚hbaseanti0m 0sPatch does not have any anti-patterns.
+1 💚@author0m 0sThe patch does not contain any @author tags.
_ master Compile Tests _
+0 🆗mvndep0m 31sMaven dependency ordering for branch
+1 💚mvninstall3m 52smaster passed
+1 💚checkstyle1m 25smaster passed
+1 💚spotbugs2m 39smaster passed
-0 ⚠️patch2m 20sUsed diff version of patch file. Binary files and potentially other changes not applied. Please rebase and squash commits if necessary.
_ Patch Compile Tests _
+0 🆗mvndep0m 12sMaven dependency ordering for patch
+1 💚mvninstall3m 42sthe patch passed
-0 ⚠️checkstyle0m 11shbase-asyncfs: The patch generated 2 new + 1 unchanged - 0 fixed = 3 total (was 1)
-0 ⚠️checkstyle1m 12shbase-server: The patch generated 8 new + 38 unchanged - 0 fixed = 46 total (was 38)
+1 💚whitespace0m 0sThe patch has no whitespace issues.
+1 💚hadoopcheck12m 18sPatch does not cause any errors with Hadoop 3.1.2 3.2.1.
+1 💚spotbugs2m 58sthe patch passed
_ Other Tests _
+1 💚asflicense0m 22sThe patch does not generate ASF License warnings.
38m 44s
SubsystemReport/Notes
DockerClient=19.03.9 Server=19.03.9 base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1970/5/artifact/yetus-general-check/output/Dockerfile
GITHUB PR#1970
Optional Testsdupname asflicense spotbugs hadoopcheck hbaseanti checkstyle
unameLinux b021aa8a3afa 4.15.0-101-generic #102-Ubuntu SMP Mon May 11 10:07:26 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
Build toolmaven
Personalitydev-support/hbase-personality.sh
git revisionmaster / afe2eac
checkstylehttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1970/5/artifact/yetus-general-check/output/diff-checkstyle-hbase-asyncfs.txt
checkstylehttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1970/5/artifact/yetus-general-check/output/diff-checkstyle-hbase-server.txt
Max. process+thread count84 (vs. ulimit of 12500)
modulesC: hbase-asyncfs hbase-server U: .
Console outputhttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1970/5/console
versionsgit=2.17.1 maven=(cecedd343002696d0abb50b32b541b8a6ba2883f) spotbugs=3.1.12
Powered byApache Yetus 0.11.1 https://yetus.apache.org

This message was automatically generated.

@Apache-HBase

Copy link
Copy Markdown

🎊 +1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec1m 30sDocker mode activated.
-0 ⚠️yetus0m 3sUnprocessed flag(s): --brief-report-file --spotbugs-strict-precheck --whitespace-eol-ignore-list --whitespace-tabs-ignore-list --quick-hadoopcheck
_ Prechecks _
_ master Compile Tests _
+0 🆗mvndep0m 20sMaven dependency ordering for branch
+1 💚mvninstall4m 54smaster passed
+1 💚compile1m 31smaster passed
+1 💚shadedjars6m 25sbranch has no errors when building our shaded downstream artifacts.
-0 ⚠️javadoc0m 18shbase-asyncfs in master failed.
-0 ⚠️javadoc0m 41shbase-server in master failed.
-0 ⚠️patch7m 48sUsed diff version of patch file. Binary files and potentially other changes not applied. Please rebase and squash commits if necessary.
_ Patch Compile Tests _
+0 🆗mvndep0m 22sMaven dependency ordering for patch
+1 💚mvninstall4m 38sthe patch passed
+1 💚compile1m 36sthe patch passed
+1 💚javac1m 36sthe patch passed
+1 💚shadedjars6m 26spatch has no errors when building our shaded downstream artifacts.
-0 ⚠️javadoc0m 16shbase-asyncfs in the patch failed.
-0 ⚠️javadoc0m 40shbase-server in the patch failed.
_ Other Tests _
+1 💚unit1m 37shbase-asyncfs in the patch passed.
+1 💚unit191m 46shbase-server in the patch passed.
225m 7s
SubsystemReport/Notes
DockerClient=19.03.12 Server=19.03.12 base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1970/6/artifact/yetus-jdk11-hadoop3-check/output/Dockerfile
GITHUB PR#1970
Optional Testsjavac javadoc unit shadedjars compile
unameLinux fde175799407 4.15.0-101-generic #102-Ubuntu SMP Mon May 11 10:07:26 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
Build toolmaven
Personalitydev-support/hbase-personality.sh
git revisionmaster / afe2eac
Default Java2020-01-14
javadochttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1970/6/artifact/yetus-jdk11-hadoop3-check/output/branch-javadoc-hbase-asyncfs.txt
javadochttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1970/6/artifact/yetus-jdk11-hadoop3-check/output/branch-javadoc-hbase-server.txt
javadochttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1970/6/artifact/yetus-jdk11-hadoop3-check/output/patch-javadoc-hbase-asyncfs.txt
javadochttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1970/6/artifact/yetus-jdk11-hadoop3-check/output/patch-javadoc-hbase-server.txt
Test Resultshttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1970/6/testReport/
Max. process+thread count3011 (vs. ulimit of 12500)
modulesC: hbase-asyncfs hbase-server U: .
Console outputhttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1970/6/console
versionsgit=2.17.1 maven=(cecedd343002696d0abb50b32b541b8a6ba2883f)
Powered byApache Yetus 0.11.1 https://yetus.apache.org

This message was automatically generated.

@Apache-HBase

Copy link
Copy Markdown

🎊 +1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec1m 41sDocker mode activated.
-0 ⚠️yetus0m 3sUnprocessed flag(s): --brief-report-file --spotbugs-strict-precheck --whitespace-eol-ignore-list --whitespace-tabs-ignore-list --quick-hadoopcheck
_ Prechecks _
_ master Compile Tests _
+0 🆗mvndep0m 13sMaven dependency ordering for branch
+1 💚mvninstall3m 54smaster passed
+1 💚compile1m 21smaster passed
+1 💚shadedjars6m 17sbranch has no errors when building our shaded downstream artifacts.
+1 💚javadoc0m 50smaster passed
-0 ⚠️patch7m 27sUsed diff version of patch file. Binary files and potentially other changes not applied. Please rebase and squash commits if necessary.
_ Patch Compile Tests _
+0 🆗mvndep0m 14sMaven dependency ordering for patch
+1 💚mvninstall4m 4sthe patch passed
+1 💚compile1m 17sthe patch passed
+1 💚javac1m 17sthe patch passed
+1 💚shadedjars6m 9spatch has no errors when building our shaded downstream artifacts.
-0 ⚠️javadoc0m 40shbase-server generated 9 new + 28 unchanged - 0 fixed = 37 total (was 28)
_ Other Tests _
+1 💚unit1m 43shbase-asyncfs in the patch passed.
+1 💚unit202m 10shbase-server in the patch passed.
232m 54s
SubsystemReport/Notes
DockerClient=19.03.12 Server=19.03.12 base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1970/6/artifact/yetus-jdk8-hadoop3-check/output/Dockerfile
GITHUB PR#1970
Optional Testsjavac javadoc unit shadedjars compile
unameLinux c5e680611bf6 4.15.0-101-generic #102-Ubuntu SMP Mon May 11 10:07:26 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
Build toolmaven
Personalitydev-support/hbase-personality.sh
git revisionmaster / afe2eac
Default Java1.8.0_232
javadochttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1970/6/artifact/yetus-jdk8-hadoop3-check/output/diff-javadoc-javadoc-hbase-server.txt
Test Resultshttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1970/6/testReport/
Max. process+thread count3659 (vs. ulimit of 12500)
modulesC: hbase-asyncfs hbase-server U: .
Console outputhttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1970/6/console
versionsgit=2.17.1 maven=(cecedd343002696d0abb50b32b541b8a6ba2883f)
Powered byApache Yetus 0.11.1 https://yetus.apache.org

This message was automatically generated.

@Apache9Apache9 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. But please fix the javadoc issues? After you fix the javadoc issues I will merge the PR.

Thanks.

interface WriterBase extends Closeable {
long getLength();
/**
* <pre>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do not need to use pre here? These are just normal text.

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, I would fix it.

@Apache9

Copy link
Copy Markdown
Contributor

Hi, any updates here? @comnetwork
Maybe we should include this in 2.3? It is a nasty bug... @ndimiduk

@comnetwork

comnetwork commented Jul 3, 2020

Copy link
Copy Markdown
ContributorAuthor

Removed the pre tag in the comment and fix the javadoc bug.

@Apache-HBase

Copy link
Copy Markdown

🎊 +1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec1m 55sDocker mode activated.
_ Prechecks _
+1 💚dupname0m 0sNo case conflicting files found.
+1 💚hbaseanti0m 0sPatch does not have any anti-patterns.
+1 💚@author0m 0sThe patch does not contain any @author tags.
_ master Compile Tests _
+0 🆗mvndep0m 22sMaven dependency ordering for branch
+1 💚mvninstall4m 13smaster passed
+1 💚checkstyle1m 28smaster passed
+1 💚spotbugs2m 46smaster passed
-0 ⚠️patch2m 26sUsed diff version of patch file. Binary files and potentially other changes not applied. Please rebase and squash commits if necessary.
_ Patch Compile Tests _
+0 🆗mvndep0m 12sMaven dependency ordering for patch
+1 💚mvninstall3m 55sthe patch passed
-0 ⚠️checkstyle0m 13shbase-asyncfs: The patch generated 2 new + 1 unchanged - 0 fixed = 3 total (was 1)
-0 ⚠️checkstyle1m 15shbase-server: The patch generated 9 new + 38 unchanged - 0 fixed = 47 total (was 38)
+1 💚whitespace0m 0sThe patch has no whitespace issues.
+1 💚hadoopcheck12m 58sPatch does not cause any errors with Hadoop 3.1.2 3.2.1.
+1 💚spotbugs3m 45sthe patch passed
_ Other Tests _
+1 💚asflicense0m 26sThe patch does not generate ASF License warnings.
42m 19s
SubsystemReport/Notes
DockerClient=19.03.9 Server=19.03.9 base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1970/7/artifact/yetus-general-check/output/Dockerfile
GITHUB PR#1970
Optional Testsdupname asflicense spotbugs hadoopcheck hbaseanti checkstyle
unameLinux 96f93069c773 4.15.0-101-generic #102-Ubuntu SMP Mon May 11 10:07:26 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
Build toolmaven
Personalitydev-support/hbase-personality.sh
git revisionmaster / e614b89
checkstylehttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1970/7/artifact/yetus-general-check/output/diff-checkstyle-hbase-asyncfs.txt
checkstylehttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1970/7/artifact/yetus-general-check/output/diff-checkstyle-hbase-server.txt
Max. process+thread count84 (vs. ulimit of 12500)
modulesC: hbase-asyncfs hbase-server U: .
Console outputhttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1970/7/console
versionsgit=2.17.1 maven=(cecedd343002696d0abb50b32b541b8a6ba2883f) spotbugs=3.1.12
Powered byApache Yetus 0.11.1 https://yetus.apache.org

This message was automatically generated.

@Apache9

Copy link
Copy Markdown
Contributor

There are still checkstyle issues?

@Apache-HBase

Copy link
Copy Markdown

🎊 +1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec6m 49sDocker mode activated.
-0 ⚠️yetus0m 3sUnprocessed flag(s): --brief-report-file --spotbugs-strict-precheck --whitespace-eol-ignore-list --whitespace-tabs-ignore-list --quick-hadoopcheck
_ Prechecks _
_ master Compile Tests _
+0 🆗mvndep0m 29sMaven dependency ordering for branch
+1 💚mvninstall4m 35smaster passed
+1 💚compile1m 27smaster passed
+1 💚shadedjars6m 16sbranch has no errors when building our shaded downstream artifacts.
-0 ⚠️javadoc0m 16shbase-asyncfs in master failed.
-0 ⚠️javadoc0m 40shbase-server in master failed.
-0 ⚠️patch7m 30sUsed diff version of patch file. Binary files and potentially other changes not applied. Please rebase and squash commits if necessary.
_ Patch Compile Tests _
+0 🆗mvndep0m 14sMaven dependency ordering for patch
+1 💚mvninstall4m 34sthe patch passed
+1 💚compile1m 27sthe patch passed
+1 💚javac1m 27sthe patch passed
+1 💚shadedjars6m 17spatch has no errors when building our shaded downstream artifacts.
-0 ⚠️javadoc0m 16shbase-asyncfs in the patch failed.
-0 ⚠️javadoc0m 40shbase-server in the patch failed.
_ Other Tests _
+1 💚unit1m 35shbase-asyncfs in the patch passed.
+1 💚unit189m 55shbase-server in the patch passed.
227m 19s
SubsystemReport/Notes
DockerClient=19.03.12 Server=19.03.12 base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1970/7/artifact/yetus-jdk11-hadoop3-check/output/Dockerfile
GITHUB PR#1970
Optional Testsjavac javadoc unit shadedjars compile
unameLinux f23863ee3602 4.15.0-101-generic #102-Ubuntu SMP Mon May 11 10:07:26 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
Build toolmaven
Personalitydev-support/hbase-personality.sh
git revisionmaster / e614b89
Default Java2020-01-14
javadochttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1970/7/artifact/yetus-jdk11-hadoop3-check/output/branch-javadoc-hbase-asyncfs.txt
javadochttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1970/7/artifact/yetus-jdk11-hadoop3-check/output/branch-javadoc-hbase-server.txt
javadochttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1970/7/artifact/yetus-jdk11-hadoop3-check/output/patch-javadoc-hbase-asyncfs.txt
javadochttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1970/7/artifact/yetus-jdk11-hadoop3-check/output/patch-javadoc-hbase-server.txt
Test Resultshttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1970/7/testReport/
Max. process+thread count3600 (vs. ulimit of 12500)
modulesC: hbase-asyncfs hbase-server U: .
Console outputhttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1970/7/console
versionsgit=2.17.1 maven=(cecedd343002696d0abb50b32b541b8a6ba2883f)
Powered byApache Yetus 0.11.1 https://yetus.apache.org

This message was automatically generated.

@Apache-HBase

Copy link
Copy Markdown

🎊 +1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec1m 54sDocker mode activated.
-0 ⚠️yetus0m 3sUnprocessed flag(s): --brief-report-file --spotbugs-strict-precheck --whitespace-eol-ignore-list --whitespace-tabs-ignore-list --quick-hadoopcheck
_ Prechecks _
_ master Compile Tests _
+0 🆗mvndep0m 22sMaven dependency ordering for branch
+1 💚mvninstall4m 10smaster passed
+1 💚compile1m 22smaster passed
+1 💚shadedjars6m 16sbranch has no errors when building our shaded downstream artifacts.
+1 💚javadoc0m 52smaster passed
-0 ⚠️patch7m 26sUsed diff version of patch file. Binary files and potentially other changes not applied. Please rebase and squash commits if necessary.
_ Patch Compile Tests _
+0 🆗mvndep0m 14sMaven dependency ordering for patch
+1 💚mvninstall3m 56sthe patch passed
+1 💚compile1m 20sthe patch passed
+1 💚javac1m 20sthe patch passed
+1 💚shadedjars6m 7spatch has no errors when building our shaded downstream artifacts.
+1 💚javadoc0m 50sthe patch passed
_ Other Tests _
+1 💚unit1m 48shbase-asyncfs in the patch passed.
+1 💚unit205m 13shbase-server in the patch passed.
236m 10s
SubsystemReport/Notes
DockerClient=19.03.9 Server=19.03.9 base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1970/7/artifact/yetus-jdk8-hadoop3-check/output/Dockerfile
GITHUB PR#1970
Optional Testsjavac javadoc unit shadedjars compile
unameLinux b2e71be38d2d 4.15.0-101-generic #102-Ubuntu SMP Mon May 11 10:07:26 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
Build toolmaven
Personalitydev-support/hbase-personality.sh
git revisionmaster / e614b89
Default Java1.8.0_232
Test Resultshttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1970/7/testReport/
Max. process+thread count3037 (vs. ulimit of 12500)
modulesC: hbase-asyncfs hbase-server U: .
Console outputhttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1970/7/console
versionsgit=2.17.1 maven=(cecedd343002696d0abb50b32b541b8a6ba2883f)
Powered byApache Yetus 0.11.1 https://yetus.apache.org

This message was automatically generated.

@comnetwork

Copy link
Copy Markdown
ContributorAuthor

Fixed the checkstyle errors.

@Apache-HBase

Copy link
Copy Markdown

🎊 +1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec1m 33sDocker mode activated.
_ Prechecks _
+1 💚dupname0m 0sNo case conflicting files found.
+1 💚hbaseanti0m 0sPatch does not have any anti-patterns.
+1 💚@author0m 0sThe patch does not contain any @author tags.
_ master Compile Tests _
+0 🆗mvndep0m 35sMaven dependency ordering for branch
+1 💚mvninstall4m 26smaster passed
+1 💚checkstyle1m 34smaster passed
+1 💚spotbugs3m 9smaster passed
-0 ⚠️patch2m 49sUsed diff version of patch file. Binary files and potentially other changes not applied. Please rebase and squash commits if necessary.
_ Patch Compile Tests _
+0 🆗mvndep0m 12sMaven dependency ordering for patch
+1 💚mvninstall4m 20sthe patch passed
+1 💚checkstyle1m 32sthe patch passed
+1 💚whitespace0m 0sThe patch has no whitespace issues.
+1 💚hadoopcheck13m 40sPatch does not cause any errors with Hadoop 3.1.2 3.2.1.
+1 💚spotbugs3m 27sthe patch passed
_ Other Tests _
+1 💚asflicense0m 28sThe patch does not generate ASF License warnings.
43m 32s
SubsystemReport/Notes
DockerClient=19.03.9 Server=19.03.9 base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1970/8/artifact/yetus-general-check/output/Dockerfile
GITHUB PR#1970
Optional Testsdupname asflicense spotbugs hadoopcheck hbaseanti checkstyle
unameLinux b5df25e967f7 4.15.0-101-generic #102-Ubuntu SMP Mon May 11 10:07:26 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
Build toolmaven
Personalitydev-support/hbase-personality.sh
git revisionmaster / e614b89
Max. process+thread count84 (vs. ulimit of 12500)
modulesC: hbase-asyncfs hbase-server U: .
Console outputhttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1970/8/console
versionsgit=2.17.1 maven=(cecedd343002696d0abb50b32b541b8a6ba2883f) spotbugs=3.1.12
Powered byApache Yetus 0.11.1 https://yetus.apache.org

This message was automatically generated.

@Apache-HBase

Copy link
Copy Markdown

🎊 +1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec0m 29sDocker mode activated.
-0 ⚠️yetus0m 3sUnprocessed flag(s): --brief-report-file --spotbugs-strict-precheck --whitespace-eol-ignore-list --whitespace-tabs-ignore-list --quick-hadoopcheck
_ Prechecks _
_ master Compile Tests _
+0 🆗mvndep0m 23sMaven dependency ordering for branch
+1 💚mvninstall4m 11smaster passed
+1 💚compile1m 24smaster passed
+1 💚shadedjars5m 43sbranch has no errors when building our shaded downstream artifacts.
-0 ⚠️javadoc0m 19shbase-asyncfs in master failed.
-0 ⚠️javadoc0m 38shbase-server in master failed.
-0 ⚠️patch7m 4sUsed diff version of patch file. Binary files and potentially other changes not applied. Please rebase and squash commits if necessary.
_ Patch Compile Tests _
+0 🆗mvndep0m 16sMaven dependency ordering for patch
+1 💚mvninstall3m 58sthe patch passed
+1 💚compile1m 26sthe patch passed
+1 💚javac1m 26sthe patch passed
+1 💚shadedjars5m 45spatch has no errors when building our shaded downstream artifacts.
-0 ⚠️javadoc0m 16shbase-asyncfs in the patch failed.
-0 ⚠️javadoc0m 38shbase-server in the patch failed.
_ Other Tests _
+1 💚unit1m 25shbase-asyncfs in the patch passed.
+1 💚unit128m 38shbase-server in the patch passed.
157m 41s
SubsystemReport/Notes
DockerClient=19.03.12 Server=19.03.12 base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1970/8/artifact/yetus-jdk11-hadoop3-check/output/Dockerfile
GITHUB PR#1970
Optional Testsjavac javadoc unit shadedjars compile
unameLinux ef12e9adeb43 4.15.0-58-generic #64-Ubuntu SMP Tue Aug 6 11:12:41 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Build toolmaven
Personalitydev-support/hbase-personality.sh
git revisionmaster / e614b89
Default Java2020-01-14
javadochttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1970/8/artifact/yetus-jdk11-hadoop3-check/output/branch-javadoc-hbase-asyncfs.txt
javadochttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1970/8/artifact/yetus-jdk11-hadoop3-check/output/branch-javadoc-hbase-server.txt
javadochttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1970/8/artifact/yetus-jdk11-hadoop3-check/output/patch-javadoc-hbase-asyncfs.txt
javadochttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1970/8/artifact/yetus-jdk11-hadoop3-check/output/patch-javadoc-hbase-server.txt
Test Resultshttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1970/8/testReport/
Max. process+thread count4032 (vs. ulimit of 12500)
modulesC: hbase-asyncfs hbase-server U: .
Console outputhttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1970/8/console
versionsgit=2.17.1 maven=(cecedd343002696d0abb50b32b541b8a6ba2883f)
Powered byApache Yetus 0.11.1 https://yetus.apache.org

This message was automatically generated.

@Apache-HBase

Copy link
Copy Markdown

🎊 +1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec0m 29sDocker mode activated.
-0 ⚠️yetus0m 3sUnprocessed flag(s): --brief-report-file --spotbugs-strict-precheck --whitespace-eol-ignore-list --whitespace-tabs-ignore-list --quick-hadoopcheck
_ Prechecks _
_ master Compile Tests _
+0 🆗mvndep0m 23sMaven dependency ordering for branch
+1 💚mvninstall3m 36smaster passed
+1 💚compile1m 16smaster passed
+1 💚shadedjars5m 36sbranch has no errors when building our shaded downstream artifacts.
+1 💚javadoc0m 53smaster passed
-0 ⚠️patch6m 51sUsed diff version of patch file. Binary files and potentially other changes not applied. Please rebase and squash commits if necessary.
_ Patch Compile Tests _
+0 🆗mvndep0m 16sMaven dependency ordering for patch
+1 💚mvninstall3m 25sthe patch passed
+1 💚compile1m 13sthe patch passed
+1 💚javac1m 13sthe patch passed
+1 💚shadedjars5m 31spatch has no errors when building our shaded downstream artifacts.
+1 💚javadoc0m 52sthe patch passed
_ Other Tests _
+1 💚unit1m 31shbase-asyncfs in the patch passed.
+1 💚unit137m 49shbase-server in the patch passed.
165m 3s
SubsystemReport/Notes
DockerClient=19.03.12 Server=19.03.12 base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1970/8/artifact/yetus-jdk8-hadoop3-check/output/Dockerfile
GITHUB PR#1970
Optional Testsjavac javadoc unit shadedjars compile
unameLinux b8cee7d31178 4.15.0-60-generic #67-Ubuntu SMP Thu Aug 22 16:55:30 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Build toolmaven
Personalitydev-support/hbase-personality.sh
git revisionmaster / e614b89
Default Java1.8.0_232
Test Resultshttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1970/8/testReport/
Max. process+thread count4405 (vs. ulimit of 12500)
modulesC: hbase-asyncfs hbase-server U: .
Console outputhttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1970/8/console
versionsgit=2.17.1 maven=(cecedd343002696d0abb50b32b541b8a6ba2883f)
Powered byApache Yetus 0.11.1 https://yetus.apache.org

This message was automatically generated.

@Apache9
Apache9 merged commit a7a0e1a into apache:masterJul 4, 2020
asfgit pushed a commit that referenced this pull request Jul 4, 2020
…he expected synced file length. (#1970)
Signed-off-by: Duo Zhang <zhangduo@apache.org>
asfgit pushed a commit that referenced this pull request Jul 4, 2020
…he expected synced file length. (#1970)
Signed-off-by: Duo Zhang <zhangduo@apache.org>
ndimiduk pushed a commit to ndimiduk/hbase that referenced this pull request Jul 6, 2020
…he expected synced file length. (apache#1970)
Signed-off-by: Duo Zhang <zhangduo@apache.org>
future.complete(out.getPos());
long pos = out.getPos();
if(pos > this.syncedLength) {
this.syncedLength = pos;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This read-followedby-update also needs to be atomic, yes?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one is just for test so not a big problem but aligning with other producation implementations is better. Can have an addendum.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, reviewed the code again, actuall, the flush0 method can only be executed in a single thread so no need to use AtomicUtils.updateMax. The AtomicLong is in the ProtobufLogWriter, not the output stream. But the 'if(pos > this.syncedLength) {' is a bit confusing to developers, I prefer we just remove this check...

asfgit pushed a commit that referenced this pull request Jul 7, 2020
…return the expected synced file length. (#1970)"
This reverts commit f834919.
asfgit pushed a commit that referenced this pull request Jul 7, 2020
…return the expected synced file length. (#1970)"
This reverts commit bf587fa.
clarax pushed a commit to clarax/hbase that referenced this pull request Nov 15, 2020
…he expected synced file length. (apache#1970)
Signed-off-by: Duo Zhang <zhangduo@apache.org>
clarax pushed a commit to clarax/hbase that referenced this pull request Nov 15, 2020
…return the expected synced file length. (apache#1970)"
This reverts commit f834919.
symat pushed a commit to symat/hbase that referenced this pull request Feb 17, 2021
…he expected synced file length. (apache#1970)
Author: chenglei
Reason: Bug
Ref: CDPD-15964
Signed-off-by: Duo Zhang <zhangduo@apache.org>
Change-Id: Ie87d5e6f1eb47c48f413a31a0e5507b0090f5fe1
(cherry picked from commit e064d08)
wchevreuil pushed a commit to wchevreuil/hbase that referenced this pull request May 24, 2021
…he expected synced file length. (apache#1970)
Signed-off-by: Duo Zhang <zhangduo@apache.org>
(cherry picked from commit bf587fa)
Change-Id: Ie87d5e6f1eb47c48f413a31a0e5507b0090f5fe1
wchevreuil pushed a commit to wchevreuil/hbase that referenced this pull request May 24, 2021
…return the expected synced file length. (apache#1970)"
This reverts commit bf587fa.
(cherry picked from commit 160c229)
Change-Id: Ifffde0910e6a219956697f417b76da31816a7852
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

@comnetwork@Apache-HBase@wchevreuil@Apache9@ndimiduk