Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add reminder to add BWC codecs on major version upgrade (#86844)
Codifies the requirement to add Lucene BWC codecs and corresponding tests when upgrading Elasticsearch to the next major version. Relates #81210
- Loading branch information
Showing
2 changed files
with
25 additions
and
0 deletions.
There are no files selected for viewing
23 changes: 23 additions & 0 deletions
23
...ions/src/test/java/org/elasticsearch/xpack/lucene/bwc/codecs/OldCodecsAvailableTests.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License | ||
* 2.0; you may not use this file except in compliance with the Elastic License | ||
* 2.0. | ||
*/ | ||
|
||
package org.elasticsearch.xpack.lucene.bwc.codecs; | ||
|
||
import org.elasticsearch.Version; | ||
import org.elasticsearch.test.ESTestCase; | ||
|
||
public class OldCodecsAvailableTests extends ESTestCase { | ||
|
||
/** | ||
* Reminder to add Lucene BWC codecs under {@link org.elasticsearch.xpack.lucene.bwc.codecs} whenever Elasticsearch is upgraded | ||
* to the next major Lucene version. | ||
*/ | ||
public void testLuceneBWCCodecsAvailable() { | ||
assertEquals("Add Lucene BWC codecs for Elasticsearch version 7", 8, Version.CURRENT.major); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters