NSQ 1.3.0 is not backward compatible due to -data-path option for nsqd.exe

10 views
Skip to first unread message

Vibhav Sharma

unread,
May 25, 2024, 12:58:26 PMMay 25
to nsq-users
Hello Everyone,
I was using NSQ 1.1.0 version previously where simple command to launch NSQD is like below.
nsqd --lookupd-tcp-address=127.0.0.1:4160 --data-path=C:\wf\runtime\Tool\Data\nsq
If -data-path was not present in my system then nsq creates this directory by itself and everything works fine.
Now in newly created directory by nsq as per -data-Path argument it creates nsqd.dat file and writes meta data for NSQD.
Now I started using NSQ 1.3.0 version which I compiled with go version 1.20.14 in my system.
When I ran the same command it fails to write metadata with below error:
[nsqd] 2024/05/24 12:52:11.570096 FATAL: failed to persist metadata - open C:\wf\Runtime\Tool\Data\nsq\Nsq distributed queue 1/nsqd.dat.1208389860340714939.tmp: The system cannot find the path specified.
It means with version 1.3.0 if -data-path does not exists NSQ is not able to create itself.
later NSQD goes down due to above fatal error.
So this is breaking backward compatibility in my system
Someone please guide me is there any workaround with -data-path directory to automatically create directory if not found while working with version 1.3.0.?
I am using Windows 10, JDK 11.0.19 .
Thanks in advance !!


Reply all
Reply to author
Forward
0 new messages