Skip to content
This repository has been archived by the owner on Feb 18, 2021. It is now read-only.

DeleteDestination does not apply TTL on some fields #202

Merged
merged 2 commits into from
May 11, 2017

Conversation

kirg
Copy link
Contributor

@kirg kirg commented May 11, 2017

As part of the metadata changes for KFC, we added two new columns to the destinations table, 'kafka_topics' and 'kafka_cluster'; but we forgot to apply the TTL to these two columns in the DeleteDestination sql query.

For the fix, I have updated the queries to ensure the insert and delete code-paths use very similar queries, except for the additional TTL parameter for delete.

@kirg kirg requested a review from GuillaumeBailey May 11, 2017 00:47
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.1%) to 67.904% when pulling 6a60ffd on fix-delete-destination-kafka-cluster into f1b4e67 on master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.3%) to 67.774% when pulling 6a60ffd on fix-delete-destination-kafka-cluster into f1b4e67 on master.

Copy link
Contributor

@GuillaumeBailey GuillaumeBailey left a comment

Choose a reason for hiding this comment

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

LGTM

@kirg kirg merged commit 2d4edaf into master May 11, 2017
@kirg kirg self-assigned this May 12, 2017
kirg pushed a commit that referenced this pull request May 13, 2017
* DeleteDestination does not apply TTL on some fields

* remove debug printf
@kirg kirg deleted the fix-delete-destination-kafka-cluster branch May 24, 2017 20:08
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants