Repository navigation
Conversation
|
Do you this this related/fixes https://tracker.ceph.com/issues/72031? |
|
make check failures look relevant |
4c7f87f to
b48f79f
Compare
It is very probable it does. |
b48f79f to
78a039a
Compare
| std::lock_guard l(txc->osr->qlock); | ||
| txc->osr->qcond.notify_all(); | ||
| if (sync_submit_transaction) { | ||
| // We already have the lock |
There was a problem hiding this comment.
Oh no... this is very implicity and unreliable statement
There was a problem hiding this comment.
Please elaborate more.
The comment is here to observe difference between taking and not taking an osr->qlock.
There are 2 paths invoking _txc_apply_kv:
_kv_sync_thread, lock not held_txc_state_proc, that hasceph_assert(ceph_mutex_is_locked(txc->osr->qlock));
There was a problem hiding this comment.
Well - first of all the name of the parameter is pretty confusing. What does it determine - who called the function? But sounds like it's about synchronous vs. asynchronous execution... Well, originally this was apparently intended for tracing only hence it's not a big deal.
Now it becomes worse - new patch uses this unclear parameter to determine if it needs locking or not. Which makes the cost of an error (in the future code if any) much higher. At this point I'd like to have the parameter name indicating the proper (and primary) meaning - whether caller request for lock acquisition within the func or not...
78a039a to
2b3cf0e
Compare
|
jenkins test make check |
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
The testing showed that sometimes BlueStore::OpSequencer::flush() hangs.
A script that replicates the problem (sometimes, patience needed).
<bash script begin>
\#!/bin/bash
\# best execute from /dev/shm
export CBIN=/home/akupczyk/ceph-2/build/
for ((t=0; t<20; t++))
do
{
for ((i=0; i<100; i++))
do
rm log$t.txt
rm out$t.$i.txt
${CBIN}/bin/ceph_test_objectstore --gtest_filter=\*BlueStore\*Matrix\* \
--bluestore_debug_enforce_settings=ssd --debug_rocksdb=0/0 --plugin_dir=${CBIN}/lib \
--log_to_stderr=false --log_file=log$t.txt > out$t.$i.txt 2>&1 || exit
echo THREAD $t ITERATION $i DONE
done
} &
done
wait
echo ALL DONE
<bash script ends>
The captures hangs show all transactions in sequencer in STATE_DONE,
and a thread waiting on
void flush() {
...
qcond.wait(l);
...
}
I was unable to find exact execution sequence that leads to the hang.
The path I suspected was that flush() sleeps waiting on qcong for youngest
transaction to progress further than STATE_KV_SUBMITTED, but that
transaction was able to pass through execution without signalling qcond.
Actions:
1) Added locks around `qcond.notify_all()`.
2) Moved to `qcond.wait(.., predicate)`
3) Replaced `qcond.wait()` with `qcond.wait_for()`
4) If wait on qcond timed out, print message to dout(1)
Fixes: https://tracker.ceph.com/issues/72031
Signed-off-by: Adam Kupczyk <[email protected]>
Rename parameter sync_submit_transaction -> osr_lock_held. This is to stress actual difference in _txc_apply_kv behaviour. Signed-off-by: Adam Kupczyk <[email protected]>
52158b1 to
d8b6c41
Compare
|
This PR has been added to wip-jaya-bs-testing-10-27-2026. |
The testing showed that sometimes BlueStore::OpSequencer::flush() hangs.
A script that replicates the problem (sometimes, patience needed).
The captures hangs show all transactions in sequencer in STATE_DONE, and a thread waiting on
I was unable to find exact execution sequence that leads to the hang. The path I suspected was that flush() sleeps waiting on qcong for youngest transaction to progress further than STATE_KV_SUBMITTED, but that transaction was able to pass through execution without signalling qcond.
Actions:
qcond.notify_all().qcond.wait(.., predicate)https://tracker.ceph.com/issues/72031
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
xbetween the brackets:[x]. Spaces and capitalization matter when checking off items this way.Checklist
Show available Jenkins commands
jenkins test classic perfJenkins Job | Jenkins Job Definitionjenkins test crimson perfJenkins Job | Jenkins Job Definitionjenkins test signedJenkins Job | Jenkins Job Definitionjenkins test make checkJenkins Job | Jenkins Job Definitionjenkins test make check arm64Jenkins Job | Jenkins Job Definitionjenkins test submodulesJenkins Job | Jenkins Job Definitionjenkins test dashboardJenkins Job | Jenkins Job Definitionjenkins test dashboard cephadmJenkins Job | Jenkins Job Definitionjenkins test apiJenkins Job | Jenkins Job Definitionjenkins test docsReadTheDocs | Github Workflow Definitionjenkins test ceph-volume allJenkins Jobs | Jenkins Jobs Definitionjenkins test windowsJenkins Job | Jenkins Job Definitionjenkins test rook e2eJenkins Job | Jenkins Job DefinitionYou must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.