File tree Expand file tree Collapse file tree 7 files changed +16
-17
lines changed
integrationTest/java/org/radarbase/output
main/java/org/radarbase/output Expand file tree Collapse file tree 7 files changed +16
-17
lines changed Original file line number Diff line number Diff line change 1010# See the License for the specific language governing permissions and
1111# limitations under the License.
1212
13- FROM gradle:6.6 .1-jdk11 AS builder
13+ FROM gradle:6.7 .1-jdk11 AS builder
1414
1515RUN mkdir /code
1616WORKDIR /code
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ plugins {
44 id ' com.jfrog.bintray' version ' 1.8.5'
55 id ' maven-publish'
66 id " org.jetbrains.dokka"
7- id ' com.avast.gradle.docker-compose' version " 0.13.4 "
7+ id ' com.avast.gradle.docker-compose' version " 0.14.0 "
88}
99
1010group ' org.radarbase'
@@ -18,16 +18,16 @@ ext {
1818 githubUrl = " https://github.com/${ githubRepoName} "
1919 issueUrl = " ${ githubUrl} /issues"
2020
21- avroVersion = ' 1.10.0 '
22- jacksonVersion = ' 2.11.3 '
21+ avroVersion = ' 1.10.1 '
22+ jacksonVersion = ' 2.12.0 '
2323 hadoopVersion = ' 3.3.0'
2424 jCommanderVersion = ' 1.78'
2525 almworksVersion = ' 1.1.2'
26- junitVersion = ' 5.6.2 '
27- minioVersion = ' 7.1.4 '
28- jedisVersion = ' 3.3 .0'
26+ junitVersion = ' 5.7.0 '
27+ minioVersion = ' 8.0.3 '
28+ jedisVersion = ' 3.4 .0'
2929 slf4jVersion = ' 1.7.30'
30- azureStorageVersion = ' 12.8 .0'
30+ azureStorageVersion = ' 12.9 .0'
3131}
3232
3333repositories {
@@ -142,6 +142,7 @@ task integrationTest(type: Test) {
142142 showStandardStreams = true
143143 setExceptionFormat(" full" )
144144 }
145+ outputs. upToDateWhen { false }
145146 shouldRunAfter test
146147}
147148
@@ -250,5 +251,5 @@ bintray {
250251}
251252
252253wrapper {
253- gradleVersion ' 6.6 .1'
254+ gradleVersion ' 6.7 .1'
254255}
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ services:
1010 - /data
1111
1212 redis :
13- image : bitnami/redis
13+ image : bitnami/redis:6.0
1414 ports :
1515 - " 6379:6379"
1616 environment :
Original file line number Diff line number Diff line change 11distributionBase =GRADLE_USER_HOME
22distributionPath =wrapper/dists
3- distributionUrl =https\://services.gradle.org/distributions/gradle-6.6 .1-bin.zip
3+ distributionUrl =https\://services.gradle.org/distributions/gradle-6.7 .1-bin.zip
44zipStoreBase =GRADLE_USER_HOME
55zipStorePath =wrapper/dists
Original file line number Diff line number Diff line change 11package org.radarbase.output
22
33import io.minio.*
4- import io.minio.PutObjectOptions .MAX_PART_SIZE
4+ import io.minio.ObjectWriteArgs .MAX_PART_SIZE
55import org.junit.jupiter.api.Assertions.assertEquals
66import org.junit.jupiter.api.Test
77import org.radarbase.output.config.*
Original file line number Diff line number Diff line change @@ -93,7 +93,7 @@ class SourceDataCleaner(
9393 .take(maxFilesPerTopic)
9494 .takeWhile { ! isClosed.get() }
9595 .count { file ->
96- val extractionSuccessful = if (extractionCheck.isExtracted(file)) {
96+ if (extractionCheck.isExtracted(file)) {
9797 logger.info(" Removing {}" , file.path)
9898 Timer .time(" cleaner.delete" ) {
9999 sourceStorage.delete(file.path)
@@ -105,7 +105,6 @@ class SourceDataCleaner(
105105 accountant.remove(file.range.mapRange { it.ensureToOffset() })
106106 false
107107 }
108- extractionSuccessful
109108 }
110109 }
111110
@@ -122,4 +121,3 @@ class SourceDataCleaner(
122121 private val logger = LoggerFactory .getLogger(SourceDataCleaner ::class .java)
123122 }
124123}
125-
Original file line number Diff line number Diff line change @@ -55,9 +55,9 @@ class S3TargetStorage(config: S3Config) : TargetStorage {
5555 override fun status (path : Path ): TargetStorage .PathStatus ? {
5656 return try {
5757 s3Client.statObject(StatObjectArgs .Builder ().objectBuild(bucket, path))
58- .let { TargetStorage .PathStatus (it.length ()) }
58+ .let { TargetStorage .PathStatus (it.size ()) }
5959 } catch (ex: ErrorResponseException ) {
60- if (ex.errorResponse().errorCode () == ErrorCode . NO_SUCH_KEY || ex.errorResponse().errorCode () == ErrorCode . NO_SUCH_OBJECT ) {
60+ if (ex.errorResponse().code () == " NoSuchKey " || ex.errorResponse().code () == " ResourceNotFound " ) {
6161 null
6262 } else {
6363 throw ex
You can’t perform that action at this time.
0 commit comments