当前位置:网站首页>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 .
边栏推荐
- 【TcaplusDB知识库】TcaplusDB单据受理-创建游戏区介绍
- Error building sqlsession problem
- /usr/bin/ld: warning: **libmysqlclient. so. 20**, needed by //usr/
- Adobe Premiere Foundation - réglage du son (correction du volume, réduction du bruit, tonalité téléphonique, changement de hauteur, égaliseur de paramètres) (XVIII)
- JWT login authentication
- Request header field XXXX is not allowed by access control allow headers in preflight response
- 程序员资源推荐指南
- JDBC knowledge
- Adobe Premiere基础-常用的视频特效(边角定位,马赛克,模糊,锐化,手写工具,效果控件层级顺序)(十六)
- Anaconda安装并配置jupyter notebook远程
猜你喜欢

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

Servlet student management system (Mengxin hands-on version)

Adobe Premiere基础-批量素材导入序列-变速和倒放(回忆)-连续动作镜头切换-字幕要求(十三)

Adobe Premiere基础-编辑素材文件常规操作(脱机文件,替换素材,素材标签和编组,素材启用,便捷调节不透明度,项目打包)(十七)

Error building sqlsession problem

Apache inlong million billion level data stream processing

Adobe Premiere Foundation - réglage du son (correction du volume, réduction du bruit, tonalité téléphonique, changement de hauteur, égaliseur de paramètres) (XVIII)

Markdown knowledge comes gently

Know that Chuangyu has helped the energy industry in asset management and was selected into the 2021 IOT demonstration project of the Ministry of industry and information technology

How to use the oak camera on raspberry pie?
随机推荐
C Primer Plus Chapter 12_ Storage categories, links, and memory management_ Codes and exercises
MySQL -connector/j driver download
第02章_MySQL的数据目录
Error building SqlSession问题
[tcapulusdb knowledge base] tcapulusdb doc acceptance - create business introduction
Usage of BeanUtils property replication
Shell basic syntax -- process control
您好,请问mysql cdc、和postgresql cdc有官网样例吗?给个链接学习了
Application and practice of DDD in domestic hotel transaction -- Theory
Mac: MySQL 66 questions, 20000 words + 50 pictures!
About microservices
Adobe Premiere foundation - material nesting (animation of Tiktok ending avatar) (IX)
Anaconda安装并配置jupyter notebook远程
Cannot retrieve repository metadata 处理记录
Sword finger offer 34 Path DFS method for binary tree neutralization
[daily training] 535 Encryption and decryption of tinyurl
2022.6.29-----leetcode.535
MySQL Enterprise Development Specification
C Primer Plus 第12章_存储类别、链接和内存管理_代码和练习题
踩坑记:JSON.parse和JSON.stringify