Skip to content
This repository has been archived by the owner on Jun 7, 2024. It is now read-only.

Commit

Permalink
take only active timelines
Browse files Browse the repository at this point in the history
  • Loading branch information
adyach committed Oct 23, 2019
1 parent 3c20ea2 commit a919b7d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -158,11 +158,11 @@ public void createTimeline(final String eventTypeName, final String storageId)

public void updateTimeLineForRepartition(final EventType eventType, final int partitions)
throws NakadiBaseException {
for (final Timeline timeline : getAllTimelinesOrdered(eventType.getName())) {
for (final Timeline timeline : getActiveTimelinesOrdered(eventType.getName())) {
getTopicRepository(eventType).repartition(timeline.getTopic(), partitions);
}

for (final Timeline timeline : getAllTimelinesOrdered(eventType.getName())) {
for (final Timeline timeline : getActiveTimelinesOrdered(eventType.getName())) {
final Timeline.KafkaStoragePosition latestPosition = StaticStorageWorkerFactory.get(timeline)
.getLatestPosition(timeline);
if (latestPosition == null) {
Expand Down

0 comments on commit a919b7d

Please sign in to comment.