Skip to content

Commit

Permalink
Deletes FateTxId (#4370)
Browse files Browse the repository at this point in the history
FateTxId has now been fully replaced by FateId, and can be safely
deleted
  • Loading branch information
kevinrr888 authored Mar 15, 2024
1 parent 61ce280 commit b9867c4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 70 deletions.
62 changes: 0 additions & 62 deletions core/src/main/java/org/apache/accumulo/core/fate/FateTxId.java

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

import java.util.Arrays;

import org.apache.accumulo.core.fate.FateTxId;
import org.apache.accumulo.core.fate.FateId;
import org.junit.jupiter.api.Test;

public class FastFormatTest {
Expand Down Expand Up @@ -121,13 +121,10 @@ public void testArrayOutOfBounds() {

@Test
public void testHexString() {
final String PREFIX = "FATE[";
final String SUFFIX = "]";
String formattedTxId = FateTxId.formatTid(64L);
String hexStr = FastFormat.toHexString(PREFIX, 64L, SUFFIX);
assertEquals(formattedTxId, hexStr);
long txid = FateTxId.fromString("FATE[2e429160071c63d8]");
assertEquals("FATE[2e429160071c63d8]", FastFormat.toHexString(PREFIX, txid, SUFFIX));
String prefix = "FATE:USER:";
assertEquals(FateId.formatTid(987654321L), FastFormat.toHexString(987654321L));
long txid = FateId.from(prefix + "2e429160071c63d8").getTid();
assertEquals(prefix + "2e429160071c63d8", FastFormat.toHexString(prefix, txid, ""));
assertEquals(String.format("%016x", 64L), FastFormat.toHexString(64L));
assertEquals(String.format("%016x", 0X2e429160071c63d8L),
FastFormat.toHexString(0X2e429160071c63d8L));
Expand Down

0 comments on commit b9867c4

Please sign in to comment.