mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-10-15 18:48:32 +02:00
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()
21 lines
453 B
Docker
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"]
|