Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/groups/mqb/mqbblp/mqbblp_recoverymanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#include <bsls_assert.h>

Check failure on line 16 in src/groups/mqb/mqbblp/mqbblp_recoverymanager.cpp

View workflow job for this annotation

GitHub Actions / C++ Linter Check

src/groups/mqb/mqbblp/mqbblp_recoverymanager.cpp:16:10 [clang-diagnostic-error]

'bsls_assert.h' file not found

Check failure on line 16 in src/groups/mqb/mqbblp/mqbblp_recoverymanager.cpp

View workflow job for this annotation

GitHub Actions / C++ Linter Check

src/groups/mqb/mqbblp/mqbblp_recoverymanager.cpp:16:10 [clang-diagnostic-error]

'bsls_assert.h' file not found
#include <mqbblp_recoverymanager.h>
#include <mqbs_filestoreprintutil.h>

Expand Down Expand Up @@ -2011,7 +2011,7 @@

bmqp_ctrlmsg::PartitionSequenceNumber selfSequenceNum;
selfSequenceNum.primaryLeaseId() = fs->writeHeadLeaseId();
selfSequenceNum.sequenceNumber() = fs->sequenceNumber();
selfSequenceNum.sequenceNumber() = fs->writeHeadSeqNum();

const FileTransferInfo& fti = primarySyncCtx->fileTransferInfo();

Expand Down Expand Up @@ -4373,7 +4373,7 @@

bmqp_ctrlmsg::PartitionSequenceNumber tmp;
tmp.primaryLeaseId() = fs->writeHeadLeaseId();
tmp.sequenceNumber() = fs->sequenceNumber();
tmp.sequenceNumber() = fs->writeHeadSeqNum();
primarySyncCtx.setSelfPartitionSequenceNum(tmp);

if (!fs->syncPoints().empty()) {
Expand Down Expand Up @@ -4469,7 +4469,7 @@

response.partitionId() = req.partitionId();
response.primaryLeaseId() = fs->writeHeadLeaseId();
response.sequenceNum() = fs->sequenceNumber();
response.sequenceNum() = fs->writeHeadSeqNum();
if (!fs->syncPoints().empty()) {
response.lastSyncPointOffsetPair() = fs->syncPoints().back();
}
Expand Down Expand Up @@ -4578,7 +4578,7 @@

bmqp_ctrlmsg::PartitionSequenceNumber selfPSN;
selfPSN.primaryLeaseId() = fs->writeHeadLeaseId();
selfPSN.sequenceNumber() = fs->sequenceNumber();
selfPSN.sequenceNumber() = fs->writeHeadSeqNum();

if (requesterUptoPSN <= requesterPSN) {
BALL_LOG_WARN << d_clusterData_p->identity().description()
Expand Down
2 changes: 1 addition & 1 deletion src/groups/mqb/mqbblp/mqbblp_storagemanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#include <ball_log.h>

Check failure on line 16 in src/groups/mqb/mqbblp/mqbblp_storagemanager.cpp

View workflow job for this annotation

GitHub Actions / C++ Linter Check

src/groups/mqb/mqbblp/mqbblp_storagemanager.cpp:16:10 [clang-diagnostic-error]

'ball_log.h' file not found

Check failure on line 16 in src/groups/mqb/mqbblp/mqbblp_storagemanager.cpp

View workflow job for this annotation

GitHub Actions / C++ Linter Check

src/groups/mqb/mqbblp/mqbblp_storagemanager.cpp:16:10 [clang-diagnostic-error]

'ball_log.h' file not found
#include <mqbblp_storagemanager.h>

#include <mqbscm_version.h>
Expand Down Expand Up @@ -364,7 +364,7 @@
: "**none**")
<< ", "
<< mqbs::printPSN(fs->writeHeadLeaseId(),
fs->sequenceNumber())
fs->writeHeadSeqNum())
<< ")";
}
}
Expand Down
6 changes: 3 additions & 3 deletions src/groups/mqb/mqbc/mqbc_recoverymanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#include <ball_log.h>

Check failure on line 16 in src/groups/mqb/mqbc/mqbc_recoverymanager.cpp

View workflow job for this annotation

GitHub Actions / C++ Linter Check

src/groups/mqb/mqbc/mqbc_recoverymanager.cpp:16:10 [clang-diagnostic-error]

'ball_log.h' file not found

Check failure on line 16 in src/groups/mqb/mqbc/mqbc_recoverymanager.cpp

View workflow job for this annotation

GitHub Actions / C++ Linter Check

src/groups/mqb/mqbc/mqbc_recoverymanager.cpp:16:10 [clang-diagnostic-error]

