Skip to content

Commit f005255

Browse files
committed
Fix IT fails
Signed-off-by: Anton Pryakhin <apryakhin1@bloomberg.net>
1 parent 4f45021 commit f005255

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

src/groups/mqb/mqba/mqba_clientsession.cpp

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@
154154
#include <mqbi_cluster.h>
155155
#include <mqbi_queue.h>
156156
#include <mqbnet_tcpsessionfactory.h>
157+
#include <mqbs_datastore.h>
157158
#include <mqbstat_brokerstats.h>
158159
#include <mqbstat_clusterstats.h>
159160
#include <mqbu_messageguidutil.h>
@@ -1672,11 +1673,14 @@ void ClientSession::onAckEvent(const mqbi::DispatcherAckEvent& event)
16721673
queue_p->stats()
16731674
->onEvent<mqbstat::QueueStatsDomain::EventType::e_ACK_TIME>(
16741675
timeDelta);
1675-
queue_p->domain()->cluster()->stats().onPartitionEvent(
1676-
mqbstat::ClusterStats::PartitionEventType::
1677-
e_PARTITION_REPLICATION,
1678-
queue_p->partitionId(),
1679-
timeDelta);
1676+
if (queue_p->partitionId() !=
1677+
mqbs::DataStore::k_INVALID_PARTITION_ID) {
1678+
queue_p->domain()->cluster()->stats().onPartitionEvent(
1679+
mqbstat::ClusterStats::PartitionEventType::
1680+
e_PARTITION_REPLICATION,
1681+
queue_p->partitionId(),
1682+
timeDelta);
1683+
}
16801684

16811685
if (!d_isClientGeneratingGUIDs) {
16821686
// Legacy client.

0 commit comments

Comments
 (0)