Skip to content

Conversation

@Besroy
Copy link
Contributor

@Besroy Besroy commented Nov 8, 2024

@Besroy Besroy requested a review from xiaoxichen November 8, 2024 07:15
Copy link
Contributor

@JacksonYao287 JacksonYao287 left a comment

Choose a reason for hiding this comment

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

rollback_config should be paid more attention

xiaoxichen
xiaoxichen previously approved these changes Nov 8, 2024
Copy link
Collaborator

@xiaoxichen xiaoxichen left a comment

Choose a reason for hiding this comment

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

lgtm.

Also good to see we enabled one more UT.

@Besroy Besroy force-pushed the implement_rollback branch from 082c1bf to 4737b66 Compare November 8, 2024 08:52
xiaoxichen
xiaoxichen previously approved these changes Nov 8, 2024
Previously commit dont flush the over-written log,  and the log_entries
only look at flushed logs. As a result, the over-written log was
not included in the log_entries() result which breaks the UT.

The UT was running in master, because we dont at the over_written
entry into cache and the entry_at() call will inline flush this entry.
After adding it to cache it served from cache without flushing.

Signed-off-by: Xiaoxi Chen <xiaoxchen@ebay.com>
@codecov-commenter
Copy link

codecov-commenter commented Nov 11, 2024

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

Attention: Patch coverage is 34.48276% with 19 lines in your changes missing coverage. Please review.

Project coverage is 67.22%. Comparing base (1a0cef8) to head (6420bec).
Report is 87 commits behind head on master.

Files with missing lines Patch % Lines
src/lib/replication/repl_dev/raft_repl_dev.cpp 0.00% 10 Missing ⚠️
...rc/lib/replication/repl_dev/raft_state_machine.cpp 10.00% 9 Missing ⚠️

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@             Coverage Diff             @@
##           master     #585       +/-   ##
===========================================
+ Coverage   56.51%   67.22%   +10.71%     
===========================================
  Files         108      109        +1     
  Lines       10300    10713      +413     
  Branches     1402     1463       +61     
===========================================
+ Hits         5821     7202     +1381     
+ Misses       3894     2816     -1078     
- Partials      585      695      +110     

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

@Besroy Besroy force-pushed the implement_rollback branch from 6420bec to d10b519 Compare November 11, 2024 06:47
@Besroy Besroy merged commit f8426dc into eBay:master Nov 11, 2024
@xiaoxichen xiaoxichen linked an issue Nov 12, 2024 that may be closed by this pull request
@@ -152,6 +152,7 @@ TEST_F(RaftReplDevTest, Resync_From_Non_Originator) {
}

#if 0
Copy link
Contributor

Choose a reason for hiding this comment

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

Can this test case be enabled or not yet?

Copy link
Collaborator

Choose a reason for hiding this comment

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

@Besroy had tried to enable this but failed. The test of restart leader is passing in Storage hammer but not here.. @JacksonYao287 traiged this, pls share more findings?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

As far as I know, the UT's write_on_leader function cannot detect changes in the leader. If a leader switch occurs while writing data, this UT will get stuck. Although it works locally, it may fail occasionally in Jenkins, which is why it has been commented out again. @JacksonYao287 Please correct me if I'm wrong.

hkadayam pushed a commit to hkadayam/HomeStore that referenced this pull request Aug 7, 2025
* add rollback on state machine

---------

Signed-off-by: yawzhang <yawzhang@ebay.com>
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.

Implement rollback

5 participants