Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Separate the exception for transform and indexing for consuming records #7926

Merged
merged 1 commit into from
Dec 20, 2021

Conversation

Jackie-Jiang
Copy link
Contributor

Currently the exception from transforming and indexing the records are mixed together, which is hard for debugging. This PR splits them into different exception messages.

canTakeMore = _realtimeSegment.index(transformedRow, msgMetadata);
indexedMessageCount++;
realtimeRowsConsumedMeter =
_serverMetrics.addMeteredTableValue(_metricKeyName, ServerMeter.REALTIME_ROWS_CONSUMED, 1,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One consumed row can transform into multiple transformed rows, so we should bump this metric after we have consumed a row (and before we transform it) -- whether there are exceptions or not.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This keeps the existing behavior where each transformed row bumps this metric ones. I feel we should keep the existing behavior

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah I see now. In the original code, we bump metrics independently. if multiple transformed rows, then once for each transformed row, otherwise once for consumed row. Your new code will preserve the same behavior yes. thanks for the clarification.

@codecov-commenter
Copy link

codecov-commenter commented Dec 18, 2021

Codecov Report

Merging #7926 (1dcd461) into master (6037cac) will decrease coverage by 0.09%.
The diff coverage is 33.33%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master    #7926      +/-   ##
============================================
- Coverage     71.15%   71.06%   -0.10%     
- Complexity     4111     4114       +3     
============================================
  Files          1593     1593              
  Lines         82365    82375      +10     
  Branches      12270    12271       +1     
============================================
- Hits          58609    58536      -73     
- Misses        19806    19892      +86     
+ Partials       3950     3947       -3     
Flag Coverage Δ
integration1 29.04% <33.33%> (-0.07%) ⬇️
integration2 27.63% <33.33%> (+0.04%) ⬆️
unittests1 68.05% <0.00%> (-0.02%) ⬇️
unittests2 14.33% <0.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...ocal/recordtransformer/ComplexTypeTransformer.java 55.67% <ø> (ø)
...manager/realtime/LLRealtimeSegmentDataManager.java 71.81% <33.33%> (-0.03%) ⬇️
...data/manager/realtime/DefaultSegmentCommitter.java 0.00% <0.00%> (-80.00%) ⬇️
...ller/helix/core/minion/TaskTypeMetricsUpdater.java 80.00% <0.00%> (-20.00%) ⬇️
...er/api/resources/LLCSegmentCompletionHandlers.java 43.56% <0.00%> (-18.82%) ⬇️
...data/manager/realtime/SegmentCommitterFactory.java 88.23% <0.00%> (-11.77%) ⬇️
...altime/ServerSegmentCompletionProtocolHandler.java 51.42% <0.00%> (-6.67%) ⬇️
.../helix/core/minion/MinionInstancesCleanupTask.java 77.27% <0.00%> (-4.55%) ⬇️
...core/query/executor/ServerQueryExecutorV1Impl.java 83.33% <0.00%> (-4.42%) ⬇️
...pinot/core/query/request/context/TimerContext.java 91.66% <0.00%> (-4.17%) ⬇️
... and 23 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6037cac...1dcd461. Read the comment docs.

@Jackie-Jiang Jackie-Jiang merged commit 71fefe2 into apache:master Dec 20, 2021
@Jackie-Jiang Jackie-Jiang deleted the ingestion_error_message branch December 20, 2021 18:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants