Jackie-Jiang commented on pull request #6608: URL: https://github.com/apache/incubator-pinot/pull/6608#issuecomment-786114438
> What is the guarantee that there is not a segment getting added while another one is getting removed? > The table data manager should be removed when the table is removed. Not when all its segments are removed. @mcvsubbu There is no callback for adding/removing a table. We add the table when the first segment is added, so similarly we remove the table when the last segment is removed. We use `ConcurrentHashMap` atomic operations to handle the segment addition and removal, so it should be thread-safe. ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
