You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What is the bug?
CCR gradle builds are failing with the below mentioned error since yesterday.
./gradlew assemble
Starting a Gradle Daemon (subsequent builds will be faster)
=======================================
OpenSearch Build Hamster says Hello!
Gradle Version : 8.4
OS Info : Linux 5.15.153.1-microsoft-standard-WSL2 (amd64)
JDK Version : 11 (Ubuntu JDK)
JAVA_HOME : /usr/lib/jvm/java-11-openjdk-amd64
Random Testing Seed : 5C3DD7AD5EFF1789
In FIPS 140 mode : false
=======================================
> Task :compileKotlin FAILED
e: file:///path/CCR/opensearch-project-cross-cluster-replication/src/main/kotlin/org/opensearch/replication/repository/RemoteClusterRepository.kt:83:1 Class 'RemoteClusterRepository' is not abstract and does not implement abstract member public abstract fun finalizeSnapshot(p0: ShardGenerations!, p1: Long, p2: Metadata!, p3: SnapshotInfo!, p4: Version!, p5: Function<ClusterState!, ClusterState!>!, p6: Priority!, p7: ActionListener<RepositoryData!>!): Unit defined in org.opensearch.repositories.Repository
e: file:///path/CCR/opensearch-project-cross-cluster-replication/src/main/kotlin/org/opensearch/replication/repository/RemoteClusterRepository.kt:125:5 'finalizeSnapshot' overrides nothing
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':compileKotlin'.
> A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction
> Compilation error. See log for more details
Details:
Branch: main, Platform: linux
How can one reproduce the bug?
Steps to reproduce the behavior:
Clone the latest project [email protected]:opensearch-project/cross-cluster-replication.git
Run gradle assemble ./gradlew assemble
Do you have any additional context?
This issue is seen since this PR #15124 is merged in Opensearch repo 5d ago. The finalizeSnapshot method of the class Repository.java has an additional new argument Priority which needs to be passed while invoking this function.
In CCR, the RemoteClusterRepository.kt class overrides the finalizeSnapshot method and this now needs to be updated to add Priority field too.
I locally made this one change and it resolved the gradle build issue.
The text was updated successfully, but these errors were encountered:
What is the bug?
CCR gradle builds are failing with the below mentioned error since yesterday.
Details:
Branch: main, Platform: linux
How can one reproduce the bug?
Steps to reproduce the behavior:
./gradlew assemble
Do you have any additional context?
This issue is seen since this PR #15124 is merged in Opensearch repo 5d ago. The finalizeSnapshot method of the class Repository.java has an additional new argument Priority which needs to be passed while invoking this function.
In CCR, the RemoteClusterRepository.kt class overrides the finalizeSnapshot method and this now needs to be updated to add Priority field too.
I locally made this one change and it resolved the gradle build issue.
The text was updated successfully, but these errors were encountered: