Skip to content

Commit

Permalink
remove unnecessary log
Browse files Browse the repository at this point in the history
Signed-off-by: Sean Kao <[email protected]>
  • Loading branch information
seankao-az committed Mar 19, 2024
1 parent af4da21 commit a965229
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -391,10 +391,7 @@ class FlintSpark(val spark: SparkSession) extends Logging {
.startTransaction(indexName, dataSourceName)
.initialLog(latest => latest.state == REFRESHING)
.transientLog(latest => latest.copy(state = UPDATING))
.finalLog(latest => {
logInfo("Updating index state to active")
latest.copy(state = ACTIVE)
})
.finalLog(latest => latest.copy(state = ACTIVE))
.commit(_ => {
flintClient.updateIndex(indexName, index.metadata)
logInfo("Update index options complete")
Expand All @@ -415,7 +412,6 @@ class FlintSpark(val spark: SparkSession) extends Logging {
.finalLog(latest => {
logInfo("Scheduling index state monitor")
flintIndexMonitor.startMonitor(indexName)
logInfo("Updating index state to refreshing")
latest.copy(state = REFRESHING)
})
.commit(_ => {
Expand Down

0 comments on commit a965229

Please sign in to comment.