THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
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) |
...
- tablet unassigned, in ondemand state
- causes tablet to be hosted
- confirm that tablet is hosted
- wait 2x inactivity timeout, tablet should be unassigned
- confirm that tablet is unassigned
- add splits f and t
- default tablet is hosted (to perform split), new tablets are unassigned
- set tablet hosting goal availability to neverunhosted
- set tablet hosting goal availability to alwayshosted
- confirm hosting goal availability set
- wait 2x inactivity timeout, default tablet should be unassigned
- confirm that only f->t tablet is assigned
- fails because tablet -INF-> f is set to NEVER hostedan availability of UNHOSTED
- succeeds
- succeeds, causes tablet t->+INF to be hosted
- confirm that tablets f->t and t->+INF are hosted
- 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)
- succeeds
...