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

chore: revert cometbft upgrade #3065

Merged
merged 2 commits into from
Oct 29, 2024
Merged

chore: revert cometbft upgrade #3065

merged 2 commits into from
Oct 29, 2024

Conversation

gartnera
Copy link
Member

@gartnera gartnera commented Oct 29, 2024

Revert #3045

It includes this which is a breaking change that would probably require cosmos sdk changes: cometbft/cometbft-db#168 (updated in cometbft/cometbft#4321)

zetacore1-logs-snip.txt

6:45PM INF starting ABCI with Tendermint module=server
2024/10/29 18:45:59 [JOB 1] WAL file /root/.zetacored/data/application.db/000002.log with log number 000002 stopped reading at offset: 211396; replayed 1604 keys in 647 batches
2024/10/29 18:45:59 [JOB 1] WAL file /root/.zetacored/data/application.db/000004.log with log number 000004 stopped reading at offset: 407020; replayed 3351 keys in 582 batches
2024/10/29 18:45:59 [JOB 1] WAL file /root/.zetacored/data/application.db/000005.log with log number 000005 stopped reading at offset: 835479; replayed 5688 keys in 546 batches
2024/10/29 18:45:59 [JOB 1] WAL file /root/.zetacored/data/application.db/000006.log with log number 000006 stopped reading at offset: 660775; replayed 5503 keys in 569 batches
2024/10/29 18:45:59 [JOB 1] WAL file /root/.zetacored/data/blockstore.db/000004.log with log number 000004 stopped reading at offset: 252796; replayed 504 keys in 504 batches
2024/10/29 18:45:59 [JOB 1] WAL file /root/.zetacored/data/blockstore.db/000007.log with log number 000007 stopped reading at offset: 16115; replayed 36 keys in 36 batches
2024/10/29 18:45:59 [JOB 1] WAL file /root/.zetacored/data/snapshots/metadata.db/000002.log with log number 000002 stopped reading at offset: 0; replayed 0 keys in 0 batches
6:45PM INF starting node with ABCI Tendermint in-process module=server
2024/10/29 18:45:59 [JOB 1] WAL file /root/.zetacored/data/blockstore.db/000010.log with log number 000010 stopped reading at offset: 0; replayed 0 keys in 0 batches
2024/10/29 18:45:59 [JOB 1] WAL file /root/.zetacored/data/state.db/000002.log with log number 000002 stopped reading at offset: 256789; replayed 226 keys in 226 batches
2024/10/29 18:45:59 [JOB 1] WAL file /root/.zetacored/data/state.db/000004.log with log number 000004 stopped reading at offset: 518122; replayed 30 keys in 30 batches
2024/10/29 18:45:59 [JOB 1] WAL file /root/.zetacored/data/state.db/000005.log with log number 000005 stopped reading at offset: 1043680; replayed 125 keys in 125 batches
2024/10/29 18:45:59 [JOB 1] WAL file /root/.zetacored/data/state.db/000006.log with log number 000006 stopped reading at offset: 307918; replayed 70 keys in 70 batches
2024/10/29 18:45:59 [JOB 1] WAL file /root/.zetacored/data/tx_index.db/000002.log with log number 000002 stopped reading at offset: 200211; replayed 1477 keys in 62 batches
2024/10/29 18:45:59 [JOB 1] WAL file /root/.zetacored/data/tx_index.db/000004.log with log number 000004 stopped reading at offset: 433437; replayed 508 keys in 12 batches
2024/10/29 18:45:59 [JOB 1] WAL file /root/.zetacored/data/tx_index.db/000005.log with log number 000005 stopped reading at offset: 920943; replayed 3119 keys in 48 batches
2024/10/29 18:45:59 [JOB 1] WAL file /root/.zetacored/data/tx_index.db/000006.log with log number 000006 stopped reading at offset: 236919; replayed 1316 keys in 19 batches
6:45PM INF ABCI Handshake App Info hash=")\x10=\x1b4.�w�B�G�\x1dq���g\a�$�\x17&A�܀qه" height=89 module=consensus protocol-version=0 server=node software-version=0.0.1730226992-3182cd6
6:45PM INF ABCI Replay Blocks appHeight=89 module=consensus server=node stateHeight=89 storeHeight=90
6:45PM INF Replay last block using real app module=consensus server=node
6:45PM INF applying upgrade "0.0.1730226992-3182cd6" at height: 90 module=server
6:45PM INF Running upgrade handler for 0.0.1730226992-3182cd6 module=server
6:45PM INF migrating module emissions from version 3 to version 4 module=server
6:45PM INF Distributing Validator Rewards Total:4810474537037037037 To FeeCollector : fee_collector module=server
6:45PM INF executed block height=90 module=consensus num_invalid_txs=0 num_valid_txs=0 server=node
6:45PM INF commit synced commit=436F6D6D697449447B5B363420323020323233203130392031373420313733203931203231372031373020362036312031343720313031203234362031373420313231203135382031313020313634203232322037392031353220313439203236203134302031313720323036203135392033302032313620323137203130315D3A35417D module=server
6:45PM INF committed state app_hash=4014DF6DAEAD5BD9AA063D9365F6AE799E6EA4DE4F98951A8C75CE9F1ED8D965 height=90 module=consensus num_txs=0 server=node
6:45PM INF Completed ABCI Handshake - CometBFT and App are synced appHash="@\x14�m��[٪\x06=�e��y�n��O��\x1a�uΟ\x1e��e" appHeight=89 module=consensus server=node
6:45PM INF Version info abci=1.0.0 block=11 commit_hash= module=server p2p=8 server=node tendermint_version=0.37.12
6:45PM INF indexed block events height=90 module=txindex server=node
6:45PM INF This node is a validator addr=E068C29CB273686F8FA1E5F25D897CDC8AF9C536 module=consensus pubKey=PubKeyEd25519{44901E8E6244B024B799C1CFBBE0F188687EAF0B6CE9D0C546B75DF2AA72CE0C} server=node
2024/10/29 18:45:59 [JOB 1] WAL file /root/.zetacored/data/evidence.db/000002.log with log number 000002 stopped reading at offset: 0; replayed 0 keys in 0 batches
6:45PM INF P2P Node ID ID=377ebcdb27fc38e6845456697162cf975cc0fa9a file=/root/.zetacored/config/node_key.json module=p2p server=node
6:46PM INF Searching for height height=91 max=0 min=0 module=consensus server=node wal=/root/.zetacored/data/cs.wal/wal
6:46PM INF Searching for height height=90 max=0 min=0 module=consensus server=node wal=/root/.zetacored/data/cs.wal/wal
6:46PM INF Found height=90 index=0 module=consensus server=node wal=/root/.zetacored/data/cs.wal/wal
6:46PM INF Catchup by replaying consensus messages height=91 module=consensus server=node
6:46PM INF Replay: Done module=consensus server=node
6:46PM INF Timed out dur=992.552996 height=91 module=consensus round=0 server=node step=RoundStepNewHeight
6:46PM INF received proposal module=consensus proposal="Proposal{91/0 (08E924D0C076C72524F6C0003A8E7DDE89D61232FADCE1D3C75E2DEA104AD1AA:1:F96EE5D00B0D, -1) 4B000AF5E6E3 @ 2024-10-29T18:46:01.386232393Z}" proposer=0B27A500CD006CE5091C820D5CE4F8206EA54F51 server=node
6:46PM INF received complete proposal block hash=08E924D0C076C72524F6C0003A8E7DDE89D61232FADCE1D3C75E2DEA104AD1AA height=91 module=consensus server=node
6:46PM ERR prevote step: consensus deems this block invalid; prevoting nil err="wrong Block.Header.AppHash.  Expected 4014DF6DAEAD5BD9AA063D9365F6AE799E6EA4DE4F98951A8C75CE9F1ED8D965, got 16DC147C770DD7C5A1E915EEDA6D52748B24BDEF94287F37A465A456CFCB70DE" height=91 module=consensus round=0 server=node
6:46PM INF Timed out dur=1000 height=91 module=consensus round=0 server=node step=RoundStepPrevoteWait
6:46PM INF Timed out dur=1000 height=91 module=consensus round=0 server=node step=RoundStepPrecommitWait
6:46PM INF resetting proposal info height=91 module=consensus proposer=E068C29CB273686F8FA1E5F25D897CDC8AF9C536 round=1 server=node
6:46PM INF received proposal module=consensus proposal="Proposal{91/1 (69B4C88684E79A8A4762D1C16A2546DF86D8246472D1C8B12D1D139E2AE65CA4:1:9C71042F9A5A, -1) 9D386C0A467C @ 2024-10-29T18:46:03.695215207Z}" proposer=E068C29CB273686F8FA1E5F25D897CDC8AF9C536 server=node
6:46PM INF received complete proposal block hash=69B4C88684E79A8A4762D1C16A2546DF86D8246472D1C8B12D1D139E2AE65CA4 height=91 module=consensus server=node
6:46PM INF Timed out dur=1500 height=91 module=consensus round=1 server=node step=RoundStepPrevoteWait
6:46PM INF Timed out dur=1500 height=91 module=consensus round=1 server=node step=RoundStepPrecommitWait
6:46PM INF resetting proposal info height=91 module=consensus proposer=0B27A500CD006CE5091C820D5CE4F8206EA54F51 round=2 server=node
6:46PM INF received proposal module=consensus proposal="Proposal{91/2 (08E924D0C076C72524F6C0003A8E7DDE89D61232FADCE1D3C75E2DEA104AD1AA:1:F96EE5D00B0D, -1) 35F7C852BB2E @ 2024-10-29T18:46:07.003103436Z}" proposer=0B27A500CD006CE5091C820D5CE4F8206EA54F51 server=node
6:46PM INF received complete proposal block hash=08E924D0C076C72524F6C0003A8E7DDE89D61232FADCE1D3C75E2DEA104AD1AA height=91 module=consensus server=node
6:46PM ERR prevote step: consensus deems this block invalid; prevoting nil err="wrong Block.Header.AppHash.  Expected 4014DF6DAEAD5BD9AA063D9365F6AE799E6EA4DE4F98951A8C75CE9F1ED8D965, got 16DC147C770DD7C5A1E915EEDA6D52748B24BDEF94287F37A465A456CFCB70DE" height=91 module=consensus round=2 server=node

