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

Non critical fixes for Sirius (patch 2) #5805

Merged

Conversation

iulianpascalau
Copy link
Contributor

Reasoning behind the pull request

  • there were some WARN logs generated by an observer node, originating from esdt.go L1346
  • the node can not start if some of the storage DBs contain empty config.toml files

Proposed changes

  • replaced the SilentEncode method with Encode method
  • made the dbConfigHandler struct more robust by always rewriting a given configuration and testing the read configuration from the file so it won't be invalid

Testing procedure

  • standard system test
  • import-db test

Pre-requisites

Based on the Contributing Guidelines the PR author and the reviewers must check the following requirements are met:

  • was the PR targeted to the correct branch?
  • if this is a larger feature that probably needs more than one PR, is there a feat branch created?
  • if this is a feat branch merging, do all satellite projects have a proper tag inside go.mod?

Copy link

codecov bot commented Jan 5, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (3d35226) 80.14% compared to head (f524255) 80.14%.

Additional details and impacted files
@@                Coverage Diff                 @@
##           rc/sirius-patch-2    #5805   +/-   ##
==================================================
  Coverage              80.14%   80.14%           
==================================================
  Files                    708      708           
  Lines                  94035    94051   +16     
==================================================
+ Hits                   75365    75381   +16     
  Misses                 13326    13326           
  Partials                5344     5344           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

return err
}

isInvalidConfig := len(dbConfig.Type) == 0 || dbConfig.MaxBatchSize <= 0 || dbConfig.BatchDelaySeconds <= 0
Copy link
Contributor

Choose a reason for hiding this comment

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

check also for MaxOpenFiles ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

ssd04
ssd04 previously approved these changes Jan 5, 2024
AdoAdoAdo
AdoAdoAdo previously approved these changes Jan 5, 2024
message := fmt.Sprintf("%s:%s", specialRoleAddress, roles)
e.eei.Finish([]byte(message))
}

return vmcommon.Ok
}

func (e *esdt) treatErrorForGetSpecialRoles(err error, roles []string, address []byte) {
Copy link
Contributor

Choose a reason for hiding this comment

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

treatEncodeError...?

@iulianpascalau iulianpascalau dismissed stale reviews from AdoAdoAdo and ssd04 via 4790f86 January 5, 2024 12:39
Copy link
Collaborator

@gabi-vuls gabi-vuls left a comment

Choose a reason for hiding this comment

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

Normal allin test: v1.5.15-dev-config-e134e5314d -> non-critical-fixes-sirius--4790f86f12

--- Specific errors ---

block hash does not match 2236
wrong nonce in block 915
miniblocks does not match 0
num miniblocks does not match 0
miniblock hash does not match 0
block bodies does not match 0
receipts hash missmatch 0

/------/

--- Statistics ---

Nr. of all ERRORS: 0
Nr. of all WARNS: 200
Nr. of new ERRORS: 0
Nr. of new WARNS: 1
Nr. of PANICS: 0

/------/

--- ERRORS ---

/------/

--- WARNINGS ---

do-ams-validator-11 :
Warn: shardProcessor.createMiniBlocks error = shard is stuck shard = 1

/------/

@iulianpascalau iulianpascalau merged commit 0c17fc8 into rc/sirius-patch-2 Jan 9, 2024
8 checks passed
@iulianpascalau iulianpascalau deleted the non-critical-fixes-sirius-2023.01.05 branch January 9, 2024 09:32
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

4 participants