Skip to content

Commit

Permalink
update default refresh policy to wait_for (#144)
Browse files Browse the repository at this point in the history
* update default refresh policy to wait_for

Signed-off-by: Peng Huo <[email protected]>

* update UT

Signed-off-by: Peng Huo <[email protected]>

---------

Signed-off-by: Peng Huo <[email protected]>
  • Loading branch information
penghuo authored Nov 9, 2023
1 parent d5e6738 commit 5828ffa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ object FlintSparkConf {
val REFRESH_POLICY = FlintConfig("spark.datasource.flint.write.refresh_policy")
.datasourceOption()
.doc("refresh_policy, possible value are NONE(false), IMMEDIATE(true), WAIT_UNTIL(wait_for)")
.createWithDefault("false")
.createWithDefault(FlintOptions.DEFAULT_REFRESH_POLICY)

val SCROLL_SIZE = FlintConfig("spark.datasource.flint.read.scroll_size")
.datasourceOption()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class FlintSparkConfSuite extends FlintSuite {

// default value
assert(flintOptions.getPort == 9200)
assert(flintOptions.getRefreshPolicy == "false")
assert(flintOptions.getRefreshPolicy == "wait_for")
}
}

Expand Down

0 comments on commit 5828ffa

Please sign in to comment.