Skip to content

Commit 6d6388f

Browse files
authored
Init watch_retry_count to 0 to avoid nil error. (fabric8io#223)
1 parent 7101860 commit 6d6388f

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

lib/fluent/plugin/kubernetes_metadata_watch_namespaces.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ def set_up_namespace_thread
2929
# the configuration.
3030
namespace_watcher = start_namespace_watch
3131
Thread.current[:namespace_watch_retry_backoff_interval] = @watch_retry_interval
32+
Thread.current[:namespace_watch_retry_count] = 0
3233

3334
# Any failures / exceptions in the followup watcher notice
3435
# processing will be swallowed and retried. These failures /

lib/fluent/plugin/kubernetes_metadata_watch_pods.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ def set_up_pod_thread
2929
# the configuration.
3030
pod_watcher = start_pod_watch
3131
Thread.current[:pod_watch_retry_backoff_interval] = @watch_retry_interval
32+
Thread.current[:pod_watch_retry_count] = 0
3233

3334
# Any failures / exceptions in the followup watcher notice
3435
# processing will be swallowed and retried. These failures /

0 commit comments

Comments
 (0)