Summary by CodeRabbit

  • Chores
    • Updated various dependency versions, primarily downgrading to enhance stability and compatibility.

Copy link
Contributor

coderabbitai bot commented Oct 29, 2024

📝 Walkthrough

Walkthrough

The changes in this pull request involve significant downgrades of various dependencies in the go.mod file. Key libraries affected include github.com/cockroachdb/errors, github.com/cometbft/cometbft, and github.com/prometheus/client_golang, among others. The modifications also include updates to indirect dependencies and adjustments to the require and replace sections to reflect these changes. Overall, the focus is on aligning dependency versions, primarily through downgrades.

Changes

File Change Summary
go.mod Downgraded several dependencies: github.com/cockroachdb/errors to v1.11.1, github.com/cometbft/cometbft to v0.37.5, github.com/cometbft/cometbft-db to v0.12.0, github.com/gorilla/websocket to v1.5.0, github.com/prometheus/client_golang to v1.14.0, github.com/spf13/cobra to v1.8.0, github.com/spf13/viper to v1.18.2, github.com/cockroachdb/pebble to v1.1.0, github.com/cespare/xxhash/v2 to v2.2.0, github.com/klauspost/compress to v1.17.0, and OpenTelemetry libraries to v1.21.0. Updated replace directives for various packages.

