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

ElasticsearchIO and JobTest Integration #5590

Open
kevinjos opened this issue Jan 30, 2025 · 0 comments
Open

ElasticsearchIO and JobTest Integration #5590

kevinjos opened this issue Jan 30, 2025 · 0 comments

Comments

@kevinjos
Copy link

The ElasticsearchIO testId is currently defined as

// remove the mapperFactory from the test id
override def testId: String =
  s"ElasticsearchIO(${esOptions.nodes}, ${esOptions.usernameAndPassword})"

In addition, a JobTest pipeline output must be unique and only written to once. Combine, this makes testing a pipeline that writes to Elasticsearch more than once challenging. I suggest allowing for an Elasticsearch index name in the ElasticsearchOptions case class that would be used by testId as well as passed down to IndexBuilder.

I'm unsure how common this ES access pattern is in Scio Pipelines. My use case requires replicating BigQuery tables to Elasticsearch. To work with the existing constraints I could parameterize the job and replicate 1 bq table to 1 es index at a time rather than N bq tables to M es indexes in one shot.

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

No branches or pull requests

1 participant