当前位置:网站首页>The table ‘table_ Name 'is full exception troubleshooting and solution
The table ‘table_ Name 'is full exception troubleshooting and solution
2022-06-29 18:41:00 【わたしわ】
background
The project has been put into operation for one and a half years , During this period, some changes have been made due to the modification of requirements , However, the basic ordering function has not been changed since it was launched , And the project has not been updated in the last half year , Stable operation all the time, including this ordering function , But the day before yesterday, the order failed , I didn't pay much attention at first , Because this ordering function will call three-party services to do pre operations ( Third party services limit orders to one per user per day , Only after the three-party service is successful can the warehousing operation be performed ), And the message that prompts the user is to place repeated orders , Therefore, the prompt that the user fails to place an order and places an order repeatedly is a normal phenomenon ; However, the subsequent orders on that day are repeated orders that fail ; I feel wrong at this time . Hurry to check the log information of the service , The log information is as follows :
Seeing the online service error log can explain why all orders fail , First of all, no matter what exception information the service throws , Will be caught by the global exception handler , Package into unified exception information and return , When the user places an order for the first time that day , Successfully placed the order in the third-party service , But our own service is abnormal , The front end displays an error message , The user thinks the order failed , Initiate the second order placing operation ; At this point, calling the third-party service will prompt you to place repeated orders , Our service will return the prompt of repeated orders to the front end , Cause the false appearance of repeated order prompt, so that we think it is a normal prompt without paying too much attention .
solve
According to the exception prompt is “The table ‘xxx_order’ is full”, It obviously means order The watch is full , In combination with the current scenario, when inserting an order order The error reported , So that's to say order Insufficient table space , Cause insertion failure ; There are two kinds of situations :
First of all : The amount of data in this table exceeds the maximum limit
If used MyISAM Storage engine ,MAX_ROWS Parameter limits the number of data entries per table , You can check whether the number of data entries in the corresponding table reaches this value , When the value is reached, the value setting can be increased ;innodb The storage engine does not MAX_ROWS Parameters .
about innodb For the storage engine, if page size by 16KB, Then the maximum size of the table is 64TB; This size is almost impossible to achieve , If the data volume is too large, the operation of database and table shall be considered .
second : The server disk is full
The problem I encountered here is that the server disk is full , If the server disk is full , This will cause all tables to fail to insert , How to check it out :
a、 adopt df -h Instructions , Check the server disk usage , If use One column adds up to 100% The disk is used up , The following figure shows the situation after deleting the file , So the disk occupation is not very high .
b、 When you see that the disk usage is very high , Start from the root directory and find out which directory takes up the most disk space , Instructions :du -h --max-depth=1, You can see usr、root、var The three directories occupy the most disks ,root The directory is generally used by the system. It is better not to operate , Then switch to usr、var In both directories , Use du -h --max-depth=1 The command checks which directory occupies the most disk , Check it out in turn , Find the directory that uses the most disk , Then delete the unimportant files , For example, some log files , I this question , Finally, find nacos The log file of takes up more than 60 G Of disks , The final will be nacos Just delete these log files 
Explain ,MySQL At startup, you will check the remaining disk space , If your disk is full , And stopped MySQL service , Then it can not be started at this time , After the disk needs to be cleaned , The remaining space is greater than 4G To start .
Generally speaking, servers cpu、 Memory 、 Warning values should be set for resources such as disks , When the usage reaches the warning value, you need to check the cause or increase the corresponding resources of the server ; For example, set the disk usage to 90% Give an early warning , When the alert is triggered, you need to find out what causes so many disks to be used , If some unimportant or useless files occupy a lot of disks , Then you can delete these files , If these files need to be retained, the files should be deleted after backup or the server disk space should be increased .
边栏推荐
- 数据分析基础--预测模型
- 【日常训练】535. TinyURL 的加密与解密
- [tcapulusdb knowledge base] tcapulusdb doc acceptance - Introduction to creating game area
- Stepping on the pit: json Parse and json stringify
- centos 7.5安装mysql 8.0.27----yum
- [tcapulusdb knowledge base] tcapulusdb doc acceptance - table creation approval introduction
- 《安富莱嵌入式周报》第271期:2022.06.20--2022.06.26
- Mac: MySQL 66 questions, 20000 words + 50 pictures!
- If the evaluation conclusion of waiting insurance is poor, does it mean that waiting insurance has been done in vain?
- How do I add SmartArt to slides in PowerPoint?
猜你喜欢

Error building sqlsession problem

My first experience of remote office | community essay solicitation

面霸篇:MySQL六十六问,两万字+五十图详解!

The table ‘table_name‘ is full 异常排查及解决方案

About microservices

Adobe Premiere基礎-聲音調整(音量矯正,降噪,電話音,音高換擋器,參數均衡器)(十八)

Stepping on the pit: json Parse and json stringify

第02章_MySQL的数据目录

Anfulai embedded weekly report no. 271: June 20, 2022 to June 26, 2022

龙canvas动画
随机推荐
MySQL Enterprise Development Specification
Travel card "star picking" hot search first! Stimulate the search volume of tourism products to rise
Anfulai embedded weekly report no. 271: June 20, 2022 to June 26, 2022
Markdown common fonts
CentOS 7.5 install MySQL 8.0.27---yum
How to use idea?
C comparison of the performance of dapper efcore sqlsugar FreeSQL hisql sqlserver, an ORM framework at home and abroad
The 8th "Internet +" competition - cloud native track invites you to challenge
第02章_MySQL的数据目录
Sister Juan takes you to learn database -- 5-day dash day4
【日常训练】535. TinyURL 的加密与解密
记录服务器被入侵病毒:ssh密码被更改登录失败、恶意程序跑满了cpu、jar包启动失败自动kill、一直弹出You have new mail in /var/spool/mail/root
C Primer Plus Chapter 12_ Storage categories, links, and memory management_ Codes and exercises
Request header field XXXX is not allowed by access control allow headers in preflight response
VMware installation esxi
Error building SqlSession问题
[tcapulusdb knowledge base] tcapulusdb operation and maintenance doc introduction
[tcapulusdb knowledge base] tcapulusdb doc acceptance - Introduction to creating game area
Weibo comments on high-performance and high availability architecture design (module 5 of architecture practice camp)
Apache InLong百万亿级数据流处理