-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
isLiveTable check breaks Kinesis like streams #8052
Comments
Have you verified that the approach in #7743 works? I feel it should work since it follows the current way of fetching offsets. |
The |
Yup 7743 should work as that one doesn't use empty list for current |
Regarding, |
PR https://github.com/apache/pinot/pull/7756/files introduced a check for liveTable in the path of adding new partitionGroups.
This branch was introduced in
setupNewPartitionGroup
(prior to this PR we had just the else part)For new table, we go to the
else
, and for existing table detecting a new partitionGroup we go toif
. Within theif
, a call is made togetNewPartitionGroupMetadataList(streamConfig, Collections.emptyList());
. For Kinesis like streams, the response from this call depends on the currentList passed. If a Kinesis like stream received empty list, it will only return the very first parent shards. This is because in Kinesis, the shards have a sequence (we started with 0, split it to 1, 2, so 1, 2 will only be returned if the current state tells it that 0 is done ingesting).As a result of this PR change, no new shards can get detected in Kinesis.
The text was updated successfully, but these errors were encountered: