Browse Source

Merge pull request #652 from Shopify/doc-retention-version-requirement

Doc that Offset.Retention requires kafka 0.9
Evan Huus 9 years ago
parent
commit
49e7bb5fa4
1 changed files with 2 additions and 1 deletions
  1. 2 1
      config.go

+ 2 - 1
config.go

@@ -197,7 +197,8 @@ type Config struct {
 			// The retention duration for committed offsets. If zero, disabled
 			// (in which case the `offsets.retention.minutes` option on the
 			// broker will be used).  Kafka only supports precision up to
-			// milliseconds; nanoseconds will be truncated.
+			// milliseconds; nanoseconds will be truncated. Requires Kafka
+			// broker version 0.9.0 or later.
 			// (default is 0: disabled).
 			Retention time.Duration
 		}