Skip to content

Commit

Permalink
PARQUET-2401: Synchronize on final fields (#1224)
Browse files Browse the repository at this point in the history
  • Loading branch information
amousavigourabi authored Dec 4, 2023
1 parent 84b84e9 commit 44fa76b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public class KeyToolkit {
public static final int KEK_LENGTH_DEFAULT = 128;

private static long lastCacheCleanForKeyRotationTime = 0;
private static Object lastCacheCleanForKeyRotationTimeLock = new Object();
private static final Object lastCacheCleanForKeyRotationTimeLock = new Object();
// KMS servers typically allow to run key rotation once in a few hours / a day.
// We clean KEK writer cache (if needed) after 1 hour
private static final int CACHE_CLEAN_PERIOD_FOR_KEY_ROTATION = 60 * 60 * 1000; // 1 hour
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ public static Collection<Object[]> data() {
public TemporaryFolder temporaryFolder = new TemporaryFolder();

@Rule
public ErrorCollector errorCollector = new ErrorCollector();
public final ErrorCollector errorCollector = new ErrorCollector();

private static final Base64.Encoder encoder = Base64.getEncoder();
private static final String FOOTER_MASTER_KEY =
Expand Down

0 comments on commit 44fa76b

Please sign in to comment.