Skip to content

[DNM] tentacle: Revert: "msg/async/ProtocolV2: Speed up connection logic when peer restarts & Added Netsplit Grace Period"- #71778 - #71780

Closed
kamoltat wants to merge 11 commits into
ceph:tentaclefrom
kamoltat:wip-ksirivad-tentacle-revert-msgr
Closed

kamoltat wants to merge 11 commits into
ceph:tentaclefrom
kamoltat:wip-ksirivad-tentacle-revert-msgr

Conversation

@kamoltat

Copy link
Copy Markdown
Member

Revert all commits from PR: #64122

Signed-off-by: Kamoltat Sirivadhna [email protected]

Contribution Guidelines

  • To sign and title your commits, please refer to Submitting Patches to Ceph.

  • If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.

  • When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an x between the brackets: [x]. Spaces and capitalization matter when checking off items this way.

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
Show available Jenkins commands

You must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.

@github-actions

Copy link
Copy Markdown

Config Diff Tool Output

- removed: mon_netsplit_grace_period (mon.yaml.in)
! changed: nvmeof_mon_client_connect_panic: old: None (mon.yaml.in)
! changed: nvmeof_mon_client_connect_panic: new: ['mon'] (mon.yaml.in)

The above configuration changes are found in the PR. Please update the relevant release documentation if necessary.
Ignore this comment if docs are already updated. To make the "Check ceph config changes" CI check pass, please comment /config check ok and re-run the test.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Ceph Release Engineering Audit Report

Automated Redmine Linkage Audit

The following tracking irregularities were found:

  • Missing Original PR(s): Could not identify any main PRs associated with this backport. Ensure the backport commits properly reference the original PRs.
  • Orphaned Backport PR: Could not find any Redmine tracker linked directly to this backport PR #71780.

Automated Backport Parity Review - Invalid Commit Format

The following commits have an invalid format. Backport commits must either include a standard (cherry picked from commit ...) line or start with the target branch name (e.g., tentacle:).

  • ff5665ef Revert "doc/health-checks: update MON_NETSPLIT documentation"
  • b3076bd9 Revert "qa/suites/rados: white list + add MON_NETSPLIT tests"
  • 521857c4 Revert "msg/async: ProtocolV2::send_server_ident update ProtocolV2::global_seq"
  • 910084cc Revert "src/mon/Elector.cc: Improve logging for the elector"
  • c6b3b5ce Revert "src/mon/ConnectionTracker.cc: && HealthMonitor.cc Improve logging"
  • 00bc2f08 Revert "src/mon/HealthMonitor: Add mon_netsplit_grace_period to suppress transient MON_NETSPLIT warnings"
  • cb6d4370 Revert "src/msg/async: Improve logging and prefixes for global_seq"
  • d00bcaed Revert "qa/suites/rados: increase debug && msgr-failures/none && white list"
  • fd1b7f93 Revert "qa/tasks/mon_thrash: enhanced logging in thrash"
  • 30c76b2d Revert "ProtocolV2.cc: Add more loggings to functions that needs them"
  • 62856c55 Revert "msg/async/ProtocolV2: Speed up connection logic when peer restarts"

Be familiar with the rules and guidelines for writing backports.


Automated Backport Parity Review

Discrepancies detected between the backport PR and the original source PR(s). Please see the Commit Parity Visualizer below.


Commit Parity Visualizer

