-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Address and remove all occurrences of the Java annotation @UpdateForV9 (ES-9378) #119105
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
Changes from 4 commits
3f35694
1c6ce3e
3703d91
5347852
3ee310a
887a816
86539f4
c3d57fe
dfe189b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,8 +13,8 @@ | |
import org.elasticsearch.cluster.metadata.IndexMetadata; | ||
import org.elasticsearch.cluster.metadata.Metadata; | ||
import org.elasticsearch.common.settings.Settings; | ||
import org.elasticsearch.core.UpdateForV9; | ||
import org.elasticsearch.index.IndexVersion; | ||
import org.elasticsearch.index.IndexVersions; | ||
import org.elasticsearch.indices.SystemIndexDescriptor; | ||
import org.elasticsearch.indices.SystemIndexDescriptorUtils; | ||
import org.elasticsearch.indices.SystemIndices; | ||
|
@@ -31,7 +31,8 @@ | |
public class TransportGetFeatureUpgradeStatusActionTests extends ESTestCase { | ||
|
||
public static String TEST_SYSTEM_INDEX_PATTERN = ".test*"; | ||
private static final IndexVersion TEST_OLD_VERSION = IndexVersion.fromId(6000099); | ||
// Version just before MINIMUM_COMPATIBLE in order to check that UpgradeStatus.MIGRATION_NEEDED is set correctly | ||
private static final IndexVersion TEST_OLD_VERSION = IndexVersion.fromId(IndexVersions.MINIMUM_COMPATIBLE.id() - 100); | ||
|
||
private static final ClusterState CLUSTER_STATE = getClusterState(); | ||
private static final SystemIndices.Feature FEATURE = getFeature(); | ||
|
||
|
@@ -85,8 +86,6 @@ private static ClusterState getClusterState() { | |
.numberOfReplicas(0) | ||
.build(); | ||
|
||
@UpdateForV9(owner = UpdateForV9.Owner.CORE_INFRA) | ||
// Once we start testing 9.x, we should update this test to use a 7.x "version created" | ||
IndexMetadata indexMetadata2 = IndexMetadata.builder(".test-index-2") | ||
.settings(Settings.builder().put("index.version.created", TEST_OLD_VERSION).build()) | ||
.numberOfShards(1) | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,6 @@ | |
import org.elasticsearch.cluster.node.DiscoveryNode; | ||
import org.elasticsearch.common.io.stream.StreamInput; | ||
import org.elasticsearch.common.io.stream.StreamOutput; | ||
import org.elasticsearch.core.UpdateForV9; | ||
import org.elasticsearch.transport.TransportRequest; | ||
import org.elasticsearch.xpack.core.deprecation.DeprecationIssue; | ||
|
||
|
@@ -32,19 +31,13 @@ private NodesDeprecationCheckAction() { | |
super(NAME); | ||
} | ||
|
||
@UpdateForV9(owner = UpdateForV9.Owner.CORE_INFRA) // this can be replaced with TransportRequest.Empty in v9 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Slack thread confirming that we don't need it anymore: https://elastic.slack.com/archives/C8UUBNASY/p1733330314431679 |
||
public static class NodeRequest extends TransportRequest { | ||
|
||
public NodeRequest() {} | ||
|
||
public NodeRequest(StreamInput in) throws IOException { | ||
super(in); | ||
} | ||
|
||
@Override | ||
public void writeTo(StreamOutput out) throws IOException { | ||
super.writeTo(out); | ||
} | ||
} | ||
|
||
public static class NodeResponse extends BaseNodeResponse { | ||
|
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.
PR for 8.x: #118492