davsclaus opened a new pull request, #30954: URL: https://github.com/apache/camel/pull/30954
# Description Part of [CAMEL-23832](https://issues.apache.org/jira/browse/CAMEL-23832). The umbrella ticket stays open. ## Summary This PR rewrites the component description and 45 texts of camel-elasticsearch: 20 endpoint options, 15 component options and 10 headers. The texts of apiKey and of the endpoint maxRetryTimeout were already clear and are unchanged. What was wrong with the old texts: - waitForActiveShards (option and header) said it applies to index creation. It sets the shard copies that Index and Update wait for. - hostAddresses (component) said that "the ip and port options must be left blank", but these options do not exist. - The component maxRetryTimeout said "The time in ms before retry", but the option has no effect. It now has the same text as the endpoint option. - clusterName, size, from, operation, indexName and the headers did not say what they do. clusterName is used only in log messages. size and from apply only to Search with a JSON text or Map body. Each header replaces an option, and a request of the Java API Client in the body sets the operation. - The texts did not say that the client option makes the hostAddresses, timeout, authentication, SSL, sniffer and disconnect options unused, or that certificatePath and sslContextParameters need enableSSL. Sources: the Camel code (ElasticsearchProducer, ElasticsearchComponent, ElasticsearchActionRequestConverter, ElasticsearchScrollRequestIterator), and the Elasticsearch Java API Client, REST client and sniffer 9.5.7. ### Found, not changed - sniffAfterFailureDelay has no effect. The Sniffer uses it only in `sniffOnFailure()`, which is called only by a `SniffOnFailureListener` registered on the RestClient, and the producer does not register one. The new text says so. - useScroll together with disconnect=true: the producer runs its cleanup right after it creates the scroll iterator, and the cleanup closes the client. The scroll requests that the iterator sends later then use a closed client. - When a request fails, the cleanup is skipped (it is chained with `thenAccept` on the future). The CamelElasticsearchIndexName, CamelElasticsearchSize, CamelElasticsearchFrom and CamelElasticsearchWaitForActiveShards headers that the producer set from the options then stay on the message. With disconnect=true the client is also not closed after that exchange. The producer also sets CamelElasticsearchEnableDocumentOnlyMode from the option and never removes it. - The component option certificatePath has no `supportFileReference = true`, but the endpoint option has it. Both are loaded the same way. - Without hostAddresses and without the client option, the producer only logs a warning at start. The first exchange then fails with an exception that does not name the cause. ## Tests - There is no new test, as only description text changes. - A script compared the component JSON with the parent commit: only `description` fields changed (46 texts: the component, 20 endpoint options, 15 component options, 10 headers). # Target - [x] I checked that the commit is targeting the correct branch (Camel 4 uses the `main` branch) # Tracking - [x] If this is a large change, bug fix, or code improvement, I checked there is a [JIRA issue](https://issues.apache.org/jira/browse/CAMEL) filed for the change (usually before you start working on it). # Apache Camel coding standards and style - [x] I checked that each commit in the pull request has a meaningful subject line and body. - [x] I ran the formatter and built the module, then regenerated the catalog copy, `dsl/camel-endpointdsl` and `dsl/camel-componentdsl`, and committed all generated changes. # AI-assisted contributions - [x] If this PR includes AI-generated code, commits have proper co-authorship attribution (e.g., `Co-authored-by` trailers) and the PR description identifies the AI tool used. _Claude Code on behalf of davsclaus_ 🤖 Generated with [Claude Code](https://claude.com/claude-code) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
