Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
createtable test
listtablets (1)
insert a b c d (2)
listtablets (3)
sleep 240 (4)
listtablets (5)
addsplits f t -t test (6)
listtablets (7)
sethostinggoalsetavailability -t test -b a -e f -ga NEVERUNHOSTED (8)
sethostinggoalsetavailability -t test -b g -e t -ga ALWAYSHOSTED (9)
scan -t accumulo.metadata -c hosting~tab:goalavailability (10) 
sleep 240 (11)
listtablets (12)
insert a b c d (13)
insert g h i j (14)
insert w x y z (15)
listtablets(16)
scan -t test (17)
scan -t test -b g (18)

...

  1. tablet unassigned, in ondemand state
  2. causes tablet to be hosted
  3. confirm that tablet is hosted
  4. wait 2x inactivity timeout, tablet should be unassigned
  5. confirm that tablet is unassigned
  6. add splits f and t
  7. default tablet is hosted (to perform split), new tablets are unassigned
  8. set tablet hosting goal availability to neverunhosted
  9. set tablet hosting goal availability to alwayshosted
  10. confirm hosting goal availability set
  11. wait 2x inactivity timeout, default tablet should be unassigned
  12. confirm that only f->t tablet is assigned
  13. fails because tablet -INF-> f is set to NEVER hostedan availability of UNHOSTED 
  14. succeeds
  15. succeeds, causes tablet t->+INF to be hosted
  16. confirm that tablets f->t and t->+INF are hosted
  17. fails because tablet -INF-> f is set to NEVER hosted an availability of UNHOSTED and an immediate scan was requested. (use -cl scan option to change)
  18. succeeds

...