Skip to content

Commit b1c580e

Browse files
Fix published partiton Id for large partitions (#1087)
The published streaming partition Id must be equal to the trace Id of the respective request. Resolves: OLPSUP-12034 Signed-off-by: Kunter <[email protected]>
1 parent bb8d77d commit b1c580e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

olp-cpp-sdk-dataservice-write/src/StreamLayerClientImpl.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,8 @@ PublishDataResponse StreamLayerClientImpl::PublishDataGreaterThanTwentyMib(
437437
}
438438

439439
// 3. Upload partition:
440-
const auto partition_id = GenerateUuid();
440+
const auto partition_id =
441+
request.GetTraceId() ? request.GetTraceId().value() : GenerateUuid();
441442
model::PublishPartition publish_partition;
442443
publish_partition.SetPartition(partition_id);
443444
publish_partition.SetDataHandle(data_handle);

0 commit comments

Comments
 (0)