Bug #95023 | NDB Node won't start with tablespace (Windows) | ||
---|---|---|---|
Submitted: | 15 Apr 2019 12:02 | Modified: | 6 May 2019 11:31 |
Reporter: | Vincent Guillemette | Email Updates: | |
Status: | Verified | Impact on me: | |
Category: | MySQL Cluster: Cluster (NDB) storage engine | Severity: | S2 (Serious) |
Version: | 8.0.14-dmr/8.0.16-dmr | OS: | Windows (Server 2016) |
Assigned to: | CPU Architecture: | Other (x64) | |
Tags: | ndb, Tablespace, windows |
[15 Apr 2019 12:02]
Vincent Guillemette
[15 Apr 2019 12:05]
Vincent Guillemette
ndb_trace.log
Attachment: ndb_25_trace.log.2 (application/octet-stream, text), 634.70 KiB.
[15 Apr 2019 12:05]
Vincent Guillemette
ndb_trace.log
Attachment: ndb_25_trace.log.2_t1 (application/octet-stream, text), 58.44 KiB.
[15 Apr 2019 12:05]
Vincent Guillemette
ndb_trace.log
Attachment: ndb_25_trace.log.2_t2 (application/octet-stream, text), 952.61 KiB.
[15 Apr 2019 12:06]
Vincent Guillemette
ndb_trace.log
Attachment: ndb_25_trace.log.2_t3 (application/octet-stream, text), 9.79 KiB.
[16 Apr 2019 22:23]
MySQL Verification Team
Hi, This looks like some windows glitch. Are you sure there's no antivirus running and messing up with disk data? all best Bogdan
[17 Apr 2019 6:00]
Vincent Guillemette
Hello, No antivirus software has been installed on this server. I tried disabling Windows Defender's realtime protection, but the problem persists. Regards, Vincent.
[17 Apr 2019 13:14]
MySQL Verification Team
Hi, Weird, I'm not reproducing this. Have you tried starting a node initial? all best Bogdan
[17 Apr 2019 13:18]
Vincent Guillemette
Hi, As stated in my initial post, the node will start with the "initial" flag. However, it is not a viable solution as it needs to fetch the whole data set from the other group's node. Regards, Vincent.
[17 Apr 2019 13:39]
MySQL Verification Team
Hi, > As stated in my initial post, the node will start with the "initial" flag. I apologize, I understood that this: > Then, the only way to get the node started is to start from scratch (delete cluster-data contents), which takes a huge amount of time... meant that you are deleting all cluster data, my bad, apologies. So with --initial you get the node up. Let me get this straight, as I'm having issues reproducing this, - you get cluster up, set it up with data - you create log file group - you create tablespace - you then create new tables with disk data or you alter existing table? at this point everything works next time you restart data node it fails to start so you have to start it --initial in order for it to boot up ? thanks Bogdan
[17 Apr 2019 13:53]
Vincent Guillemette
Hi, I'm sorry, you were right. The node starts when clearing cluster-data directory. You also got the events order right : the table is a newly created one. At this point : - When I restart data node without any flag, it fails to start. - When I restart data node with --initial flag, it fails to start with the following error : Couldn't start as daemon, error: 'Failed to open logfile 'D:/MySQL/Data/cluster-data\ndb_1_out.log' for write, errno: 13' Regards, Vincent.
[17 Apr 2019 14:00]
Vincent Guillemette
Hi, Nevermind, I started the daemon with the wrong account on my last attempt. Starting with the --initial flag produces the same result as clearing the cluster-data directory. The data node starts, but fetch the whole data set from the other data node in the group. Regards, Vincent.
[17 Apr 2019 14:08]
MySQL Verification Team
Hi, Once you start it with initial, will it restart properly next time (no flags) or you need to do initial every time you restart it? thanks Bogdan
[17 Apr 2019 14:13]
Vincent Guillemette
Hi, I need to start the data node with the --initial flag every time. Regards, Vincent.
[3 May 2019 6:34]
Vincent Guillemette
Hi, If it's of any help, issue persists in version 8.0.16-dmr. Regards, Vincent.
[3 May 2019 6:34]
Vincent Guillemette
8.0.16-dmr trace logs
Attachment: mysql-bug-8-0-16.zip (application/x-zip-compressed, text), 79.91 KiB.
[6 May 2019 11:31]
MySQL Verification Team
Verified on windows only thanks for submitting the bug all best Bogdan
[31 Oct 2019 13:48]
Mauritz Sundell
Posted by developer: Should be same bug as fixed Bug #30484272 USING DISK DATA ON WINDOWS FAILS NODE RESTART: TSMAN: FILE SYSTEM CLOSE FAILED.