psalagnac commented on code in PR #5384:
URL: https://github.com/apache/solr/pull/5384#discussion_r4696387500


##########
solr/core/src/java/org/apache/solr/core/ConfigSetService.java:
##########
@@ -113,8 +114,17 @@ private static ConfigSetService instantiate(CoreContainer 
coreContainer) {
     }
   }
 
-  private void bootstrapConfigSet(CoreContainer coreContainer) {
-    // bootstrap _default conf and solr.configset.bootstrap.confdir if 
provided via system property
+  /**
+   * Called once at startup in SolrCloud mode. Does nothing by default; an 
implementation may call
+   * {@link #bootstrapDefaultConfigSets()}.
+   */
+  protected void bootstrapConfigSet(CoreContainer coreContainer) {}

Review Comment:
   Not sure why we have this indirection. My understand is we should always 
have the same default config set, regardless of the service implementation.
   
   Instead, can't we directly invoke `bootstrapDefaultConfigSets()` iif we have 
a non null ZK controller?
   
   



##########
solr/core/src/java/org/apache/solr/handler/admin/ShowFileRequestHandler.java:
##########
@@ -172,12 +175,8 @@ private void showFromZooKeeper(
         List<String> fchildren = zkClient.getChildren(adminFile + "/" + f, 
null);
         if (fchildren.size() > 0) {
           fileInfo.add("directory", true);
-        } else {
-          // TODO? content type
-          fileInfo.add("size", f.length());

Review Comment:
   Good catch!



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to