'ball_log.h' file not found
#include <bsls_assert.h>
#include <mqbc_partitionfsm.h>
#include <mqbc_recoverymanager.h>
Expand Down Expand Up @@ -232,7 +232,7 @@
BSLS_ASSERT_SAFE(receiveDataCtx.d_currPSN.primaryLeaseId() ==
fs.writeHeadLeaseId());
BSLS_ASSERT_SAFE(receiveDataCtx.d_currPSN.sequenceNumber() ==
fs.sequenceNumber());
fs.writeHeadSeqNum());
}
else {
BSLS_ASSERT_SAFE(recoveryCtx.d_mappedJournalFd.isValid() &&
Expand Down Expand Up @@ -646,12 +646,12 @@
BSLS_ASSERT_SAFE(receiveDataCtx.d_currPSN.primaryLeaseId() ==
fs->writeHeadLeaseId());
BSLS_ASSERT_SAFE(receiveDataCtx.d_currPSN.sequenceNumber() ==
fs->sequenceNumber());
fs->writeHeadSeqNum());

fs->processStorageEvent(blob, true /* isPartitionSyncEvent */, source);

receiveDataCtx.d_currPSN.primaryLeaseId() = fs->writeHeadLeaseId();
receiveDataCtx.d_currPSN.sequenceNumber() = fs->sequenceNumber();
receiveDataCtx.d_currPSN.sequenceNumber() = fs->writeHeadSeqNum();

if (receiveDataCtx.d_currPSN == receiveDataCtx.d_endPSN) {
receiveDataCtx.d_expectChunks = false;
Expand Down
2 changes: 1 addition & 1 deletion src/groups/mqb/mqbc/mqbc_storagemanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#include <ball_log.h>

Check failure on line 16 in src/groups/mqb/mqbc/mqbc_storagemanager.cpp

View workflow job for this annotation

GitHub Actions / C++ Linter Check

src/groups/mqb/mqbc/mqbc_storagemanager.cpp:16:10 [clang-diagnostic-error]

'ball_log.h' file not found

Check failure on line 16 in src/groups/mqb/mqbc/mqbc_storagemanager.cpp

View workflow job for this annotation

GitHub Actions / C++ Linter Check

src/groups/mqb/mqbc/mqbc_storagemanager.cpp:16:10 [clang-diagnostic-error]

'ball_log.h' file not found
#include <ball_logthrottle.h>
#include <bsls_assert.h>
#include <mqbc_storagemanager.h>
Expand Down Expand Up @@ -1925,7 +1925,7 @@
BSLS_ASSERT_SAFE(fs);
if (fs->isOpen()) {
nodePSNCtx.d_PSN.primaryLeaseId() = fs->writeHeadLeaseId();
nodePSNCtx.d_PSN.sequenceNumber() = fs->sequenceNumber();
nodePSNCtx.d_PSN.sequenceNumber() = fs->writeHeadSeqNum();
}
else {
const int rc = d_recoveryManager_mp->recoverPSN(&nodePSNCtx.d_PSN,
Expand Down
9 changes: 5 additions & 4 deletions src/groups/mqb/mqbc/mqbc_storagemanager.t.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2924,7 +2924,7 @@ static void test18_primaryHealingWatchdogRetry()
const int k_PRIMARY_LEASE_ID =
storageManager.fileStore(k_PARTITION_ID).writeHeadLeaseId();
const int k_PRIMARY_SEQ_NUM =
storageManager.fileStore(k_PARTITION_ID).sequenceNumber();
storageManager.fileStore(k_PARTITION_ID).writeHeadSeqNum();

static const int k_REQUEST_ID = 1;
bmqp_ctrlmsg::ControlMessage message;
Expand Down Expand Up @@ -3555,7 +3555,7 @@ static void test23_replicaHealingReceivesReplicaDataRqstDropInvalidPid()

// 5. Send a storage event (PUT) and verify it is buffered, not processed
const bsls::Types::Uint64 seqNumBefore =
storageManager.fileStore(k_PARTITION_ID).sequenceNumber();
storageManager.fileStore(k_PARTITION_ID).writeHeadSeqNum();

bmqp::StorageEventBuilder seb(mqbs::FileStoreProtocol::k_VERSION,
bmqp::EventType::e_STORAGE,
Expand Down Expand Up @@ -3593,8 +3593,9 @@ static void test23_replicaHealingReceivesReplicaDataRqstDropInvalidPid()

// Sequence number has not advanced; this proves that we did not process
// the PUT.
BMQTST_ASSERT_EQ(storageManager.fileStore(k_PARTITION_ID).sequenceNumber(),
seqNumBefore);
BMQTST_ASSERT_EQ(
storageManager.fileStore(k_PARTITION_ID).writeHeadSeqNum(),
seqNumBefore);

BMQTST_ASSERT_EQ(storageManager.partitionHealthState(k_PARTITION_ID),
mqbc::PartitionFSM::State::e_REPLICA_HEALING);
Expand Down
4 changes: 2 additions & 2 deletions src/groups/mqb/mqbc/mqbc_storageutil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3735,7 +3735,7 @@ void StorageUtil::forceIssueAdvisoryAndSyncPt(mqbc::ClusterData* clusterData,
<< fs->config().partitionId()
<< "]: successfully issued a forced SyncPt: "
<< mqbs::printPSN(fs->writeHeadLeaseId(),
fs->sequenceNumber())
fs->writeHeadSeqNum())
<< ".";
}
else {
Expand All @@ -3744,7 +3744,7 @@ void StorageUtil::forceIssueAdvisoryAndSyncPt(mqbc::ClusterData* clusterData,
<< "]: failed to force-issue SyncPt, rc: " << rc
<< ", current PSN: "
<< mqbs::printPSN(fs->writeHeadLeaseId(),
fs->sequenceNumber());
fs->writeHeadSeqNum());
}
}

Expand Down
Loading
Loading