dlmarion commented on PR #3220:
URL: https://github.com/apache/accumulo/pull/3220#issuecomment-1468700646

   If you want to test this yourself, you can:
   
     1. Build Accumulo from PR 
[38](https://github.com/dlmarion/accumulo/pull/38)
     2. Set the following properties in accumulo.properties:
     ```
       manager.tablet.watcher.interval=15s
       table.ondemand.tablet.unloader.interval=1m
       table.custom.ondemand.unloader.inactivity.threshold=120000
     ```
     3. Start up local instance
     4. Log into Accumulo shell, and do the following
     ```
     createtable test
     ```
     > **Note**
     > notice test and 1 tablet in Monitor
     > notice "loc" column in tablet metadata
     ```
     ondemand test
     ```
     > **Note**
     > notice 0 tablets in monitor
     > notice "loc" missing from tablet metadata
     ```
     insert a b c d
     ```
     > **Note**
     > notice shell command wait for tablet to be hosted
     > notice 1 tablet in Monitor
     > notice "loc" column in tablet metadata
     > notice "ondemand" column in tablet metadata
     ```
     addsplits m - test
     ```
     > **Note**
     > notice 1 tablet in Monitor
     > notice "loc" in tablet metadata for source tablet only
     > notice "ondemand" column in tablet metadata for source tablet only
    ```
    sleep 240
    ```
     > **Note**
     > table.custom.ondemand.unloader.inactivity.threshold is set to 2m, 
waiting 4m should unload the tablet
     > notice 0 tablets in monitor
     > notice "loc" column missing in tablet metadata
     > notice "ondemand" column missing in tablet metadata
     ```
     insert a b c d
    ```
     > **Note**
     > notice shell command wait for tablet to be hosted
     > notice 1 tablet in Monitor
     > notice "loc" column in tablet metadata
     > notice "ondemand" column in tablet metadata
   
     5. Stop Accumulo
     6. Start Accumulo
     > **Note**
     > test tablet had "ondemand" column on shutdown, so it gets re-hosted
     > notice 1 tablet in Monitor
     > notice "loc" column in tablet metadata
     > notice "ondemand" column in tablet metadata
     7.  Wait a few minutes for tablet to be unloaded
     > **Note**
     > notice 0 tablets in monitor
     > notice "loc" column missing in tablet metadata
     > notice "ondemand" column missing in tablet metadata


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