s1monw commented on a change in pull request #2212:
URL: https://github.com/apache/lucene-solr/pull/2212#discussion_r559620857



##########
File path: lucene/core/src/java/org/apache/lucene/index/IndexWriter.java
##########
@@ -1009,6 +1009,14 @@ public IndexWriter(Directory d, IndexWriterConfig conf) 
throws IOException {
         changed();
 
       } else if (reader != null) {
+        if (reader.segmentInfos.getIndexCreatedVersionMajor() < 
Version.MIN_SUPPORTED_MAJOR) {

Review comment:
       yes we verify that it's the same major as the index we are adding to.




----------------------------------------------------------------
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:
[email protected]



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

Reply via email to