dsmiley commented on a change in pull request #1669: URL: https://github.com/apache/lucene-solr/pull/1669#discussion_r454756640
########## File path: solr/core/src/java/org/apache/solr/core/SolrCore.java ########## @@ -191,6 +191,11 @@ private String name; private String logid; // used to show what name is set + /** + * A unique id to differentiate multiple instances of the same core + * If we reload a core, the name remains same , but the id will be new + */ + public final UUID uniqueId = UUID.randomUUID(); Review comment: The primitive long instance field would be final (immutable). A static final AtomicLong (which is mutable) would only be used to generate a new core UID. ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org