@@ -89,14 +89,13 @@ auto DocumentFollowerState::applyEntries(
89
89
}
90
90
91
91
if (self->_transactionHandler == nullptr ) {
92
- return Result{
93
- TRI_ERROR_ARANGO_DATABASE_NOT_FOUND,
94
- fmt::format (
95
- " Transaction handler is missing from "
96
- " DocumentFollowerState during applyEntries "
97
- " {}! This happens if the vocbase cannot be found during "
98
- " DocumentState construction." ,
99
- to_string (data.core ->getGid ()))};
92
+ // TODO this is a temporary fix, see CINFRA-588
93
+ LOG_CTX (" cfd76" , ERR, self->loggerContext ) << fmt::format (
94
+ " Transaction handler is missing from "
95
+ " DocumentFollowerState {}! This happens if the vocbase cannot be "
96
+ " found during DocumentState construction." ,
97
+ self->shardId );
98
+ return Result{};
100
99
}
101
100
102
101
return basics::catchToResultT ([&]() -> std::optional<LogIndex> {
@@ -161,6 +160,15 @@ auto DocumentFollowerState::applyEntries(
161
160
auto DocumentFollowerState::forceLocalTransaction (OperationType opType,
162
161
velocypack::SharedSlice slice)
163
162
-> Result {
163
+ if (_transactionHandler == nullptr ) {
164
+ // TODO this is a temporary fix, see CINFRA-588
165
+ LOG_CTX (" 27c2b" , ERR, loggerContext) << fmt::format (
166
+ " Transaction handler is missing from "
167
+ " DocumentFollowerState {}! This happens if the vocbase cannot be found "
168
+ " during DocumentState construction." ,
169
+ shardId);
170
+ return Result{};
171
+ }
164
172
auto trxId = TransactionId::createFollower ();
165
173
auto doc =
166
174
DocumentLogEntry{std::string (shardId), opType, std::move (slice), trxId};
0 commit comments