Skip to content

Commit

Permalink
[trinodb#5] fail fast when iceberg ranger error occurs
Browse files Browse the repository at this point in the history
  • Loading branch information
向阿鲲 authored and fengguangyuan committed Mar 9, 2022
1 parent cf039a4 commit bfb19ea
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,8 @@ protected void refreshFromMetadataLocation(String newLocation)
Tasks.foreach(newLocation)
.retry(20)
.exponentialBackoff(100, 5000, 600000, 4.0)
.throwFailureWhenFinished()
.shouldRetryTest(e -> e.getCause() == null || !e.getCause().toString().contains("Permission denied"))
.run(metadataLocation -> newMetadata.set(
TableMetadataParser.read(this, io().newInputFile(metadataLocation))));

Expand Down

0 comments on commit bfb19ea

Please sign in to comment.