Open rrva opened 2 years ago
One possible reason for this error is transactions being disabled on the server side. The version of Redpanda you are on doesn't enable transactions by default, can you try setting enable_transactions=true
?
The easiest way would be to create a custom docker image with docker.redpanda.com/vectorized/redpanda:v22.2.1
as a base image.
What is the preferred way to patch the existing docker image? Do I put the config in /etc/redpanda/redpanda.yaml?
In my docker image it contains:
node_uuid: 1448f0a6-1e0b-11ed-b972-0242ac110002
redpanda:
data_directory: /var/lib/redpanda/data
node_id: 1
seed_servers: []
rpc_server:
address: 0.0.0.0
port: 33145
kafka_api:
- address: 0.0.0.0
port: 9092
admin:
- address: 0.0.0.0
port: 9644
developer_mode: true
rpk:
enable_usage_stats: true
coredump_dir: /var/lib/redpanda/coredump
pandaproxy: {}
schema_registry: {}
so I guess I will add
enable_transactions: true
under redpanda:
?
that will work, rpk
can do it for you.. you can do something like
RUN rpk redpanda config set redpanda.enable_transactions true
before you trigger the entry point script.
https://docs.redpanda.com/docs/reference/rpk/rpk-redpanda/rpk-redpanda-config-set/
(I haven't tried it locally but let me know if you run into issues, can help debug).
@rrva - Nov 15th release will have transactions enabled by default.
Version & Environment
Redpanda version: v22.2.1 Testcontainers version: 1.17.5
What went wrong?
When running a testcontainers based junit test which involves transactional producers, swapping out the kafka container for a redpanda container makes the test fail:
What should have happened instead?
The testcase should pass as it does with confluentinc/cp-kafka:6.2.1
How to reproduce the issue?
Additional information
testcase logs
JIRA Link: CORE-1043