@@ -295,9 +295,10 @@ Status TxnManager::commit_txn(OlapMeta* meta, TPartitionId partition_id,
295
295
const RowsetSharedPtr& rowset_ptr, PendingRowsetGuard guard,
296
296
bool is_recovery) {
297
297
if (partition_id < 1 || transaction_id < 1 || tablet_id < 1 ) {
298
- LOG (FATAL) << " invalid commit req "
299
- << " partition_id=" << partition_id << " transaction_id=" << transaction_id
300
- << " tablet_id=" << tablet_id;
298
+ LOG (WARNING) << " invalid commit req "
299
+ << " partition_id=" << partition_id << " transaction_id=" << transaction_id
300
+ << " tablet_id=" << tablet_id;
301
+ return Status::InternalError (" invalid partition id" );
301
302
}
302
303
303
304
pair<int64_t , int64_t > key (partition_id, transaction_id);
@@ -383,10 +384,8 @@ Status TxnManager::commit_txn(OlapMeta* meta, TPartitionId partition_id,
383
384
}
384
385
});
385
386
if (!save_status.ok ()) {
386
- return Status::Error<ROWSET_SAVE_FAILED>(
387
- " save committed rowset failed. when commit txn rowset_id: {}, tablet id: {}, "
388
- " txn id: {}" ,
389
- rowset_ptr->rowset_id ().to_string (), tablet_id, transaction_id);
387
+ save_status.append (fmt::format (" , txn id: {}" , transaction_id));
388
+ return save_status;
390
389
}
391
390
}
392
391
@@ -537,10 +536,8 @@ Status TxnManager::publish_txn(OlapMeta* meta, TPartitionId partition_id,
537
536
rowset->rowset_meta ()->get_rowset_pb (), enable_binlog);
538
537
stats->save_meta_time_us += MonotonicMicros () - t5;
539
538
if (!status.ok ()) {
540
- return Status::Error<ROWSET_SAVE_FAILED>(
541
- " save committed rowset failed. when publish txn rowset_id: {}, tablet id: {}, txn "
542
- " id: {}" ,
543
- rowset->rowset_id ().to_string (), tablet_id, transaction_id);
539
+ status.append (fmt::format (" , txn id: {}" , transaction_id));
540
+ return status;
544
541
}
545
542
546
543
// TODO(Drogon): remove these test codes
0 commit comments