BACKPORT PR #71780 SOURCE PR SOURCE STATUS
ff5665e Revert "doc/health-checks: update MON_NETSPLIT documentation" <<<< EXTRA IN BACKPORT >>>>
b3076bd Revert "qa/suites/rados: white list + add MON_NETSPLIT tests" <<<< EXTRA IN BACKPORT >>>>
521857c Revert "msg/async: ProtocolV2::send_server_ident update ProtocolV2::global_seq" <<<< EXTRA IN BACKPORT >>>>
910084c Revert "src/mon/Elector.cc: Improve logging for the elector" <<<< EXTRA IN BACKPORT >>>>
c6b3b5c Revert "src/mon/ConnectionTracker.cc: && HealthMonitor.cc Improve logging" <<<< EXTRA IN BACKPORT >>>>
00bc2f0 Revert "src/mon/HealthMonitor: Add mon_netsplit_grace_period to suppress transient MON_NETSPLIT warnings" <<<< EXTRA IN BACKPORT >>>>
cb6d437 Revert "src/msg/async: Improve logging and prefixes for global_seq" <<<< EXTRA IN BACKPORT >>>>
d00bcae Revert "qa/suites/rados: increase debug && msgr-failures/none && white list" <<<< EXTRA IN BACKPORT >>>>
fd1b7f9 Revert "qa/tasks/mon_thrash: enhanced logging in thrash" <<<< EXTRA IN BACKPORT >>>>
30c76b2 Revert "ProtocolV2.cc: Add more loggings to functions that needs them" <<<< EXTRA IN BACKPORT >>>>
62856c5 Revert "msg/async/ProtocolV2: Speed up connection logic when peer restarts" <<<< EXTRA IN BACKPORT >>>>

🛟 Need Help?

If you need technical help resolving these issues, please consult with the Component Lead. If you need administrative overrides, please see the #ceph-upstream-releases channel on Slack and request a review from the @ceph/ceph-release-manager.

📋 Component Lead / Release Manager

To override the audit failure, apply releng-audit-override label or comment /audit override.


⚠️ Note: Automated audit checks will be suspended on future pushes to prevent comment spam while you work.

When you are ready for a new audit, please remove the releng-audit-fail label or comment /audit retest.

View workflow run

@github-actions github-actions Bot added the releng-audit-fail Release engineering: failed backport verification audit. label Sep 14, 2026
This reverts commit 3f2189e.

Signed-off-by: Kamoltat (Junior) Sirivadhna <[email protected]>
This reverts commit f4593bf.

Signed-off-by: Kamoltat (Junior) Sirivadhna <[email protected]>
…lobal_seq"

This reverts commit de39ed1.

Signed-off-by: Kamoltat (Junior) Sirivadhna <[email protected]>

Conflicts:
	src/msg/async/ProtocolV2.cc
	- Accepts:
	    auto& oq = out_queue[m->get_priority()];
    		oq.emplace_back(out_queue_entry_t{is_prepared, std::move(m)});
    		ldout(cct, 15) << __func__ << " inline write is denied, reschedule m=" << m
                   << dendl;
This reverts commit 4e67c65.

Signed-off-by: Kamoltat (Junior) Sirivadhna <[email protected]>
…ging"

This reverts commit ca4466d.

Signed-off-by: Kamoltat (Junior) Sirivadhna <[email protected]>
…ess transient MON_NETSPLIT warnings"

This reverts commit caf7598.

Signed-off-by: Kamoltat (Junior) Sirivadhna <[email protected]>

Conflicts:
	src/mon/HealthMonitor.cc
		- Accept the // Check for location-level netsplits and remove individual-level netsplits
This reverts commit 4b0ae91.

Signed-off-by: Kamoltat (Junior) Sirivadhna <[email protected]>
…e list"

This reverts commit 0b0bc03.

Signed-off-by: Kamoltat (Junior) Sirivadhna <[email protected]>
This reverts commit 5192ea8.

Signed-off-by: Kamoltat (Junior) Sirivadhna <[email protected]>
This reverts commit 4ac4ecd.

Signed-off-by: Kamoltat (Junior) Sirivadhna <[email protected]>
…tarts"

This reverts commit a40d83d.

Signed-off-by: Kamoltat (Junior) Sirivadhna <[email protected]>
@kamoltat
kamoltat force-pushed the wip-ksirivad-tentacle-revert-msgr branch from 62856c5 to a351301 Compare September 15, 2026 16:09
@neha-ojha
neha-ojha requested a review from batrick September 15, 2026 17:28
@batrick batrick removed this from the tentacle milestone Sep 15, 2026
@batrick batrick added this to the v20.2.5 milestone Sep 15, 2026
@github-actions github-actions Bot removed the releng-audit-fail Release engineering: failed backport verification audit. label Sep 15, 2026
@github-actions

