cshannon commented on issue #4376:
URL: https://github.com/apache/accumulo/issues/4376#issuecomment-1999832823

   @keith-turner and I discussed this today and came up with a plan to create a 
prototype test Ample that can be used to run tests against a different table 
that is similar to how the latest Fate changes added tests to run against a 
different Fate instance and table than the system tablet (#4049, #4202, etc)
   
   The goal would be to mostly use the real Ample code but to add in some 
points (maybe some protected methods) to allow customizing behavior and testing 
real code but against a different table than actual metadata. Using the real 
metadata table is problematic since when the mini cluster is running it writes 
real data and interferes with the tests and what is expected. Using a test 
table allows us to crate/drop and do whatever we need to test algorithms 
without interfering.
   
   We are thinking something like:
   
   ```java
   Ample ample = TestAmple.create(Map.of(DataLevel.USER, "mytable"))
   
   
   // use ample to setup expected data prior to test
   
   ample.mutateTablets()...
   
   
   // call metadata algorithm lke split w/ ample
   
   split(ample, splitData)
   
   
   // verify after state using test ample
   
   ample.readTablets()
   ```
   
   I will start working on a prototype and if I get something usable can open 
up a draft PR.


-- 
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]

Reply via email to