Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ class RecordBatchingSinker[B <: RecordBatch](

log.info(s"Committing batch $batch to storage")
Metrics.commitDuration.recordCallable(() =>
retryOnFailureIf(retryPolicy)(!batchCommittedAfterFailure(batch)) {
retryOnFailureIf(retryPolicy)(isRunning.get() && !batchCommittedAfterFailure(batch)) {
batchStorage.commitBatch(batch)
}
)
Expand All @@ -86,7 +86,7 @@ class RecordBatchingSinker[B <: RecordBatch](
log.warn("Failed discarding batch")
}
} catch {
case e if isInterruptionException(e) =>
case e if isInterruptionException(e) && !isRunning.get() =>
log.debug("Batch commit thread interrupted")
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ object Retry extends Logging {
def isInterruptionException(e: Throwable): Boolean = e match {
case _: InterruptedException | _: InterruptedIOException | _: ClosedByInterruptException | _: InterruptException =>
true
case e: Throwable if e.getCause != null && isInterruptionException(e.getCause) => true
case _ => false
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import com.adform.streamloader.behaviors.BasicLoaderBehaviors
import com.adform.streamloader.fixtures._
import com.adform.streamloader.storage._
import com.zaxxer.hikari.{HikariConfig, HikariDataSource}
import org.scalatest.Ignore
import org.scalatest.concurrent.Eventually
import org.scalatest.funspec.AnyFunSpec
import org.scalatest.matchers.should.Matchers
Expand All @@ -21,6 +22,9 @@ import org.scalatestplus.scalacheck.Checkers
import scala.concurrent.ExecutionContext

@Slow
// Temporarily ignore Vertica tests, vertica-ce image is not available on DockerHub
// https://github.com/vertica/vertica-containers/issues/64
@Ignore
class VerticaIntegrationTests
extends AnyFunSpec
with Matchers
Expand Down
Loading