New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
failed to create commit log: parse high watermark file failed: strconv.ParseInt: parsing "": invalid syntax #333
Comments
@tylertreat Can you say, what can go wrong there? |
Sorry, somehow I missed this issue report. Do you by chance have the contents of the partition data directory for the partition that is causing this error? |
lift.1.5.1_parse.tar.gz |
Somehow all of the HW checkpoint files (files named Is there any other information surrounding the circumstances in which it occurred? Looks like this was on restarting a server which already had partition data? |
It's possible case, but i don't know the real cause of this problem |
Is there any clue? |
I'm not sure how to reproduce this issue in order to debug it. |
For reproducing this behaviour i setup Problem around This: func (l *commitLog) checkpointHW() error {
var (
hw = l.hw
r = strings.NewReader(strconv.FormatInt(hw, 10))
file = filepath.Join(l.Path, hwFileName)
)
return atomic_file.WriteFile(file, r)
} I bump atomic_file library to [root@noc-mt ~]# ls -la /var/lib/liftbridge/streams/ch.alarms/0/
total 80
drwxr-xr-x 2 nobody wheel 512 Nov 2 19:01 .
drwxr-xr-x 3 nobody wheel 512 Nov 2 18:25 ..
-rw-r--r-- 1 nobody wheel 10485760 Nov 2 18:25 00000000000000000000.index
-rw-r--r-- 1 nobody wheel 0 Nov 2 18:25 00000000000000000000.log
-rw------- 1 nobody wheel 4 Nov 2 18:54 leader-epoch-checkpoint
-rw------- 1 nobody wheel 0 Nov 2 19:01 replication-offset-checkpoint
-rw------- 1 nobody wheel 2 Nov 2 19:01 replication-offset-checkpoint602025427 The commit may have been affected. Example
Log |
@aversant do you want to create a PR containing the version bump for atomic_file? |
And just to confirm, when you bump the version, you no longer see the empty |
No. After bump version still see emty |
I'm not sure. The atomic file library just does an
It's not clear to me how the contents would become empty. |
@aversant Out of curiosity, are you using the embedded NATS server when you see this issue or a separate standalone NATS? |
I tested on embedded and a separate standalone NATS server. Checked again with |
The atomic dependency was updated in this PR, which will be going out in a release today. |
I believe this is fixed in v1.7.0. Please re-open if it still occurs. |
Hello!
I saw this issue before on 1.3.*, but it also happens on 1.5.1
config file:
Workaround: drop LB_data folder content
P.S. i have an archive data with example of this case. I can upload it somewhere
The text was updated successfully, but these errors were encountered: