Skip to content

[Obs AI Assistant] Summarize function related test failures #218497

@viduni94

Description

@viduni94

With the latest ES versions, the API test and a functional test related to the summarize function is failing.

In the API test, the error seen is:

Unhandled Promise rejection detected:

Error: Interceptor "Conversation: "Hello from LLM Proxy"" timed out after 30000ms
    at Timeout._onTimeout (create_llm_proxy.ts:319:33)
    at listOnTimeout (node:internal/timers:581:17)
    at processTimers (node:internal/timers:519:7)

Terminating process...
         │ info Killing running serverless ES nodes.

See related slack thread - https://elastic.slack.com/archives/C037J0RKRAN/p1744816323560039?thread_ts=1744811280.462969&cid=C037J0RKRAN

Failure when merging to main - #218327 (comment)
Failure when merging to 8.x - #218327 (comment)

In the functional test, the error seen is:
status: 500 org.elasticsearch.index.mapper.MapperException: timed out while waiting for a dynamic mapping update

info [r.suppressed] [ftr] path: /.kibana-observability-ai-assistant-kb/_doc/e0e6c856-a9de-4673-9c73-e2d4672d8805, params: {refresh=wait_for, index=.kibana-observability-ai-assistant-kb, id=e0e6c856-a9de-4673-9c73-e2d4672d8805}, status: 500 org.elasticsearch.index.mapper.MapperException: timed out while waiting for a dynamic mapping update
      	at [email protected]/org.elasticsearch.action.bulk.TransportShardBulkAction$1.onTimeout(TransportShardBulkAction.java:199)
      	at [email protected]/org.elasticsearch.cluster.ClusterStateObserver$ContextPreservingListener.onTimeout(ClusterStateObserver.java:390)
      	at [email protected]/org.elasticsearch.cluster.ClusterStateObserver$ObserverClusterStateListener.onTimeout(ClusterStateObserver.java:303)
      	at [email protected]/org.elasticsearch.cluster.service.ClusterApplierService$NotifyTimeout.run(ClusterApplierService.java:682)
      	at [email protected]/org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingRunnable.run(ThreadContext.java:977)
      	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1095)
      	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:619)
      	at java.base/java.lang.Thread.run(Thread.java:1447)
 proc [kibana] [2025-04-16T15:37:32.527-04:00][ERROR][plugins.observabilityAIAssistant.service.kb] Failed to add entry to knowledge base TimeoutError: Request timed out {"service":{"node":{"roles":["background_tasks","ui"]}}}

See related Slack thread - https://elastic.slack.com/archives/C05J7LXR5DE/p1744822078219769
Related issue - #218327

Haven't found the root cause yet. It could be a ES related issue as these tests or the function hasn't been changed recently.

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions