Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

[BUG] There is a error of AOP consume when `transactionCoordinatorEnabled` is true

オープン
#1,069 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
28/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
java, rabbitmq

調査の方向性

Start with standalone.conf and the RabbitMQ Java producer/consumer example, then compare the attached correct and incorrect logs with transactionCoordinatorEnabled enabled and disabled. Trace the push-consume entry point and transaction-coordinator interaction; done means push consumption works normally with the setting enabled while pull consumption remains unaffected.

索引モデルが issue の本文から書いたものです。

説明

type/bug

Describe the bug
When transactionCoordinatorEnabled is true in standalone.conf,there is error consuming with pushing of RabbitMQ client,but it is normal that consuming with pulling.

The detailed logs is as following, the time of correct logs is 2023-12-04T10:34:18,946+0800, the time of wrong logs is 2023-12-04T10:38:40,748+0800.
The logs of Close and Open the transactionCoordinatorEnabled .log
broker-k8s.log

Version:3.0.0
Test environment: standalone

To Reproduce
1、Open the transactionCoordinatorEnabled is true in standalone.conf
2、Open the aop feature normally
3、Start the standalone service
4、code of Rabbitmq as follows:


// create connection
        ConnectionFactory connectionFactory = new ConnectionFactory();
        connectionFactory.setVirtualHost("vhost1");
        connectionFactory.setHost("127.0.0.1");
        connectionFactory.setPort(5682);   
        Connection connection = connectionFactory.newConnection();
        Channel channel = connection.createChannel();

        channel.basicQos(2);

        String exchange = "ex1";
        String queue = "qu1";

// exchage declare
        channel.exchangeDeclare(exchange, BuiltinExchangeType.FANOUT, true, false, false, null);

// queue declare and bind
        channel.queueDeclare(queue, true, false, false, null);
        channel.queueBind(queue, exchange, "");

// publish some messages
        channel.basicPublish(exchange, "", null, ("hello ").getBytes());

// consume messages,push
        CountDownLatch countDownLatch = new CountDownLatch(12);

        channel.basicConsume(queue, true,new  DefaultConsumer(channel) {
            @Override
            public void handleDelivery(String consumerTag, Envelope envelope, AMQP.BasicProperties properties, byte[] body) throws IOException {
                System.out.println("receive msg: " + new String(body));
                countDownLatch.countDown();

            }
        });
        countDownLatch.await();

        // release resource
        channel.close();
        connection.close();

Expected behavior
The Aop function is normal when transactionCoordinatorEnabled is true.

Screenshots

主要言語
Java
スター
123
フォーク
41
平均マージ
4時間 43分
マージ済み PR(30日)
4

環境構築

このプロジェクトの環境構築ファイルはまだ確認していません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

streamnative/aop のほかの issue

streamnative/aop の issue をすべて見る

似ている issue

Java の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。