Skip to content

Commit 6069d9e

Browse files
author
annie-mac
committed
changes
1 parent c87ad91 commit 6069d9e

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

sdk/cosmos/azure-cosmos-spark_3_2-12/src/main/scala/com/azure/cosmos/changeFeedMetrics/ChangeFeedMetricsListener.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ private[cosmos] class ChangeFeedMetricsListener(
4343
)
4444
}
4545

46-
logTrace(s"onTaskEnd for partition index $index, changesCnt $changesCnt, lsnGap $lsnGap")
46+
logInfo(s"onTaskEnd for partition index $index, changesCnt $changesCnt, lsnGap $lsnGap")
4747
}
4848
}
4949
} catch {

sdk/cosmos/azure-cosmos-spark_3_2-12/src/test/scala/com/azure/cosmos/spark/SampleStructuredStreamingE2EMain.scala

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ object SampleStructuredStreamingE2EMain {
1414
def main(args: Array[String]) {
1515
val cosmosEndpoint = TestConfigurations.HOST
1616
val cosmosMasterKey = TestConfigurations.MASTER_KEY
17-
val cosmosDatabase = "TestDatabase"
18-
val cosmosContainer = "TestContainerMulti"
17+
val cosmosDatabase = "SampleDatabase"
18+
val cosmosContainer = "GreenTaxiRecords"
1919

2020
// val client = new CosmosClientBuilder()
2121
// .endpoint(cosmosEndpoint)
@@ -53,7 +53,15 @@ object SampleStructuredStreamingE2EMain {
5353
"spark.cosmos.read.inferSchema.enabled" -> "false",
5454
"spark.cosmos.changeFeed.startFrom" -> "Beginning",
5555
"spark.cosmos.changeFeed.mode" -> "Incremental",
56-
"spark.cosmos.changeFeed.itemCountPerTriggerHint" -> "1",
56+
"spark.cosmos.changeFeed.itemCountPerTriggerHint" -> "10000",
57+
"spark.cosmos.preferredRegionsList" -> "[West Europe, North Europe]",
58+
"spark.cosmos.throughputControl.enabled" -> "true",
59+
"spark.cosmos.throughputControl.name" -> "CopyReadFromSource",
60+
"spark.cosmos.throughputControl.targetThroughputThreshold" -> "0.95",
61+
"spark.cosmos.throughputControl.globalControl.database" -> "SampleDatabase",
62+
"spark.cosmos.throughputControl.globalControl.container" -> "ThroughputControl",
63+
"spark.cosmos.clientTelemetry.enabled" -> "true",
64+
"spark.cosmos.read.partitioning.strategy" -> "Restrictive",
5765
"spark.cosmos.diagnostics" -> "feed"
5866
)
5967
val changeFeed_df = spark.readStream.format("cosmos.oltp.changeFeed").options(changeFeedCfg).load()

0 commit comments

Comments
 (0)