Class ForgetFollowerRequest
- All Implemented Interfaces:
JsonpSerializable
A following index takes out retention leases on its leader index. These leases are used to increase the likelihood that the shards of the leader index retain the history of operations that the shards of the following index need to run replication. When a follower index is converted to a regular index by the unfollow API (either by directly calling the API or by index lifecycle management tasks), these leases are removed. However, removal of the leases can fail, for example when the remote cluster containing the leader index is unavailable. While the leases will eventually expire on their own, their extended existence can cause the leader index to hold more history than necessary and prevent index lifecycle management from performing some operations on the leader index. This API exists to enable manually removing the leases when the unfollow API is unable to do so.
NOTE: This API does not stop replication by a following index. If you use this API with a follower index that is still actively following, the following index will add back retention leases on the leader. The only purpose of this API is to handle the case of failure to remove the following retention leases after the unfollow API is invoked.
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.RequestBase
RequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<ForgetFollowerRequest>Json deserializer forForgetFollowerRequeststatic final Endpoint<ForgetFollowerRequest,ForgetFollowerResponse, ErrorResponse> Endpoint "ccr.forget_follower". -
Method Summary
Modifier and TypeMethodDescriptionfinal StringAPI name:follower_clusterfinal StringAPI name:follower_indexfinal StringAPI name:follower_index_uuidfinal Stringindex()Required - the name of the leader index for which specified follower retention leases should be removedfinal StringAPI name:leader_remote_clusterstatic ForgetFollowerRequestvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidfinal Timetimeout()Period to wait for a response.Methods inherited from class co.elastic.clients.elasticsearch._types.RequestBase
toString
-
Field Details
-
_DESERIALIZER
Json deserializer forForgetFollowerRequest -
_ENDPOINT
Endpoint "ccr.forget_follower".
-
-
Method Details
-
of
public static ForgetFollowerRequest of(Function<ForgetFollowerRequest.Builder, ObjectBuilder<ForgetFollowerRequest>> fn) -
followerCluster
API name:follower_cluster -
followerIndex
API name:follower_index -
followerIndexUuid
API name:follower_index_uuid -
index
Required - the name of the leader index for which specified follower retention leases should be removedAPI name:
index -
leaderRemoteCluster
API name:leader_remote_cluster -
timeout
Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.API name:
timeout -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
setupForgetFollowerRequestDeserializer
protected static void setupForgetFollowerRequestDeserializer(ObjectDeserializer<ForgetFollowerRequest.Builder> op)
-