[HUDI-3772] Fixing auto adjustment of lock configs for deltastreamer (#5207)
This commit is contained in:
committed by
GitHub
parent
cc3737be50
commit
84064a9b08
@@ -81,7 +81,9 @@ class HoodieStreamingSink(sqlContext: SQLContext,
|
||||
// Override to use direct markers. In Structured streaming, timeline server is closed after
|
||||
// first micro-batch and subsequent micro-batches do not have timeline server running.
|
||||
// Thus, we can't use timeline-server-based markers.
|
||||
val updatedOptions = options.updated(HoodieWriteConfig.MARKERS_TYPE.key(), MarkerType.DIRECT.name())
|
||||
var updatedOptions = options.updated(HoodieWriteConfig.MARKERS_TYPE.key(), MarkerType.DIRECT.name())
|
||||
// we need auto adjustment enabled for streaming sink since async table services are feasible within the same JVM.
|
||||
updatedOptions = updatedOptions.updated(HoodieWriteConfig.AUTO_ADJUST_LOCK_CONFIGS.key, "true")
|
||||
|
||||
retry(retryCnt, retryIntervalMs)(
|
||||
Try(
|
||||
|
||||
Reference in New Issue
Block a user