navina commented on code in PR #10773: URL: https://github.com/apache/pinot/pull/10773#discussion_r1196908534
########## pinot-core/src/main/java/org/apache/pinot/core/data/manager/realtime/LLRealtimeSegmentDataManager.java: ########## @@ -1419,8 +1419,15 @@ public LLRealtimeSegmentDataManager(SegmentZKMetadata segmentZKMetadata, TableCo // Create message decoder Set<String> fieldsToRead = IngestionUtils.getFieldsForRecordExtractor(_tableConfig.getIngestionConfig(), _schema); - StreamMessageDecoder streamMessageDecoder = StreamDecoderProvider.create(_partitionLevelStreamConfig, fieldsToRead); - _streamDataDecoder = new StreamDataDecoderImpl(streamMessageDecoder); + try { + StreamMessageDecoder streamMessageDecoder = + StreamDecoderProvider.create(_partitionLevelStreamConfig, fieldsToRead); + _streamDataDecoder = new StreamDataDecoderImpl(streamMessageDecoder); + } catch (Exception e) { + _realtimeTableDataManager.addSegmentError(_segmentNameStr, + new SegmentErrorInfo(now(), "Failed to initialize the StreamMessageDecoder", e)); Review Comment: >yes, what i meant is doing the same thing in this method as how PartitionConsumer is doing in its run method Given the complexity of this constructor, I wouldn't bucket everything into a single catch block. I think it also helps provide more accurate error message , even before looking at the stacktrace. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org For additional commands, e-mail: commits-h...@pinot.apache.org