Class SearchContextMissingNodesException

All Implemented Interfaces:
Serializable, Writeable, ToXContent, ToXContentFragment

public class SearchContextMissingNodesException extends ElasticsearchException
Exception thrown when a search context references nodes that have left the cluster.

This exception indicates that a previously created search context is no longer valid because one or more of the nodes it depends on have left the cluster. This typically occurs when a client tries to fetch additional pages of search results after some nodes have become unavailable. The exception provides details about the missing nodes and the context that is no longer valid.

The exception is returned with HTTP status 404 (NOT_FOUND) when serialized to REST responses.

See Also:
  • Field Details

    • SEARCH_CONTEXT_MISSING_NODES_EXCEPTION_VERSION

      public static final TransportVersion SEARCH_CONTEXT_MISSING_NODES_EXCEPTION_VERSION
      The transport version at which this exception type was introduced.
  • Constructor Details

    • SearchContextMissingNodesException

      public SearchContextMissingNodesException(SearchContextMissingNodesException.ContextType contextType, Set<String> missingNodeIds)
      Constructs a new SearchContextMissingNodesException.
      Parameters:
      contextType - the type of search context
      missingNodeIds - the set of node IDs that have left the cluster
    • SearchContextMissingNodesException

      public SearchContextMissingNodesException(StreamInput in) throws IOException
      Constructs a new SearchContextMissingNodesException from a StreamInput. Used for deserialization during transport communication between nodes.
      Parameters:
      in - the input stream to read from
      Throws:
      IOException - if an I/O error occurs while reading from the stream
  • Method Details