Skip to content

Commit

Permalink
Fix TabletManagementIteratorIT log volume replacements test
Browse files Browse the repository at this point in the history
MOdify filename used to create the log entry, such that it
is now a fully qualified path

Fixes apache#4004
  • Loading branch information
dlmarion committed Dec 1, 2023
1 parent acc2a5c commit 0076900
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@

import com.google.common.collect.Iterables;
import com.google.common.collect.Sets;
import com.google.common.net.HostAndPort;

/**
* Test to ensure that the {@link TabletManagementIterator} properly skips over tablet information
Expand All @@ -102,8 +101,6 @@
public class TabletManagementIteratorIT extends AccumuloClusterHarness {
private final static Logger log = LoggerFactory.getLogger(TabletManagementIteratorIT.class);

private final HostAndPort validHost = HostAndPort.fromParts("default", 8080);

@Override
protected Duration defaultTimeout() {
return Duration.ofMinutes(3);
Expand Down Expand Up @@ -447,8 +444,8 @@ private void createLogEntry(AccumuloClient client, String table, String tableNam
TableId.of(client.tableOperations().tableIdMap().get(tableNameToModify));
KeyExtent extent = new KeyExtent(tableIdToModify, new Text("some split"), null);
Mutation m = new Mutation(extent.toMetaRow());
LogEntry logEntry = new LogEntry(
java.nio.file.Path.of(validHost.toString(), UUID.randomUUID().toString()).toString());
String fileName = "file:/accumulo/wal/localhost+9997/" + UUID.randomUUID().toString();
LogEntry logEntry = new LogEntry(fileName);
m.at().family(LogColumnFamily.NAME).qualifier(logEntry.getColumnQualifier())
.put(logEntry.getValue());
try (BatchWriter bw = client.createBatchWriter(table)) {
Expand Down

0 comments on commit 0076900

Please sign in to comment.