Skip to content

sync develop to master - #246

Merged
pallakartheekreddy merged 7 commits into
masterfrom
develop
Jun 8, 2026
Merged

sync develop to master#246
pallakartheekreddy merged 7 commits into
masterfrom
develop

Conversation

@chethann007

Copy link
Copy Markdown
Collaborator

No description provided.

chethann007 and others added 7 commits May 4, 2026 21:13
- Swap Maven dependency: elasticsearch-rest-high-level-client:7.10.2
  → opensearch-rest-high-level-client:2.19.5
- Rename all org.elasticsearch.* imports to org.opensearch.* in
  ElasticSearchUtil.scala; XContentType stays in
  org.opensearch.common.xcontent (opensearch-x-content artifact)
- Remove dead certIndexType = "_doc" constant from
  CertificateGeneratorConfig; never consumed by ElasticSearchUtil

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Replace docker.elastic.co/elasticsearch/elasticsearch:7.10.2 with
opensearchproject/opensearch:2.19.5. Add OPENSEARCH_JAVA_OPTS and
disable security plugin for local dev. Service name kept as
elasticsearch to avoid config churn across env files.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
OpenSearch 2.x JARs are compiled with Java 11 and use CONSTANT_Dynamic
constant pool entries (tag 17). Scala 2.12.11's class file reader
crashes on these with "bad constant pool index: 0". Fixed in 2.12.13;
2.12.19 is the latest patch with additional JDK 17/21 compat fixes.
No API or binary format changes within the 2.12 line.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- ProgramUserInfoFunction: remove parens from StringBuilder.length()
  call; Scala defines length as a no-paren method, stricter compiler
  rejects length() as applying Int as a function
- jobs-distribution assembly: add missing <id> element required by
  maven-assembly-plugin 3.7.1 (previously unenforced in 3.0.0)
- jobs-distribution pom: add appendAssemblyId=false to preserve
  existing artifact naming convention

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
ElasticSearchUtil.bulkIndexWithIndexId() was reusing the same BulkRequest
instance across loop iterations without clearing it after each bulk() call.
This caused subsequent batches to resend all previously added operations,
leading to exponential duplication and unbounded memory growth.

Changed request from immutable val to mutable var and reinitialize after
each successful bulk flush.

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
feat: migrate data-pipeline from Elasticsearch 7.10.2 to OpenSearch 2.19.5
@pallakartheekreddy
pallakartheekreddy merged commit cbe9e07 into master Jun 8, 2026
5 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants