Skip to content

Commit

Permalink
fix test oom issue
Browse files Browse the repository at this point in the history
  • Loading branch information
soad003 committed Nov 18, 2024
1 parent 9b72531 commit ae6ea0f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -87,4 +87,5 @@ lazy val root = (project in file(".")).
"org.apache.spark" %% "spark-sql" % "3.5.3" % Provided,
"org.apache.spark" %% "spark-graphx" % "3.5.3" % Provided,
"graphframes" % "graphframes" % "0.8.3-spark3.5-s_2.12" % Provided),
javaOptions ++= Seq("-Xms10g", "-Xmx10g", "-XX:+CMSClassUnloadingEnabled")
)
5 changes: 4 additions & 1 deletion src/test/scala/org/graphsense/utxo/TransformationTest.scala
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ class TransformationTest extends TestBase {
t.computeAddressCluster(regInputs, addressIds, false)
.sort(F.addressId)
.persist()

val clusterAddresses =
t.computeClusterAddresses(addressClusterCoinjoin)
.sort(F.clusterId, F.addressId)
Expand Down Expand Up @@ -135,6 +134,10 @@ class TransformationTest extends TestBase {
t.computeClusterRelations(plainClusterRelations, exchangeRates).persist()
val noClusterRelations = clusterRelations.count()

plainClusterRelations.unpersist()
clusterInputs.unpersist()
clusterOutputs.unpersist()
addresses.unpersist()
val cluster =
t.computeCluster(basicCluster, clusterRelations)
.sort(F.clusterId)
Expand Down

0 comments on commit ae6ea0f

Please sign in to comment.