Skip to content
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

[ML] inference hits error during reindex: Error in inference process: [inference canceled as process is stopping] #115959

Open
wwang500 opened this issue Oct 30, 2024 · 1 comment
Assignees
Labels
>bug :ml Machine learning Team:ML Meta label for the ML team

Comments

@wwang500
Copy link

Environment:

Serverless ElasticSearch project (Oct 29, 2024)

Step to reproduce:

  1. Add an inference endpoint
PUT _inference/sparse_embedding/elser-endpoint
{
  "service": "elasticsearch", 
  "service_settings": {"model_id": ".elser_model_2_linux-x86_64", "num_threads": 4, "adaptive_allocations": {"enabled": true, "min_number_of_allocations":2}}
}
  1. create an index with semantic_text field mapping
PUT semantic-embeddings-2
{
  "mappings": {
    "properties": {
      "message": { 
        "type": "semantic_text", 
        "inference_id": "elser-endpoint" 
      }
    }
  }
}
  1. Restore a test dataset filebeat-length which has a message field, (message me if need the dataset)
  2. Run reindex with size 50
POST _reindex?wait_for_completion=false
{
  "source": {
    "index": "filebeat-length",
    "query": {
      "exists": {
        "field": "message"
      }
    }, 
    "size": 50
  },
  "dest": {
    "index": "semantic-embeddings-2"
  }
}

Observed:

After ~20 minutes, reindex stopped, the task contains errors:

    "failures": [
      {
        "index": "semantic-embeddings-2",
        "id": "a76p05IBEL3KhHcxIADt",
        "cause": {
          "type": "exception",
          "reason": "Exception when running inference id [elser-endpoint] on field [message]",
          "caused_by": {
            "type": "status_exception",
            "reason": "Error in inference process: [inference canceled as process is stopping]"
          }
        },
        "status": 500
      },
@wwang500 wwang500 added :ml Machine learning >bug labels Oct 30, 2024
@elasticsearchmachine elasticsearchmachine added the Team:ML Meta label for the ML team label Oct 30, 2024
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/ml-core (Team:ML)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>bug :ml Machine learning Team:ML Meta label for the ML team
Projects
None yet
Development

No branches or pull requests

3 participants