Skip to content

Commit

Permalink
LOG-3949: Vector not releasing deleted file handles
Browse files Browse the repository at this point in the history
  • Loading branch information
syedriko committed Sep 29, 2023
1 parent 7cb2055 commit f528d59
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions internal/generator/vector/conf_test/complex.toml
Expand Up @@ -16,6 +16,7 @@ pod_annotation_fields.pod_annotations = "kubernetes.annotations"
pod_annotation_fields.pod_uid = "kubernetes.pod_id"
pod_annotation_fields.pod_node_name = "hostname"
namespace_annotation_fields.namespace_uid = "kubernetes.namespace_id"
rotate_wait_ms = 5000

[sources.raw_journal_logs]
type = "journald"
Expand Down
Expand Up @@ -17,6 +17,7 @@ pod_annotation_fields.pod_annotations = "kubernetes.annotations"
pod_annotation_fields.pod_uid = "kubernetes.pod_id"
pod_annotation_fields.pod_node_name = "hostname"
namespace_annotation_fields.namespace_uid = "kubernetes.namespace_id"
rotate_wait_ms = 5000

[sources.raw_journal_logs]
type = "journald"
Expand Down
1 change: 1 addition & 0 deletions internal/generator/vector/conf_test/complex_es_no_ver.toml
Expand Up @@ -16,6 +16,7 @@ pod_annotation_fields.pod_annotations = "kubernetes.annotations"
pod_annotation_fields.pod_uid = "kubernetes.pod_id"
pod_annotation_fields.pod_node_name = "hostname"
namespace_annotation_fields.namespace_uid = "kubernetes.namespace_id"
rotate_wait_ms = 5000

[sources.raw_journal_logs]
type = "journald"
Expand Down
1 change: 1 addition & 0 deletions internal/generator/vector/conf_test/complex_es_v6.toml
Expand Up @@ -16,6 +16,7 @@ pod_annotation_fields.pod_annotations = "kubernetes.annotations"
pod_annotation_fields.pod_uid = "kubernetes.pod_id"
pod_annotation_fields.pod_node_name = "hostname"
namespace_annotation_fields.namespace_uid = "kubernetes.namespace_id"
rotate_wait_ms = 5000

[sources.raw_journal_logs]
type = "journald"
Expand Down
1 change: 1 addition & 0 deletions internal/generator/vector/conf_test/complex_otel.toml
Expand Up @@ -16,6 +16,7 @@ pod_annotation_fields.pod_annotations = "kubernetes.annotations"
pod_annotation_fields.pod_uid = "kubernetes.pod_id"
pod_annotation_fields.pod_node_name = "hostname"
namespace_annotation_fields.namespace_uid = "kubernetes.namespace_id"
rotate_wait_ms = 5000

[sources.raw_journal_logs]
type = "journald"
Expand Down
Expand Up @@ -16,6 +16,7 @@ pod_annotation_fields.pod_annotations = "kubernetes.annotations"
pod_annotation_fields.pod_uid = "kubernetes.pod_id"
pod_annotation_fields.pod_node_name = "hostname"
namespace_annotation_fields.namespace_uid = "kubernetes.namespace_id"
rotate_wait_ms = 5000

[sources.raw_journal_logs]
type = "journald"
Expand Down
1 change: 1 addition & 0 deletions internal/generator/vector/source/kubernetes_logs.go
Expand Up @@ -29,5 +29,6 @@ pod_annotation_fields.pod_annotations = "kubernetes.annotations"
pod_annotation_fields.pod_uid = "kubernetes.pod_id"
pod_annotation_fields.pod_node_name = "hostname"
namespace_annotation_fields.namespace_uid = "kubernetes.namespace_id"
rotate_wait_ms = 5000
{{end}}`
}
3 changes: 3 additions & 0 deletions internal/generator/vector/sources_test.go
Expand Up @@ -43,6 +43,7 @@ pod_annotation_fields.pod_annotations = "kubernetes.annotations"
pod_annotation_fields.pod_uid = "kubernetes.pod_id"
pod_annotation_fields.pod_node_name = "hostname"
namespace_annotation_fields.namespace_uid = "kubernetes.namespace_id"
rotate_wait_ms = 5000
`,
}),
Entry("Only Infrastructure", helpers.ConfGenerateTest{
Expand Down Expand Up @@ -71,6 +72,7 @@ pod_annotation_fields.pod_annotations = "kubernetes.annotations"
pod_annotation_fields.pod_uid = "kubernetes.pod_id"
pod_annotation_fields.pod_node_name = "hostname"
namespace_annotation_fields.namespace_uid = "kubernetes.namespace_id"
rotate_wait_ms = 5000
[sources.raw_journal_logs]
type = "journald"
Expand Down Expand Up @@ -147,6 +149,7 @@ pod_annotation_fields.pod_annotations = "kubernetes.annotations"
pod_annotation_fields.pod_uid = "kubernetes.pod_id"
pod_annotation_fields.pod_node_name = "hostname"
namespace_annotation_fields.namespace_uid = "kubernetes.namespace_id"
rotate_wait_ms = 5000
[sources.raw_journal_logs]
type = "journald"
Expand Down

0 comments on commit f528d59

Please sign in to comment.