ccoffline opened a new issue #4856:
URL: https://github.com/apache/incubator-doris/issues/4856


   **Describe the bug**
   
   ```
   errCode = 2, detailMessage = failed to get tablet. tablet_id=18444553, with 
schema_hash=2071938847, reason=tablet does not exist
   ```
   
   **To Reproduce**
   
   When I delete any file in `be/storage/data` and launch a query, I'll get
   ```
   errCode = 2, detailMessage = failed to initialize storage reader open. 
tablet=10051.2107108059.d1497902f3afdc62-b351656515255ca8, res=-402, 
backend=****
   ```
   So I cannot directly reproduce it.
   
   **Troubleshoot**
   
   First, `_tablet` gets `nullptr` and comes out this error.
   
https://github.com/apache/incubator-doris/blob/f40868a4805f0ba503bcca9a9c04f704b61c121b/be/src/exec/olap_scanner.cpp#L73-L83
   
   Here `tablet = _get_tablet_unlocked(tablet_id, schema_hash); ` must be 
`nullptr` and didn't get corrected later.
   
https://github.com/apache/incubator-doris/blob/f40868a4805f0ba503bcca9a9c04f704b61c121b/be/src/olap/tablet_manager.cpp#L582-L610
   
   Here `tablet_map` cannot find the `tablet`
   
https://github.com/apache/incubator-doris/blob/f40868a4805f0ba503bcca9a9c04f704b61c121b/be/src/olap/tablet_manager.cpp#L1409-L1428
   
   I have no idea about when this `_tablet_map_array` will be updated and why 
can't BE find the tablet.
   
https://github.com/apache/incubator-doris/blob/f40868a4805f0ba503bcca9a9c04f704b61c121b/be/src/olap/tablet_manager.h#L199-L214


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

Reply via email to