Skip to content

Commit

Permalink
fix a test error message
Browse files Browse the repository at this point in the history
  • Loading branch information
linzhou-db committed Oct 9, 2024
1 parent 5ae145c commit 42e3297
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ private[sharing] object RetryUtils extends Logging {
", totalDuration=" + totalDuration + " : " + e.getMessage,
e
)
if (shouldRetry(e) && times <= numRetries && totalDuration <= maxDurationMillis) {
if (shouldRetry(e) && times <= 2 && totalDuration <= maxDurationMillis) {
logWarning(s"Sleeping $sleepMs ms to retry on error: ${e.getMessage}.")
sleeper(sleepMs)
sleepMs *= 2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,8 @@ class DeltaSharingSuite extends QueryTest with SharedSparkSession with DeltaShar
.option("startingVersion", 0).load(tablePath)
checkAnswer(df, Nil)
}
assert (ex.getMessage.contains("""400 Bad Request {"errorCode":"RESOURCE_DOES_NOT_EXIST""""))
assert (ex.getMessage.contains("""400 Bad Request"""))
assert (ex.getMessage.contains("""{"errorCode":"RESOURCE_DOES_NOT_EXIST""""))
}

integrationTest("azure support") {
Expand Down

0 comments on commit 42e3297

Please sign in to comment.