File tree Expand file tree Collapse file tree 3 files changed +18
-5
lines changed
containers/Tenant/Diagnostics/TopicData Expand file tree Collapse file tree 3 files changed +18
-5
lines changed Original file line number Diff line number Diff line change @@ -66,7 +66,12 @@ export const generateTopicDataGetter = ({
6666
6767 const normalizedOffset = baseOffset + tableOffset ;
6868
69- const queryParams : TopicDataRequest = { ...rest , partition, limit} ;
69+ const queryParams : TopicDataRequest = {
70+ ...rest ,
71+ partition,
72+ limit,
73+ last_offset : normalizedOffset + limit ,
74+ } ;
7075 queryParams . offset = normalizedOffset ;
7176
7277 const response = await window . api . viewer . getTopicData ( queryParams ) ;
Original file line number Diff line number Diff line change @@ -263,10 +263,14 @@ export class ViewerAPI extends BaseYdbAPI {
263263 }
264264
265265 getTopicData ( params : TopicDataRequest , { concurrentId, signal} : AxiosOptions = { } ) {
266- return this . get < TopicDataResponse > ( this . getPath ( '/viewer/json/topic_data' ) , params , {
267- concurrentId,
268- requestConfig : { signal} ,
269- } ) ;
266+ return this . get < TopicDataResponse > (
267+ this . getPath ( '/viewer/json/topic_data' ) ,
268+ { message_size_limit : '5000' , ...params } ,
269+ {
270+ concurrentId,
271+ requestConfig : { signal} ,
272+ } ,
273+ ) ;
270274 }
271275
272276 getConsumer (
Original file line number Diff line number Diff line change @@ -172,12 +172,16 @@ export interface TopicDataRequest {
172172 partition : string ;
173173 /** start offset to read from */
174174 offset ?: number ;
175+ /** last offset that can possibly be read */
176+ last_offset ?: number ;
175177 /** min message timestamp to read from */
176178 read_timestamp ?: number ;
177179 /** max number of messages to read (default = 10) */
178180 limit ?: number ;
179181 /** timeout in ms */
180182 timeout ?: number ;
183+ /** max size of single message (default = 1_000_000 (1 MB)) */
184+ message_size_limit ?: number ;
181185}
182186
183187export interface TopicDataResponse {
You can’t perform that action at this time.
0 commit comments