File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
ice-rest-catalog/src/main/java/org/apache/iceberg Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change 3737import org .apache .iceberg .util .Tasks ;
3838import org .slf4j .Logger ;
3939import org .slf4j .LoggerFactory ;
40+ import software .amazon .awssdk .core .exception .SdkServiceException ;
4041
4142public abstract class BaseMetastoreTableOperations extends BaseMetastoreOperations
4243 implements TableOperations {
@@ -188,6 +189,13 @@ protected void refreshFromMetadataLocation(
188189 if (!Objects .equal (currentMetadataLocation , newLocation )) {
189190 LOG .info ("Refreshing table metadata from new version: {}" , newLocation );
190191
192+ if (shouldRetry == null ) {
193+ shouldRetry =
194+ e ->
195+ e instanceof SdkServiceException
196+ && ((SdkServiceException ) e ).isRetryableException ();
197+ }
198+
191199 AtomicReference <TableMetadata > newMetadata = new AtomicReference <>();
192200 Tasks .foreach (newLocation )
193201 .retry (numRetries )
You can’t perform that action at this time.
0 commit comments