You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@accumulo.apache.org by "keith-turner (via GitHub)" <gi...@apache.org> on 2023/05/18 19:51:26 UTC

[GitHub] [accumulo] keith-turner opened a new issue, #3412: Determing if split FATE op should get tablet lock

keith-turner opened a new issue, #3412:
URL: https://github.com/apache/accumulo/issues/3412

   In #3382 a new fate operation was introduced for splitting a tablet.  This new FATE operation does not get a tablet lock.  Later when all tablet operations have been moved from the tserver to the manager, need to determine if the tablet lock is needed. The following is a todo in the code related to this.
   
   https://github.com/apache/accumulo/blob/808c0bb5cc28511da6b50676a34f1abf36b7d20c/server/manager/src/main/java/org/apache/accumulo/manager/tableOps/split/PreSplit.java#L63
   
   


-- 
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: notifications-unsubscribe@accumulo.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Determing if split FATE op should get tablet lock [accumulo]

Posted by "keith-turner (via GitHub)" <gi...@apache.org>.
keith-turner commented on issue #3412:
URL: https://github.com/apache/accumulo/issues/3412#issuecomment-1781464698

   One problem with not getting a tablet lock is that splits could run on an offline table.  See [this comment](https://github.com/apache/accumulo/issues/3823#issuecomment-1781457175)


-- 
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: notifications-unsubscribe@accumulo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Determing if split FATE op should get table lock [accumulo]

Posted by "keith-turner (via GitHub)" <gi...@apache.org>.
keith-turner commented on issue #3412:
URL: https://github.com/apache/accumulo/issues/3412#issuecomment-1974916053

   Looked into that and opened #4334 and #4335.  Prior to elasticity a compaction or split operation could never run unless a tablet was hosted.  Now these operations can run on unhosted tablets.  Taking a table offline assumed that once all the tablets were no longer hosted that splits or compactions would no longer happen.  
   
    * The offline API has a wait operation, we could change the wait operation to wait for no compactions to be runnning, no splits to be running, and no tablets to be hosted.  Currently it only waits for all tablets to be unhosted.
    * We could make sure that new split and compaction operations do not start on offline tables. 
   
   For making operations not start, these checks can be done early to avoid work which is where #4335 comes in.  Then the checks can be done as late as possible which is where #4334 comes in, it adds a check immediately before setting the compaction id in the tablet.  Could also add a check in the split code as late as possible, that work could be done under this issue.


-- 
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: notifications-unsubscribe@accumulo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Determing if split FATE op should get table lock [accumulo]

Posted by "cshannon (via GitHub)" <gi...@apache.org>.
cshannon commented on issue #3412:
URL: https://github.com/apache/accumulo/issues/3412#issuecomment-2016121409

   I started this aternoon working on an attempt at a PR for the first checklist item:
   
   > Add code to offline wait operation that scans tables metadata and waits for no location, no external compaction id, and no operation ids. 
   
   After talking to @keith-turner about this, there might be some race condition issues still to solve and more work to do here but the first attempt will at least update TableOperationsImpl to check no external compaction is or op id. I'm working on some tests now and should have a PR up tomorrow.


-- 
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: notifications-unsubscribe@accumulo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org