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

[BUG] org.opensearch.ingest.common.CopyProcessorTests.testCopyWithRemoveSource is flaky #12884

Closed
gaobinlong opened this issue Mar 24, 2024 · 0 comments
Labels
bug Something isn't working Indexing Indexing, Bulk Indexing and anything related to indexing v2.14.0 v3.0.0 Issues and PRs related to version 3.0.0

Comments

@gaobinlong
Copy link
Collaborator

Describe the bug

The test fails when the targetField's name is same to the source field's name but overrideTarget is false, even though we use random() to generate both of the field names, but there's a probability that they are same.

java.lang.IllegalArgumentException: target field [c] already exists
	at __randomizedtesting.SeedInfo.seed([505149C6724DFA24:534B5A60D6CE3A91]:0)
	at org.opensearch.ingest.common.CopyProcessor.execute(CopyProcessor.java:100)
	at org.opensearch.ingest.common.CopyProcessorTests.testCopyWithRemoveSource(CopyProcessorTests.java:78)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)

Related component

Indexing

To Reproduce

./gradlew ':modules:ingest-common:test' --tests "org.opensearch.ingest.common.CopyProcessorTests.testCopyWithRemoveSource" -Dtests.seed=505149C6724DFA24 -Dtests.security.manager=true -Dtests.jvm.argline="-XX:TieredStopAtLevel=1 -XX:ReservedCodeCacheSize=64m" -Dtests.locale=de-LU -Dtests.timezone=Asia/Jerusalem -Druntime.java=21

Expected behavior

The test always pass.

Additional Details

Host/Environment (please complete the following information):

  • OS: [e.g. iOS]
  • Version [3.0.0-snapshot]
@gaobinlong gaobinlong added bug Something isn't working untriaged labels Mar 24, 2024
@github-actions github-actions bot added the Indexing Indexing, Bulk Indexing and anything related to indexing label Mar 24, 2024
@reta reta added v3.0.0 Issues and PRs related to version 3.0.0 v2.14.0 and removed untriaged labels Mar 26, 2024
@reta reta closed this as completed Mar 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Indexing Indexing, Bulk Indexing and anything related to indexing v2.14.0 v3.0.0 Issues and PRs related to version 3.0.0
Projects
Status: No status
Development

No branches or pull requests

2 participants