Files
seaweedfs/test/kafka/kafka-client-loadtest/Dockerfile.seektest
T
chrislu 9a2d351a55 feat: Add standalone Java SeekToBeginning test to reproduce the issue
Created:
- SeekToBeginningTest.java: Standalone Java test that reproduces the seekToBeginning() hang
- Dockerfile.seektest: Docker setup for running the test
- pom.xml: Maven build configuration
- Updated docker-compose.yml to include seek-test service

This test simulates what Schema Registry does:
1. Create KafkaConsumer connected to gateway
2. Assign to _schemas topic partition 0
3. Call seekToBeginning()
4. Poll for records

Expected behavior: Should send ListOffsets and then Fetch
Actual behavior: Blocks indefinitely after seekToBeginning()
2025-10-16 17:15:52 -07:00

21 lines
453 B
Docker

FROM openjdk:11-jdk-slim
# Install Maven
RUN apt-get update && apt-get install -y maven && rm -rf /var/lib/apt/lists/*
WORKDIR /app
# Create source directory
RUN mkdir -p src/main/java
# Copy source and build files
COPY SeekToBeginningTest.java src/main/java/
COPY pom.xml .
# Compile and package
RUN mvn clean package -DskipTests
# Run the test
ENTRYPOINT ["java", "-cp", "target/seek-test.jar", "SeekToBeginningTest"]
CMD ["kafka-gateway:9093"]