-
Task
-
Resolution: Done
-
Undefined
-
2.3.0.GA
-
None
-
False
-
None
-
False
-
-
-
- RFE:
- Allow the gc log to change the timezone
- Problem:
- It seems unable to change the timezone of gc logs
- gcLoggingEnabled can be used in KafkaClusterSpec, KafkaConnectSpec, KafkaMirrorMaker2Spec and ZookeeperClusterSpec.
- ZK environment variable can be changed on the container as below, but the timezone of the gc logs can not be changed.
kafka: jvmOptions: gcLoggingEnabled: true template: container: env: - name: TZ value: Asia/Tokyo
[2023-04-10T03:07:49.600+0000] GC(17) Concurrent Mark From Roots 30.657ms [2023-04-10T03:07:49.600+0000] GC(17) Concurrent Preclean [2023-04-10T03:07:49.600+0000] GC(17) Concurrent Preclean 0.073ms [2023-04-10T03:07:49.602+0000] GC(17) Pause Remark ...
- It seems unable to change the timezone of gc logs
- As far as investigated:
- I ran a simple test of the solution in "
ENTMQST-4721Allow Kafka exporter to change the timezone", and it worked, so it seems the same solution can solve this problem. - The above problem is scheduled to be resolved in AMQ Streams 2.4, so this problem may have already been resolved as well.
- I ran a simple test of the solution in "
– FYI, The container image of the Kafka exporter doesn't have the zone info (/usr/share/zoneinfo/) because of ubi8-minimal[1].
[1] Why is /usr/share/zoneinfo empty in ubi8-minimal images despite the tzdata package being present?
https://access.redhat.com/solutions/5616681