Skip to content

Commit 17066f1

Browse files
authored
Fix more misleading schemeshard logs (#12361)
1 parent b406987 commit 17066f1

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

ydb/core/tx/schemeshard/schemeshard__operation.cpp

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1668,13 +1668,18 @@ void TOperation::RegisterRelationByTabletId(TSubTxId partId, TTabletId tablet, c
16681668
if (RelationsByTabletId.contains(tablet)) {
16691669
if (RelationsByTabletId.at(tablet) != partId) {
16701670
// it is Ok if Hive otherwise it is error
1671+
TSubTxId prevPartId = RelationsByTabletId.at(tablet);
16711672
LOG_DEBUG_S(ctx, NKikimrServices::FLAT_TX_SCHEMESHARD,
16721673
"TOperation RegisterRelationByTabletId"
16731674
<< " collision in routes has found"
1674-
<< ", TxId: " << TxId
1675-
<< ", partId: " << partId
1676-
<< ", prev tablet: " << RelationsByTabletId.at(tablet)
1677-
<< ", new tablet: " << tablet);
1675+
<< ", TxId# " << TxId
1676+
<< ", partId# " << partId
1677+
<< ", prevPartId# " << prevPartId
1678+
<< ", tablet# " << tablet
1679+
<< ", guessDefaultRootHive# " << (tablet == TTabletId(72057594037968897) ? "yes" : "no")
1680+
<< ", prevTx# " << (prevPartId < Parts.size() ? Parts[prevPartId]->GetTransaction().ShortDebugString() : TString("unknown"))
1681+
<< ", newTx# " << (partId < Parts.size() ? Parts[partId]->GetTransaction().ShortDebugString() : TString("unknown"))
1682+
);
16781683

16791684
RelationsByTabletId.erase(tablet);
16801685
}

0 commit comments

Comments
 (0)