Skip to content

[BUG] integTest failed due to compileTestKotlin FAILED. Introduced by changes of create snapshot workflow in core #824

@zhichao-aws

Description

@zhichao-aws

What is the bug?
Opensearch core changes create snapshot workflow in #7118. The PR changes the constructor args, leads to compileTestKotlin error.
Here is the error log:

e: path/to/index-management/src/test/kotlin/org/opensearch/indexmanagement/snapshotmanagement/TestUtils.kt:212:18 None of the following functions can be called with the arguments supplied:
public constructor SnapshotInfo(p0: SnapshotsInProgress.Entry!) defined in org.opensearch.snapshots.SnapshotInfo
public constructor SnapshotInfo(p0: StreamInput!) defined in org.opensearch.snapshots.SnapshotInfo
public constructor SnapshotInfo(p0: SnapshotId!, p1: (Mutable)List<String!>!, p2: (Mutable)List<String!>!, p3: Long, p4: String!, p5: Long, p6: Int, p7: (Mutable)List<SnapshotShardFailure!>!, p8: Boolean!, p9: (Mutable)Map<String!, Any!>!, p10: Boolean!) defined in org.opensearch.snapshots.SnapshotInfo
public constructor SnapshotInfo(p0: SnapshotId!, p1: (Mutable)List<String!>!, p2: (Mutable)List<String!>!, p3: SnapshotState!) defined in org.opensearch.snapshots.SnapshotInfo
public/package/ constructor SnapshotInfo(p0: SnapshotId!, p1: (Mutable)List<String!>!, p2: (Mutable)List<String!>!, p3: SnapshotState!, p4: String!, p5: Version!, p6: Long, p7: Long, p8: Int, p9: Int, p10: (Mutable)List<SnapshotShardFailure!>!, p11: Boolean!, p12: (Mutable)Map<String!, Any!>!, p13: Boolean!) defined in org.opensearch.snapshots.SnapshotInfo
public constructor SnapshotInfo(p0: SnapshotId!, p1: (Mutable)List<String!>!, p2: (Mutable)List<String!>!, p3: SnapshotState!, p4: Version!) defined in org.opensearch.snapshots.SnapshotInfo

FAILURE: Build failed with an exception.

How can one reproduce the bug?
Steps to reproduce the behavior:
./gradlew integTest

What is the expected behavior?
no error

What is your host/environment?

  • OS: [e.g. iOS]
  • Version [e.g. 22]
  • Plugins

Do you have any screenshots?
If applicable, add screenshots to help explain your problem.

Do you have any additional context?
Add any other context about the problem.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions