What Should I Do If a Query Is Performed on the BE Node Where Some Copies Are Lost or Damaged and an Error Is Reported?
Symptom
If multiple copies were lost from the disk, for example, mv was renamed, the kernel could not detect the loss of the copies. If the query request runs on the BE node where the copies are lost, the following error is reported:
Procedure
- Log in to the node where MySQL is installed and connect to the Doris database.
- Call check_tablet_segment_lost of the BE node to request automatic recovery of lost copies.
curl -X POST http://192.168.67.78:29986/api/check_tablet_segment_lost?repair=true (
In the preceding command, 192.168.67.78 indicates the IP address of the abnormal BE node, and 29986 indicates the service port of the HTTP server of the BE node. You can search for webserver_port on the Doris configuration page of Manger to view the port.
- Run the following command to obtain DetailCmd:
show tablet tabletId
- Run DetailCmd. If the copies of the abnormal node have been removed, run the query again.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot