| Bug #106697 | Missing sync can lead to running out of memory in machine | ||
|---|---|---|---|
| Submitted: | 10 Mar 2022 15:08 | Modified: | 13 May 2022 17:01 |
| Reporter: | Mikael Ronström | Email Updates: | |
| Status: | Closed | Impact on me: | |
| Category: | MySQL Cluster: Cluster (NDB) storage engine | Severity: | S3 (Non-critical) |
| Version: | 8.0.28 | OS: | Linux |
| Assigned to: | CPU Architecture: | Any | |
[10 Mar 2022 15:08]
Mikael Ronström
[10 Mar 2022 17:06]
MySQL Verification Team
Hi, Thanks for the report Mikael, all best Bogdan
[13 May 2022 17:01]
Jon Stephens
DOcumented fix as follows in the NDB 8.0.30 changelog:
When initializing a file, NDBFS enabled autosync but never
called do_sync_after_write() (then called sync_on_write()), so
that the file was never synchronized to disk until it was saved.
This meant that, for a system whose network disk was stalled for
some time, the file could use up system memory on buffered file
data.
We fix this by calling do_sync_after_write() each time NDBFS
writes to a file.
Closed.
