-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
Conversation
💔 -1 overall
This message was automatically generated. |
There was a problem hiding this 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; |
There was a problem hiding this comment.
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;
… places when listing table descriptors
🎊 +1 overall
This message was automatically generated. |
… places when listing table descriptors (#1115) Signed-off-by: Viraj Jasani <vjasani@apache.org>
assertEquals(get, listByNs); | ||
return get; | ||
} | ||
|
There was a problem hiding this comment.
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); |
There was a problem hiding this comment.
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"
Pushed an addendum to fix the error prone problem. |
… in some places when listing table descriptors (apache#1115)" This reverts commit ab00399.
… places when listing table descriptors (apache#1115) Signed-off-by: Viraj Jasani <vjasani@apache.org>
… places when listing table descriptors (apache#1115) Signed-off-by: Viraj Jasani <vjasani@apache.org>
… places when listing table descriptors (apache#1115) Signed-off-by: Viraj Jasani <vjasani@apache.org>
… places when listing table descriptors