Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public final class OmUtils {
// OzoneManager#addS3GVolumeToDB()}.
public static final long EPOCH_ID_SHIFT = 62; // 64 - 2
public static final long REVERSE_EPOCH_ID_SHIFT = 2; // 64 - EPOCH_ID_SHIFT
public static final long MAX_TRXN_ID = (long) ((1 << 54) - 2);
public static final long MAX_TRXN_ID = (1L << 54) - 2;
public static final int EPOCH_WHEN_RATIS_NOT_ENABLED = 1;
public static final int EPOCH_WHEN_RATIS_ENABLED = 2;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,5 +148,10 @@ public void testGetOzoneManagerServiceId() throws IOException {
".ids) configured"));
}
}

@Test
public void checkMaxTransactionID() {
Assert.assertEquals((long) (Math.pow(2, 54) - 2), OmUtils.MAX_TRXN_ID);
}
}