Skip to content

Commit

Permalink
Setting the ID field is still required
Browse files Browse the repository at this point in the history
  • Loading branch information
ennru committed Mar 29, 2024
1 parent cff3c14 commit 0341fc5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions solr/src/test/scala/docs/scaladsl/SolrSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ import java.io.File
import java.util.concurrent.atomic.AtomicInteger
import java.util.{Arrays, Optional}

import scala.annotation.nowarn

import akka.Done
import akka.actor.ActorSystem
import akka.stream.alpakka.solr._
Expand Down Expand Up @@ -746,6 +748,7 @@ class SolrSpec extends AnyWordSpec with Matchers with BeforeAndAfterAll with Sca
TestKit.shutdownActorSystem(system)
}

@nowarn("msg=deprecated") // FIXME #2917 Deprecated getIdField in Solrj 8.11.x
private def setupCluster(): Unit = {
val targetDir = new File("solr/target")
val testWorkingDir =
Expand All @@ -769,6 +772,7 @@ class SolrSpec extends AnyWordSpec with Matchers with BeforeAndAfterAll with Sca
solrClient.getClusterStateProvider
.asInstanceOf[ZkClientClusterStateProvider]
.uploadConfig(confDir.toPath, "conf")
solrClient.setIdField("router")

assertTrue(!solrClient.getZkStateReader.getClusterState.getLiveNodes.isEmpty)
}
Expand Down

0 comments on commit 0341fc5

Please sign in to comment.