Skip to content

Commit 1ce521d

Browse files
Fix feature test failure
1 parent d3ade11 commit 1ce521d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main/scala/com/datastax/cdm/job/BaseJob.scala

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,9 @@ abstract class BaseJob[T: ClassTag] extends App {
6969
maxPartition = getMaxPartition(propertyHelper.getString(KnownProperties.PARTITION_MAX), hasRandomPartitioner)
7070
coveragePercent = propertyHelper.getInteger(KnownProperties.TOKEN_COVERAGE_PERCENT)
7171
numSplits = propertyHelper.getInteger(KnownProperties.PERF_NUM_PARTS)
72-
this.fileName = propertyHelper.getString(KnownProperties.PARTITIONS_TOKEN_RANGE_FILE)
72+
if ("".equals(this.fileName)) {
73+
this.fileName = propertyHelper.getString(KnownProperties.PARTITIONS_TOKEN_RANGE_FILE)
74+
}
7375
abstractLogger.info("PARAM -- Min Partition: " + minPartition)
7476
abstractLogger.info("PARAM -- Max Partition: " + maxPartition)
7577
abstractLogger.info("PARAM -- Number of Splits : " + numSplits)

0 commit comments

Comments
 (0)