Skip to content
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

core/rawdb: don't warn for missing "unclean shutdown markers" #28014

Merged
merged 11 commits into from
Sep 6, 2023

Conversation

jsvisa
Copy link
Contributor

@jsvisa jsvisa commented Aug 27, 2023

When a new node is run, especially when running with --dev mode, there is always a log below:

WARN [08-27|08:38:16.585] Error reading unclean shutdown markers   error="not found"

@jsvisa jsvisa changed the title ethdb,core: nolog if shutdown markers is notfound ethdb,core: add ethdb.ErrNotfound as a uniform error code for not found Aug 27, 2023
@rjl493456442
Copy link
Member

Personally I am not sure if it's necessary, mark it as triage to discuss with team.

@holiman
Copy link
Contributor

holiman commented Aug 31, 2023

Triage discussion: let's just delete the warning. THe warning only ever happens when people have cleaned their datadirs, it's not a relevant warning -- it works.

Signed-off-by: jsvisa <delweng@gmail.com>
Signed-off-by: jsvisa <delweng@gmail.com>
Signed-off-by: jsvisa <delweng@gmail.com>
This reverts commit 370ad81.

Signed-off-by: jsvisa <delweng@gmail.com>
This reverts commit 25733a4.

Signed-off-by: jsvisa <delweng@gmail.com>
This reverts commit a456438.

Signed-off-by: jsvisa <delweng@gmail.com>
This reverts commit 72e9a72.

Signed-off-by: jsvisa <delweng@gmail.com>
…ound"

This reverts commit 108adb6.

Signed-off-by: jsvisa <delweng@gmail.com>
This reverts commit 340b805.

Signed-off-by: jsvisa <delweng@gmail.com>
Signed-off-by: jsvisa <delweng@gmail.com>
@jsvisa jsvisa changed the title ethdb,core: add ethdb.ErrNotfound as a uniform error code for not found ethdb: no warning message for unclean shutdown markers Sep 5, 2023
@jsvisa
Copy link
Contributor Author

jsvisa commented Sep 5, 2023

I adjusted this PR to remove the warning message only, please take another look @rjl493456442 @holiman

Copy link
Contributor

@holiman holiman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@holiman holiman changed the title ethdb: no warning message for unclean shutdown markers core/rawdb: don't warn for missing "unclean shutdown markers" Sep 5, 2023
@holiman holiman added this to the 1.13.0 milestone Sep 5, 2023
@holiman holiman merged commit 2e02c1f into ethereum:master Sep 6, 2023
2 checks passed
devopsbo3 pushed a commit to HorizenOfficial/go-ethereum that referenced this pull request Nov 10, 2023
…um#28014)

This changes removes the warn-printout about not finding unclean shutdown markers, which always happens on fresh installs / wiped databases.
devopsbo3 added a commit to HorizenOfficial/go-ethereum that referenced this pull request Nov 10, 2023
devopsbo3 added a commit to HorizenOfficial/go-ethereum that referenced this pull request Nov 10, 2023
devopsbo3 added a commit to HorizenOfficial/go-ethereum that referenced this pull request Nov 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants