8000 Add debug information. (#16307) · rnshah9/arangodb@35dc0a3 · GitHub
[go: up one dir, main page]

Skip to content

Commit 35dc0a3

Browse files
author
Lars Maier
authored
Add debug information. (arangodb#16307)
1 parent f7c63f8 commit 35dc0a3

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

arangod/RocksDBEngine/Methods/RocksDBTrxMethods.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,13 @@ Result RocksDBTrxMethods::triggerIntermediateCommit() {
212212

213213
++_state->statistics()._intermediateCommits;
214214

215+
TRI_IF_FAILURE("logAfterIntermediateCommit") {
216+
LOG_DEVEL << "_numInserts = " << _numInserts
217+
<< " _numUpdates = " << _numUpdates
218+
<< " _numRemoves = " << _numRemoves
219+
<< " _numLogdata = " << _numLogdata;
220+
}
221+
215222
// reset counters for DML operations, but intentionally don't reset
216223
// the commit counter, as we need to track if we had intermediate commits
217224
_numInserts = 0;

tests/js/client/shell/shell-transaction-intermediate-commit-cluster.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,7 @@ function transactionIntermediateCommitsSingleSuite() {
232232
debugSetFailAt(leader, "noIntermediateCommits");
233233
// turn on intermediate commits on follower
234234
debugClearFailAt(follower, "noIntermediateCommits");
235+
debugSetFailAt(follower, "logAfterIntermediateCommit");
235236

236237
let droppedFollowersBefore = getMetric(leader, "arangodb_dropped_followers_total");
237238
let intermediateCommitsBefore = getMetric(follower, "arangodb_intermediate_commits_total");
@@ -266,7 +267,9 @@ function transactionIntermediateCommitsSingleSuite() {
266267

267268
let intermediateCommitsAfter = getMetric(follower, "arangodb_intermediate_commits_total");
268269
assertEqual(intermediateCommitsBefore + 10, intermediateCommitsAfter);
269-
270+
271+
272+
debugClearFailAt(follower, "logAfterIntermediateCommit");
270273
assertInSync(leader, follower, shardId);
271274
},
272275

0 commit comments

Comments
 (0)
0