Skip to content

Commit

Permalink
Fix broken IT
Browse files Browse the repository at this point in the history
Signed-off-by: Chen Dai <[email protected]>
  • Loading branch information
dai-chen committed Feb 7, 2024
1 parent 694d603 commit a8f51f0
Showing 1 changed file with 16 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,17 +78,23 @@ class FlintSparkTransactionITSuite extends OpenSearchTransactionSuite with Match
}

test("incremental refresh index") {
flint
.skippingIndex()
.onTable(testTable)
.addPartitions("year", "month")
.options(FlintSparkIndexOptions(Map("incremental_refresh" -> "true")))
.create()
flint.refreshIndex(testFlintIndex)
withTempDir { checkpointDir =>
flint
.skippingIndex()
.onTable(testTable)
.addPartitions("year", "month")
.options(
FlintSparkIndexOptions(
Map(
"incremental_refresh" -> "true",
"checkpoint_location" -> checkpointDir.getAbsolutePath)))
.create()
flint.refreshIndex(testFlintIndex)

val latest = latestLogEntry(testLatestId)
latest should contain("state" -> "active")
latest("jobStartTime").asInstanceOf[Number].longValue() should be > 0L
val latest = latestLogEntry(testLatestId)
latest should contain("state" -> "active")
latest("jobStartTime").asInstanceOf[Number].longValue() should be > 0L
}
}

test("auto refresh index") {
Expand Down

0 comments on commit a8f51f0

Please sign in to comment.