Copy link
Copy Markdown

✅ Audit Override Applied by @batrick.

View workflow run

@rzarzynski rzarzynski changed the title Tentacle: Revert: "msg/async/ProtocolV2: Speed up connection logic when peer restarts & Added Netsplit Grace Period"- #71778 tentacle: Revert: "msg/async/ProtocolV2: Speed up connection logic when peer restarts & Added Netsplit Grace Period"- #71778 Sep 16, 2026

@rzarzynski rzarzynski left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM.
It's worth to note the revert is pretty wide – we lose many useful log entries we introduced altogether with the original change.

m->trace.event("async enqueueing message");
auto& oq = out_queue[m->get_priority()];
oq.emplace_back(out_queue_entry_t{is_prepared, std::move(m)});
ldout(cct, 15) << __func__ << " inline write is denied, reschedule m=" << m

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

There was conflict around this debug, I think.

Comment thread src/mon/Elector.cc
dout(30) << "Scheduling next ping_check for peer "
<< peer << " in " << ping_timeout / PING_DIVISOR
<< "s (recursively call ping_check until connection state changes)" << dendl;
dout(30) << "schedule " << __func__ << " against peer: "<< peer << dendl;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This commit (src/mon/Elector.cc: Improve logging for the elector) is harmless but fine with reverting it even to avoid further conflicts.

Comment thread src/mon/HealthMonitor.cc
*_dout << "}";
*_dout << "}" << dendl;
}
*_dout << " }" << dendl;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Ditto.

Comment on lines -403 to +410
__u32 get_global_seq(__u32 old=0);
__u32 get_global_seq(__u32 old=0) {
std::lock_guard<ceph::spinlock> lg(global_seq_lock);

if (old > global_seq)
global_seq = old;
__u32 ret = ++global_seq;

return ret;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

ACK.

state = SESSION_CONNECTING;
return send_client_ident();
} else { // reconnecting to previous session
ldout(cct, 20) << __func__ << " reconnecting to session" << dendl;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Another harmless commit but fine with reverting it.

Comment on lines -2715 to -2730
if (exproto->peer_global_seq > peer_global_seq &&
exproto->client_cookie && client_cookie &&
exproto->client_cookie != client_cookie &&
exproto->state != READY && exproto->state != STANDBY) {
ldout(cct, 1) << __func__ << " client has clearly restarted (ex_peer_global_seq="
<< exproto->peer_global_seq << " > peer_global_seq=" << peer_global_seq
<< " && cookie changed: client_cookie=" << client_cookie << " != ex_client_cookie="
<< exproto->client_cookie << "), "
<< "existing connection state is " << get_state_name(exproto->state)
<< " (not READY or STANDBY), dropping existing_connection=" << existing
<< " in favor of new_connection=" << connection << dendl;
existing->protocol->stop();
existing->dispatch_queue->queue_reset(existing.get());
l.unlock();
return send_server_ident();
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Here is the big thing.

@SrinivasaBharath

Copy link
Copy Markdown
Contributor

This PR has been added to wip-bharath20-testing-20260917.060858-tentacle.

@kamoltat

Copy link
Copy Markdown
Member Author

@SrinivasaBharath please note we no longer need to test this, will keep the PR open but I will remove the needs-qa tag

@SrinivasaBharath

Copy link
Copy Markdown
Contributor

This PR has been removed from wip-bharath20-testing-20260917.060858-tentacle.

@kamoltat kamoltat changed the title tentacle: Revert: "msg/async/ProtocolV2: Speed up connection logic when peer restarts & Added Netsplit Grace Period"- #71778 [DNM] tentacle: Revert: "msg/async/ProtocolV2: Speed up connection logic when peer restarts & Added Netsplit Grace Period"- #71778 Sep 17, 2026
@kamoltat kamoltat closed this Sep 21, 2026
@kamoltat

Copy link
Copy Markdown
Member Author

Closing, please refer to #71847

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants