keith-turner commented on PR #3392:
URL: https://github.com/apache/accumulo/pull/3392#issuecomment-1544422546
I am trying to trigger the false positive with the following test.
I set the following properties.
```
tserver.compaction.minor.concurrent.max=20
tserver.health.check.interval=1ms
```
Then I run the following code in jshell
```java
client.tableOperations().create("foo");
var bw = client.createBatchWriter("foo");
SortedSet<Text> splits = new TreeSet<>();
IntStream.range(1, 100).mapToObj(i -> String.format("%03d",
i)).map(Text::new)
.forEach(splits::add);
client.tableOperations().addSplits("foo", splits);
while (true) {
IntStream.range(1, 100).mapToObj(i -> String.format("%03d",
i)).forEach(row -> {
Mutation mutation = new Mutation(row);
mutation.put("f1", "q1", "v1");
try {
bw.addMutation(mutation);
} catch (Exception e) {
throw new RuntimeException(e);
}
});
bw.flush();
client.tableOperations().flush("foo", null, null, true);
}
```
I am seeing around 40 minor compactions per second while this test is
running against 2.1.0. Not seeing it run into the race condition yet. I think
I need to more tservers doing more checks against more tablets to increase the
probability of bumping into it. I am running it under Uno.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]