Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] offset topic load stackOverFlow #2275

Open
lifepuzzlefun opened this issue Jan 15, 2025 · 0 comments
Open

[BUG] offset topic load stackOverFlow #2275

lifepuzzlefun opened this issue Jan 15, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@lifepuzzlefun
Copy link
Contributor

Version & Environment

What went wrong?

[2025-01-14 01:00:55,381] ERROR [GroupMetadataManager brokerId=1015] Error loading offsets from __consumer_offsets-38 (kafka.coordinator.group.GroupMetadataManager)
java.lang.RuntimeException: java.io.IOException: java.lang.StackOverflowError
	at kafka.log.streamaspect.ElasticLogFileRecords$BatchIteratorRecordsAdaptor.sizeInBytes(ElasticLogFileRecords.java:478)
	at kafka.coordinator.group.GroupMetadataManager.loadGroupsAndOffsets(GroupMetadataManager.scala:621)
	at kafka.coordinator.group.GroupMetadataManager.$anonfun$scheduleLoadGroupAndOffsets$2(GroupMetadataManager.scala:557)
	at org.apache.kafka.server.util.KafkaScheduler.lambda$schedule$1(KafkaScheduler.java:150)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
	at java.base/java.lang.Thread.run(Thread.java:840)
Caused by: java.io.IOException: java.lang.StackOverflowError
	at kafka.log.streamaspect.ElasticLogFileRecords$BatchIteratorRecordsAdaptor.ensureAllLoaded(ElasticLogFileRecords.java:523)
	at kafka.log.streamaspect.ElasticLogFileRecords$BatchIteratorRecordsAdaptor.sizeInBytes(ElasticLogFileRecords.java:476)
	... 9 more
Caused by: java.lang.StackOverflowError
	at java.base/java.lang.StringBuilder.<init>(StringBuilder.java:106)
	at org.slf4j.helpers.MessageFormatter.safeObjectAppend(MessageFormatter.java:280)
	at org.slf4j.helpers.MessageFormatter.deeplyAppendParameter(MessageFormatter.java:249)
	at org.slf4j.helpers.MessageFormatter.arrayFormat(MessageFormatter.java:211)
	at org.slf4j.helpers.MessageFormatter.arrayFormat(MessageFormatter.java:161)
	at org.slf4j.helpers.MessageFormatter.format(MessageFormatter.java:151)
	at org.slf4j.impl.Reload4jLoggerAdapter.error(Reload4jLoggerAdapter.java:519)
	at com.automq.stream.utils.FutureUtil.exec(FutureUtil.java:79)
	at com.automq.stream.s3.S3Stream.fetch(S3Stream.java:211)
	at com.automq.stream.s3.S3StreamClient$StreamWrapper.fetch(S3StreamClient.java:314)
	at kafka.log.streamaspect.AlwaysSuccessClient$StreamImpl.fetch(AlwaysSuccessClient.java:253)
	at kafka.log.streamaspect.LazyStream.fetch(LazyStream.java:131)
	at kafka.log.streamaspect.DefaultElasticStreamSlice.fetch(DefaultElasticStreamSlice.java:74)
	at kafka.log.streamaspect.ElasticLogFileRecords.fetch0(ElasticLogFileRecords.java:151)
	at kafka.log.streamaspect.ElasticLogFileRecords.lambda$fetch0$3(ElasticLogFileRecords.java:165)
	at java.base/java.util.concurrent.CompletableFuture.uniComposeStage(CompletableFuture.java:1187)
	at java.base/java.util.concurrent.CompletableFuture.thenCompose(CompletableFuture.java:2309)
	at kafka.log.streamaspect.ElasticLogFileRecords.fetch0(ElasticLogFileRecords.java:152)
	at kafka.log.streamaspect.ElasticLogFileRecords.lambda$fetch0$3(ElasticLogFileRecords.java:165)
	at java.base/java.util.concurrent.CompletableFuture.uniComposeStage(CompletableFuture.java:1187)
	at java.base/java.util.concurrent.CompletableFuture.thenCompose(CompletableFuture.java:2309)
	at kafka.log.streamaspect.ElasticLogFileRecords.fetch0(ElasticLogFileRecords.java:152)
	at kafka.log.streamaspect.ElasticLogFileRecords.lambda$fetch0$3(ElasticLogFileRecords.java:165)
	at java.base/java.util.concurrent.CompletableFuture.uniComposeStage(CompletableFuture.java:1187)
	at java.base/java.util.concurrent.CompletableFuture.thenCompose(CompletableFuture.java:2309)
	at kafka.log.streamaspect.ElasticLogFileRecords.fetch0(ElasticLogFileRecords.java:152)

How to reproduce the issue?

no idea

Additional information

Please attach any relevant logs, backtraces, or metric charts.

@lifepuzzlefun lifepuzzlefun added the bug Something isn't working label Jan 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant