-
Notifications
You must be signed in to change notification settings - Fork 292
Enforce users to plan partitioning upfront #619
Comments
Thanks @AlexanderYastrebov for raising this issue. As you mention, the API spec indicates that EventTypeStatistics MUST be provided by users on Event Type creation (https://github.com/zalando/nakadi/blob/master/api/nakadi-event-bus-api.yaml#L2285). It's actually optional, and the API spec contradicts itself (https://github.com/zalando/nakadi/blob/master/api/nakadi-event-bus-api.yaml#L2239). We'll discuss what to do here - either fix the documentation and keep I think I'd be in favour of keeping it optional, for 2 reasons: I think this discussion is related to one of our plans to allow users to change the number of partitions in their event types. |
@AlexanderYastrebov the problem is with the documentation, since this field has been added once the API was already there and making it mandatory would break the API compatibility, which is not possible given our guidelines on Must: Don’t Break Backward Compatibility. What we are going to do is to focus on the problems behind it:
That's how we plan to solve this, first by making the documentation consistent and then tackling the root cause of the issue. |
Ticket in jira for this issue https://techjira.zalando.net/browse/ARUHA-879 |
I would add an additional point that could also be a quick fix: Choose a more sensible default value: |
Hello.
I have seen already several times people create event types with single partition and then suffer with no slots available during deployment.
API doc says that
EventTypeStatistics
MUST be provided by users on Event Typecreation but on
EventType
itselfdefault_statistic
field is not marked as required.This should be fixed to enforce users to plan partitioning upfront.
The text was updated successfully, but these errors were encountered: