Skip to content
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

HBASE-23782 We still reference the hard coded meta descriptor in some… #1115

Merged
merged 1 commit into from
Feb 3, 2020

Conversation

Apache9
Copy link
Contributor

@Apache9 Apache9 commented Feb 2, 2020

… places when listing table descriptors

@Apache9 Apache9 self-assigned this Feb 2, 2020
@Apache9 Apache9 added the bug label Feb 2, 2020
@Apache-HBase
Copy link

💔 -1 overall

Vote Subsystem Runtime Comment
+0 🆗 reexec 1m 23s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 0s No case conflicting files found.
+1 💚 hbaseanti 0m 0s Patch does not have any anti-patterns.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
+1 💚 test4tests 0m 0s The patch appears to include 1 new or modified test files.
_ master Compile Tests _
+1 💚 mvninstall 5m 56s master passed
+1 💚 compile 0m 58s master passed
+1 💚 checkstyle 1m 16s master passed
+1 💚 shadedjars 5m 5s branch has no errors when building our shaded downstream artifacts.
+1 💚 javadoc 0m 36s master passed
+0 🆗 spotbugs 4m 46s Used deprecated FindBugs config; considering switching to SpotBugs.
+1 💚 findbugs 4m 43s master passed
_ Patch Compile Tests _
+1 💚 mvninstall 5m 39s the patch passed
+1 💚 compile 0m 58s the patch passed
+1 💚 javac 0m 58s the patch passed
+1 💚 checkstyle 1m 14s hbase-server: The patch generated 0 new + 24 unchanged - 5 fixed = 24 total (was 29)
+1 💚 whitespace 0m 0s The patch has no whitespace issues.
+1 💚 shadedjars 5m 6s patch has no errors when building our shaded downstream artifacts.
+1 💚 hadoopcheck 17m 27s Patch does not cause any errors with Hadoop 2.8.5 2.9.2 or 3.1.2.
+1 💚 javadoc 0m 36s the patch passed
-1 ❌ findbugs 4m 51s hbase-server generated 1 new + 0 unchanged - 0 fixed = 1 total (was 0)
_ Other Tests _
+1 💚 unit 160m 55s hbase-server in the patch passed.
+1 💚 asflicense 0m 28s The patch does not generate ASF License warnings.
224m 8s
Reason Tests
FindBugs module:hbase-server
Dead store to td in new org.apache.hadoop.hbase.util.FSTableDescriptors(Configuration, FileSystem, Path, boolean, boolean, Function) At FSTableDescriptors.java:new org.apache.hadoop.hbase.util.FSTableDescriptors(Configuration, FileSystem, Path, boolean, boolean, Function) At FSTableDescriptors.java:[line 142]
Subsystem Report/Notes
Docker Client=19.03.5 Server=19.03.5 base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1115/1/artifact/out/Dockerfile
GITHUB PR #1115
Optional Tests dupname asflicense javac javadoc unit spotbugs findbugs shadedjars hadoopcheck hbaseanti checkstyle compile
uname Linux 044f0ead7991 4.15.0-74-generic #84-Ubuntu SMP Thu Dec 19 08:06:28 UTC 2019 x86_64 GNU/Linux
Build tool maven
Personality /home/jenkins/jenkins-slave/workspace/Base-PreCommit-GitHub-PR_PR-1115/out/precommit/personality/provided.sh
git revision master / 5a3ad6f
Default Java 1.8.0_181
findbugs https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1115/1/artifact/out/new-findbugs-hbase-server.html
Test Results https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1115/1/testReport/
Max. process+thread count 5430 (vs. ulimit of 10000)
modules C: hbase-server U: hbase-server
Console output https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1115/1/console
versions git=2.11.0 maven=2018-06-17T18:33:14Z) findbugs=3.1.11
Powered by Apache Yetus 0.11.1 https://yetus.apache.org

This message was automatically generated.

Copy link
Contributor

@virajjasani virajjasani left a comment

Choose a reason for hiding this comment

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

Left one minor nit, +1 overall

@@ -153,7 +148,6 @@ public FSTableDescriptors(final Configuration conf, final FileSystem fs,
updateTableDescriptor(td);
}
}
this.metaTableDescriptor = td;
Copy link
Contributor

Choose a reason for hiding this comment

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

Looks like this constructor can have just these initializations:

    this.fs = fs;
    this.rootdir = rootdir;
    this.fsreadonly = fsreadonly;
    this.usecache = usecache;

@Apache-HBase
Copy link

🎊 +1 overall

Vote Subsystem Runtime Comment
+0 🆗 reexec 1m 5s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 0s No case conflicting files found.
+1 💚 hbaseanti 0m 1s Patch does not have any anti-patterns.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
+1 💚 test4tests 0m 0s The patch appears to include 1 new or modified test files.
_ master Compile Tests _
+1 💚 mvninstall 6m 0s master passed
+1 💚 compile 1m 1s master passed
+1 💚 checkstyle 1m 16s master passed
+1 💚 shadedjars 5m 11s branch has no errors when building our shaded downstream artifacts.
+1 💚 javadoc 0m 38s master passed
+0 🆗 spotbugs 4m 43s Used deprecated FindBugs config; considering switching to SpotBugs.
+1 💚 findbugs 4m 40s master passed
_ Patch Compile Tests _
+1 💚 mvninstall 5m 30s the patch passed
+1 💚 compile 0m 59s the patch passed
+1 💚 javac 0m 59s the patch passed
+1 💚 checkstyle 1m 16s hbase-server: The patch generated 0 new + 21 unchanged - 8 fixed = 21 total (was 29)
+1 💚 whitespace 0m 0s The patch has no whitespace issues.
+1 💚 shadedjars 5m 7s patch has no errors when building our shaded downstream artifacts.
+1 💚 hadoopcheck 17m 32s Patch does not cause any errors with Hadoop 2.8.5 2.9.2 or 3.1.2.
+1 💚 javadoc 0m 37s the patch passed
+1 💚 findbugs 4m 53s the patch passed
_ Other Tests _
+1 💚 unit 158m 29s hbase-server in the patch passed.
+1 💚 asflicense 0m 28s The patch does not generate ASF License warnings.
221m 46s
Subsystem Report/Notes
Docker Client=19.03.5 Server=19.03.5 base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1115/2/artifact/out/Dockerfile
GITHUB PR #1115
Optional Tests dupname asflicense javac javadoc unit spotbugs findbugs shadedjars hadoopcheck hbaseanti checkstyle compile
uname Linux 0e5b78028e31 4.15.0-74-generic #84-Ubuntu SMP Thu Dec 19 08:06:28 UTC 2019 x86_64 GNU/Linux
Build tool maven
Personality /home/jenkins/jenkins-slave/workspace/Base-PreCommit-GitHub-PR_PR-1115/out/precommit/personality/provided.sh
git revision master / 12f1c7c
Default Java 1.8.0_181
Test Results https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1115/2/testReport/
Max. process+thread count 5471 (vs. ulimit of 10000)
modules C: hbase-server U: hbase-server
Console output https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1115/2/console
versions git=2.11.0 maven=2018-06-17T18:33:14Z) findbugs=3.1.11
Powered by Apache Yetus 0.11.1 https://yetus.apache.org

This message was automatically generated.

@Apache9 Apache9 merged commit ab00399 into apache:master Feb 3, 2020
asfgit pushed a commit that referenced this pull request Feb 3, 2020
… places when listing table descriptors (#1115)

Signed-off-by: Viraj Jasani <vjasani@apache.org>
assertEquals(get, listByNs);
return get;
}

Copy link
Contributor

Choose a reason for hiding this comment

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

Nice test

} catch (TableInfoMissingException e) {
TableDescriptorBuilder builder = createMetaTableDescriptorBuilder(conf);
if (metaObserver != null) {
metaObserver.apply(builder);
Copy link
Contributor

Choose a reason for hiding this comment

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

Just FYI, this change broke the error prone build.
https://builds.apache.org/job/HBase%20Nightly/job/master/1618/artifact/output-general/patch-compile-root.txt
[ERROR] /home/jenkins/jenkins-slave/workspace/HBase_Nightly_master@2/component/hbase-server/src/main/java/org/apache/hadoop/hbase/util/FSTableDescriptors.java:[147,28] error: [ReturnValueIgnored] Return value of this method must be used
(see https://errorprone.info/bugpattern/ReturnValueIgnored)
Did you mean to remove this line?
[INFO] 1 error

You can reproduce with "mvn clean compile -DskipTests -PerrorProne"

@Apache9
Copy link
Contributor Author

Apache9 commented Feb 4, 2020

Pushed an addendum to fix the error prone problem.

bharathv added a commit to bharathv/hbase that referenced this pull request Feb 5, 2020
… in some places when listing table descriptors (apache#1115)"

This reverts commit ab00399.
thangTang pushed a commit to thangTang/hbase that referenced this pull request Apr 16, 2020
… places when listing table descriptors (apache#1115)

Signed-off-by: Viraj Jasani <vjasani@apache.org>
thangTang pushed a commit to thangTang/hbase that referenced this pull request Apr 16, 2020
… places when listing table descriptors (apache#1115)

Signed-off-by: Viraj Jasani <vjasani@apache.org>
infraio pushed a commit to infraio/hbase that referenced this pull request Aug 17, 2020
… places when listing table descriptors (apache#1115)

Signed-off-by: Viraj Jasani <vjasani@apache.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
5 participants