Possibly related issues

Possibly related PRs

Suggested labels

ci

Suggested reviewers

  • fbac
  • swift1337
  • ws4charlie
  • brewmaster012
  • skosito
  • kingpinXD

Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@gartnera gartnera force-pushed the revert-cometbft-upgrade branch from c3f5a45 to caf9333 Compare October 29, 2024 20:04
@gartnera gartnera enabled auto-merge October 29, 2024 20:06
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

🧹 Outside diff range and nitpick comments (1)
go.mod (1)

306-308: Review OpenTelemetry integration.

The OpenTelemetry stack has been downgraded from v1.24.0 to v1.21.0. This could affect observability and tracing capabilities.

Consider documenting any changes in telemetry behavior or feature availability in the monitoring documentation.

Also applies to: 348-349

📜 Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL

📥 Commits

Files that changed from the base of the PR and between 9b285c2 and caf9333.

⛔ Files ignored due to path filters (1)
  • go.sum is excluded by !**/*.sum
📒 Files selected for processing (1)
  • go.mod (13 hunks)
🔇 Additional comments (3)
go.mod (3)

Line range hint 353-374: Verify custom fork maintenance.

The project maintains several critical forks of upstream dependencies. Ensure these forks are compatible with the downgraded versions.

#!/bin/bash
# Check custom fork references
for fork in "zeta-chain/tss-lib" "zeta-chain/go-ethereum" "zeta-chain/go-libp2p" "zeta-chain/go-tss"; do
    echo "Checking $fork..."
    gh api "repos/$fork" --jq '.default_branch, .updated_at'
done

34-34: Verify secondary dependency compatibility.

The downgrade of secondary dependencies (websocket, prometheus, cobra, viper) might affect system monitoring and CLI functionality.

#!/bin/bash
# Check for usage of features from newer versions
rg -l "prometheus\.New|cobra\.Version|viper\.GetViper" --type go

Also applies to: 49-49, 56-56, 58-58


17-20: Verify CometBFT downgrade compatibility.

The downgrade of CometBFT and related packages aligns with the PR objective to revert breaking changes. However, this significant version rollback requires careful verification.

@gartnera gartnera added this pull request to the merge queue Oct 29, 2024
Merged via the queue into develop with commit 9ef4009 Oct 29, 2024
37 checks passed
@gartnera gartnera deleted the revert-cometbft-upgrade branch October 29, 2024 20:40
melekes added a commit to cometbft/cometbft that referenced this pull request Oct 31, 2024
This cometbft-db upgrade is a breaking change which caused zeta database
corruption (or at least consensus failures) on their cosmos sdk v0.47.x
application when upgrading: zeta-chain/node#3045 (revert with details:
zeta-chain/node#3065)

zeta-chain/node#3045
zeta-chain/node#3065
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-changelog Skip changelog CI check
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants