Skip to content

Commit d3a10bc

Browse files
committed
no throw
1 parent d708de3 commit d3a10bc

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

src/main/java/com/uid2/admin/cloudencryption/CloudEncryptionKeyManager.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ public void backfillKeys() throws Exception {
7272
LOGGER.info("Key backfill complete. Diff: {}", diff);
7373
} catch (Exception e) {
7474
LOGGER.error("Key backfill failed", e);
75-
throw e;
7675
}
7776
}
7877

src/main/java/com/uid2/admin/managers/KeysetManager.java

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,16 @@
77
import com.uid2.shared.auth.ClientKey;
88
import com.uid2.shared.auth.Keyset;
99
import com.uid2.shared.auth.Role;
10+
import com.uid2.shared.cloud.CloudStorageException;
1011
import com.uid2.admin.auth.AdminKeyset;
1112
import com.uid2.shared.model.ClientType;
1213

1314
import java.time.Instant;
1415
import java.util.*;
1516

17+
import org.slf4j.Logger;
18+
import org.slf4j.LoggerFactory;
19+
1620
import static java.lang.Math.max;
1721

1822
public class KeysetManager {
@@ -21,6 +25,8 @@ public class KeysetManager {
2125
private final AdminKeysetWriter keysetStoreWriter;
2226
private final IKeysetKeyManager keysetKeyManager;
2327

28+
private static final Logger LOGGER = LoggerFactory.getLogger(KeysetManager.class);
29+
2430
private final boolean enableKeysets;
2531

2632
public KeysetManager(RotatingAdminKeysetStore keysetProvider, AdminKeysetWriter keysetStoreWriter,
@@ -165,6 +171,12 @@ public void createAdminKeysets(Map<Integer, Keyset> keysets) throws Exception{
165171
}
166172
}
167173

168-
keysetStoreWriter.upload(collection, null);
174+
try{
175+
keysetStoreWriter.upload(collection, null);
176+
}
177+
catch (CloudStorageException e)
178+
{
179+
LOGGER.error("Failed to create admin keysets", e);
180+
}
169181
}
170182
}

0 commit comments

Comments
 (0)