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

Commit

Permalink
Add special UUID to kafka CGE detection heuristic
Browse files Browse the repository at this point in the history
  • Loading branch information
Guillaume Bailey committed Apr 17, 2017
1 parent eaa3a91 commit 158239e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion common/metadata.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,6 @@ func IsDLQDestinationPath(path string) bool {

// IsKafkaConsumerGroupExtent determines if a consumer group extent is a Kafka consumption assignment
func IsKafkaConsumerGroupExtent(e *shared.ConsumerGroupExtent) bool {
return len(e.GetStoreUUIDs()) <= 1 // TODO: Replace this heuristic when CGE metadata has been updated
l := len(e.GetStoreUUIDs()) // TODO: Replace this heuristic when CGE metadata has been updated
return l == 0 || (l == 1 && e.GetStoreUUIDs()[0] == `00000000-0000-0000-0000-000000000000`)
}

0 comments on commit 158239e

Please sign in to comment.