Roiocam commented on code in PR #180: URL: https://github.com/apache/pekko-persistence-jdbc/pull/180#discussion_r1580405653
########## core/src/test/scala/org/apache/pekko/persistence/jdbc/query/LegacyJournalDaoStreamMessagesMemoryTest.scala: ########## @@ -0,0 +1,140 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * license agreements; and to You under the Apache License, version 2.0: + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * This file is part of the Apache Pekko project, which was derived from Akka. + */ + +/* + * Copyright (C) 2014 - 2019 Dennis Vriend <https://github.com/dnvriend> + * Copyright (C) 2019 - 2021 Lightbend Inc. <https://www.lightbend.com> + */ + +package org.apache.pekko.persistence.jdbc.query + +import com.typesafe.config.{ ConfigValue, ConfigValueFactory } +import org.apache.pekko.persistence.jdbc.journal.dao.legacy.ByteArrayJournalDao +import org.apache.pekko.persistence.{ AtomicWrite, PersistentRepr } +import org.apache.pekko.serialization.SerializationExtension +import org.apache.pekko.stream.scaladsl.{ Sink, Source } +import org.apache.pekko.stream.testkit.scaladsl.TestSink +import org.scalatest.concurrent.PatienceConfiguration.Timeout +import org.slf4j.LoggerFactory + +import java.lang.management.{ ManagementFactory, MemoryMXBean } +import java.util.UUID +import scala.collection.immutable +import scala.concurrent.ExecutionContext +import scala.concurrent.duration._ +import scala.util.{ Failure, Success } + +object LegacyJournalDaoStreamMessagesMemoryTest { + + val configOverrides: Map[String, ConfigValue] = Map( + "jdbc-journal.fetch-size" -> ConfigValueFactory.fromAnyRef("100"), + "jdbc-journal.dao" -> ConfigValueFactory.fromAnyRef( + "org.apache.pekko.persistence.jdbc.journal.dao.legacy.ByteArrayJournalDao")) Review Comment: use legacy dao to make it work. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
