You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@inlong.apache.org by GitBox <gi...@apache.org> on 2022/01/21 04:07:14 UTC
[GitHub] [incubator-inlong] baomingyu opened a new pull request #2257: [INLONG-2224][DataProxy] Source receive one message will be send to pulsar twice when config both memery channel and file channel
baomingyu opened a new pull request #2257:
URL: https://github.com/apache/incubator-inlong/pull/2257
fix Source receive one message will be send to pulsar twice when config both memery channel and file channel bug.
Fixes #2224
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@inlong.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-inlong] codecov-commenter commented on pull request #2257: [INLONG-2224][DataProxy] Source receive one message will be send to pulsar twice when config both memery channel and file channel
Posted by GitBox <gi...@apache.org>.
codecov-commenter commented on pull request #2257:
URL: https://github.com/apache/incubator-inlong/pull/2257#issuecomment-1018165156
# [Codecov](https://codecov.io/gh/apache/incubator-inlong/pull/2257?src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) Report
> Merging [#2257](https://codecov.io/gh/apache/incubator-inlong/pull/2257?src=pr&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) (ce6ad73) into [master](https://codecov.io/gh/apache/incubator-inlong/commit/897c8958385f33a9ebb25e5cfb8cc1d5388e9e38?el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) (897c895) will **decrease** coverage by `0.00%`.
> The diff coverage is `n/a`.
[![Impacted file tree graph](https://codecov.io/gh/apache/incubator-inlong/pull/2257/graphs/tree.svg?width=650&height=150&src=pr&token=1EUK92O9K2&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation)](https://codecov.io/gh/apache/incubator-inlong/pull/2257?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation)
```diff
@@ Coverage Diff @@
## master #2257 +/- ##
============================================
- Coverage 12.54% 12.54% -0.01%
- Complexity 1206 1217 +11
============================================
Files 417 420 +3
Lines 35914 36208 +294
Branches 5635 5674 +39
============================================
+ Hits 4507 4541 +34
- Misses 30601 30859 +258
- Partials 806 808 +2
```
| [Impacted Files](https://codecov.io/gh/apache/incubator-inlong/pull/2257?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) | Coverage Δ | |
|---|---|---|
| [...emq/server/common/paramcheck/PBParameterUtils.java](https://codecov.io/gh/apache/incubator-inlong/pull/2257/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-aW5sb25nLXR1YmVtcS90dWJlbXEtc2VydmVyL3NyYy9tYWluL2phdmEvb3JnL2FwYWNoZS9pbmxvbmcvdHViZW1xL3NlcnZlci9jb21tb24vcGFyYW1jaGVjay9QQlBhcmFtZXRlclV0aWxzLmphdmE=) | `25.11% <0.00%> (-0.63%)` | :arrow_down: |
| [...apache/inlong/tubemq/server/broker/TubeBroker.java](https://codecov.io/gh/apache/incubator-inlong/pull/2257/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-aW5sb25nLXR1YmVtcS90dWJlbXEtc2VydmVyL3NyYy9tYWluL2phdmEvb3JnL2FwYWNoZS9pbmxvbmcvdHViZW1xL3NlcnZlci9icm9rZXIvVHViZUJyb2tlci5qYXZh) | `0.00% <0.00%> (ø)` | |
| [...ache/inlong/tubemq/server/broker/BrokerConfig.java](https://codecov.io/gh/apache/incubator-inlong/pull/2257/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-aW5sb25nLXR1YmVtcS90dWJlbXEtc2VydmVyL3NyYy9tYWluL2phdmEvb3JnL2FwYWNoZS9pbmxvbmcvdHViZW1xL3NlcnZlci9icm9rZXIvQnJva2VyQ29uZmlnLmphdmE=) | `0.00% <0.00%> (ø)` | |
| [...long/tubemq/server/broker/BrokerServiceServer.java](https://codecov.io/gh/apache/incubator-inlong/pull/2257/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-aW5sb25nLXR1YmVtcS90dWJlbXEtc2VydmVyL3NyYy9tYWluL2phdmEvb3JnL2FwYWNoZS9pbmxvbmcvdHViZW1xL3NlcnZlci9icm9rZXIvQnJva2VyU2VydmljZVNlcnZlci5qYXZh) | `0.00% <0.00%> (ø)` | |
| [...emq/server/broker/offset/DefaultOffsetManager.java](https://codecov.io/gh/apache/incubator-inlong/pull/2257/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-aW5sb25nLXR1YmVtcS90dWJlbXEtc2VydmVyL3NyYy9tYWluL2phdmEvb3JnL2FwYWNoZS9pbmxvbmcvdHViZW1xL3NlcnZlci9icm9rZXIvb2Zmc2V0L0RlZmF1bHRPZmZzZXRNYW5hZ2VyLmphdmE=) | `0.00% <0.00%> (ø)` | |
| [...mq/server/broker/msgstore/MessageStoreManager.java](https://codecov.io/gh/apache/incubator-inlong/pull/2257/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-aW5sb25nLXR1YmVtcS90dWJlbXEtc2VydmVyL3NyYy9tYWluL2phdmEvb3JnL2FwYWNoZS9pbmxvbmcvdHViZW1xL3NlcnZlci9icm9rZXIvbXNnc3RvcmUvTWVzc2FnZVN0b3JlTWFuYWdlci5qYXZh) | `0.00% <0.00%> (ø)` | |
| [...bemq/server/broker/offset/OffsetRecordService.java](https://codecov.io/gh/apache/incubator-inlong/pull/2257/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-aW5sb25nLXR1YmVtcS90dWJlbXEtc2VydmVyL3NyYy9tYWluL2phdmEvb3JnL2FwYWNoZS9pbmxvbmcvdHViZW1xL3NlcnZlci9icm9rZXIvb2Zmc2V0L09mZnNldFJlY29yZFNlcnZpY2UuamF2YQ==) | `0.00% <0.00%> (ø)` | |
| [.../tubemq/server/broker/offset/OffsetRecordInfo.java](https://codecov.io/gh/apache/incubator-inlong/pull/2257/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-aW5sb25nLXR1YmVtcS90dWJlbXEtc2VydmVyL3NyYy9tYWluL2phdmEvb3JnL2FwYWNoZS9pbmxvbmcvdHViZW1xL3NlcnZlci9icm9rZXIvb2Zmc2V0L09mZnNldFJlY29yZEluZm8uamF2YQ==) | `0.00% <0.00%> (ø)` | |
| [...inlong/tubemq/server/broker/offset/RecordItem.java](https://codecov.io/gh/apache/incubator-inlong/pull/2257/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-aW5sb25nLXR1YmVtcS90dWJlbXEtc2VydmVyL3NyYy9tYWluL2phdmEvb3JnL2FwYWNoZS9pbmxvbmcvdHViZW1xL3NlcnZlci9icm9rZXIvb2Zmc2V0L1JlY29yZEl0ZW0uamF2YQ==) | `0.00% <0.00%> (ø)` | |
| [.../server/broker/metadata/BrokerMetadataManager.java](https://codecov.io/gh/apache/incubator-inlong/pull/2257/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-aW5sb25nLXR1YmVtcS90dWJlbXEtc2VydmVyL3NyYy9tYWluL2phdmEvb3JnL2FwYWNoZS9pbmxvbmcvdHViZW1xL3NlcnZlci9icm9rZXIvbWV0YWRhdGEvQnJva2VyTWV0YWRhdGFNYW5hZ2VyLmphdmE=) | `42.65% <0.00%> (+1.17%)` | :arrow_up: |
| ... and [2 more](https://codecov.io/gh/apache/incubator-inlong/pull/2257/diff?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) | |
------
[Continue to review full report at Codecov](https://codecov.io/gh/apache/incubator-inlong/pull/2257?src=pr&el=continue&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation).
> **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation)
> `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`
> Powered by [Codecov](https://codecov.io/gh/apache/incubator-inlong/pull/2257?src=pr&el=footer&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation). Last update [897c895...ce6ad73](https://codecov.io/gh/apache/incubator-inlong/pull/2257?src=pr&el=lastupdated&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@inlong.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-inlong] dockerzhang commented on a change in pull request #2257: [INLONG-2224][DataProxy] Source receive one message will be send to pulsar twice when config both memery channel and file channel
Posted by GitBox <gi...@apache.org>.
dockerzhang commented on a change in pull request #2257:
URL: https://github.com/apache/incubator-inlong/pull/2257#discussion_r789371428
##########
File path: inlong-dataproxy/conf/flume-mulit-pulsar-udp-example.conf
##########
@@ -0,0 +1,125 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+#
+# Attention:
+# use this example, you must rename this file name to flume.conf,
+# and replace the file with the same name in conf directory.
+#
+
+agent1.sources = udp-source
+agent1.channels = ch-msg1 ch-msg2 ch-msg5 ch-msg6
+agent1.sinks = pulsar-sink-msg1 pulsar-sink-msg2 pulsar-sink-msg5 pulsar-sink-msg6
+
+agent1.sources.upd-source.channels = ch-msg1 ch-msg2 ch-msg5 ch-msg6
+agent1.sources.upd-source.type = org.apache.inlong.dataproxy.source.SimpleUdpSource
+agent1.sources.upd-source.msg-factory-name = org.apache.inlong.dataproxy.source.ServerMessageFactory
+agent1.sources.upd-source.host = 0.0.0.0
+agent1.sources.upd-source.port = 46803
+agent1.sources.upd-source.max-msg-length = 524288
+agent1.sources.upd-source.topic = test1
+agent1.sources.upd-source.attr = m=9
+agent1.sources.upd-source.connections = 30000
+agent1.sources.upd-source.max-threads = 64
+agent1.sources.upd-source.receiveBufferSize = 1048576
+agent1.sources.upd-source.sendBufferSize = 1048576
+agent1.sources.upd-source.custom-cp = true
+agent1.sources.upd-source.selector.type = org.apache.inlong.dataproxy.channel.FailoverChannelSelector
+agent1.sources.upd-source.selector.master = ch-msg1 ch-msg2
+agent1.sources.upd-source.metric-recovery-path=/data/DataProxy/file/recovery
+agent1.sources.upd-source.metric-agent-port=8003
+agent1.sources.upd-source.metric-cache-size=1000000
+agent1.sources.upd-source.set=10
+
+agent1.channels.ch-msg1.type = memory
+agent1.channels.ch-msg1.capacity = 10000
+agent1.channels.ch-msg1.keep-alive = 0
+agent1.channels.ch-msg1.transactionCapacity = 200
+
+agent1.channels.ch-msg2.type = memory
+agent1.channels.ch-msg2.capacity = 10000
+agent1.channels.ch-msg2.keep-alive = 0
+agent1.channels.ch-msg2.transactionCapacity = 200
+
+agent1.channels.ch-msg5.type = file
+agent1.channels.ch-msg5.capacity = 100000000
+agent1.channels.ch-msg5.maxFileSize = 1073741824
+agent1.channels.ch-msg5.minimumRequiredSpace = 1073741824
+agent1.channels.ch-msg5.checkpointDir = /data/DataProxy/file/ch-msg5/check
+agent1.channels.ch-msg5.dataDirs = /data/DataProxy/file/ch-msg5/data
+agent1.channels.ch-msg5.fsyncPerTransaction = false
+agent1.channels.ch-msg5.fsyncInterval = 10
+
+agent1.channels.ch-msg6.type = file
+agent1.channels.ch-msg6.capacity = 100000000
+agent1.channels.ch-msg6.maxFileSize = 1073741824
+agent1.channels.ch-msg6.minimumRequiredSpace = 1073741824
+agent1.channels.ch-msg6.checkpointDir = /data/DataProxy/file/ch-msg6/check
+agent1.channels.ch-msg6.dataDirs = /data/DataProxy/file/ch-msg6/data
+agent1.channels.ch-msg6.fsyncPerTransaction = false
+agent1.channels.ch-msg6.fsyncInterval = 10
+
+
+agent1.sinks.pulsar-sink-msg1.channel = ch-msg1
+agent1.sinks.pulsar-sink-msg1.type = org.apache.inlong.dataproxy.sink.PulsarSink
+agent1.sinks.pulsar-sink-msg1.pulsar_server_url_list = pulsar://PULSAR_LIST
+agent1.sinks.pulsar-sink-msg1.send_timeout_MILL = 30000
+agent1.sinks.pulsar-sink-msg1.stat_interval_sec = 60
+agent1.sinks.pulsar-sink-msg1.thread-num = 8
+agent1.sinks.pulsar-sink-msg1.client-id-cache = true
+agent1.sinks.pulsar-sink-msg1.max_survived_time = 300000
+agent1.sinks.pulsar-sink-msg1.max_survived_size = 3000000
+agent1.sinks.pulsar-sink-msg1.netty_write_buffer_high_water_mark = 20971520
+agent1.sinks.pulsar-sink-msg1.disk-io-rate-per-sec=20000000
+
+agent1.sinks.pulsar-sink-msg2.channel = ch-msg2
+agent1.sinks.pulsar-sink-msg2.type = org.apache.inlong.dataproxy.sink.PulsarSink
+agent1.sinks.pulsar-sink-msg2.pulsar_server_url_list = pulsar://PULSAR_LIST
+agent1.sinks.pulsar-sink-msg2.send_timeout_MILL = 30000
+agent1.sinks.pulsar-sink-msg2.stat_interval_sec = 60
+agent1.sinks.pulsar-sink-msg2.thread-num = 8
+agent1.sinks.pulsar-sink-msg2.client-id-cache = true
+agent1.sinks.pulsar-sink-msg2.max_survived_time = 300000
+agent1.sinks.pulsar-sink-msg2.max_survived_size = 3000000
+agent1.sinks.pulsar-sink-msg2.netty_write_buffer_high_water_mark = 20971520
+agent1.sinks.pulsar-sink-msg2.disk-io-rate-per-sec=20000000
+
+agent1.sinks.pulsar-sink-msg5.channel = ch-msg5
+agent1.sinks.pulsar-sink-msg5.type = org.apache.inlong.dataproxy.sink.PulsarSink
+agent1.sinks.pulsar-sink-msg5.pulsar_server_url_list = pulsar://PULSAR_LIST
+agent1.sinks.pulsar-sink-msg5.send_timeout_MILL = 30000
+agent1.sinks.pulsar-sink-msg5.stat_interval_sec = 60
+agent1.sinks.pulsar-sink-msg5.thread-num = 8
+agent1.sinks.pulsar-sink-msg5.client-id-cache = true
+agent1.sinks.pulsar-sink-msg5.max_survived_time = 300000
+agent1.sinks.pulsar-sink-msg5.max_survived_size = 3000000
+agent1.sinks.pulsar-sink-msg5.netty_write_buffer_high_water_mark = 20971520
+agent1.sinks.pulsar-sink-msg5.disk-io-rate-per-sec=20000000
+
+agent1.sinks.pulsar-sink-msg6.channel = ch-msg6
+agent1.sinks.pulsar-sink-msg6.type = org.apache.inlong.dataproxy.sink.PulsarSink
+agent1.sinks.pulsar-sink-msg6.pulsar_server_url_list = pulsar://PULSAR_LIST
Review comment:
ditto
##########
File path: inlong-dataproxy/conf/flume-mulit-pulsar-udp-example.conf
##########
@@ -0,0 +1,125 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+#
+# Attention:
+# use this example, you must rename this file name to flume.conf,
+# and replace the file with the same name in conf directory.
+#
+
+agent1.sources = udp-source
+agent1.channels = ch-msg1 ch-msg2 ch-msg5 ch-msg6
+agent1.sinks = pulsar-sink-msg1 pulsar-sink-msg2 pulsar-sink-msg5 pulsar-sink-msg6
+
+agent1.sources.upd-source.channels = ch-msg1 ch-msg2 ch-msg5 ch-msg6
+agent1.sources.upd-source.type = org.apache.inlong.dataproxy.source.SimpleUdpSource
+agent1.sources.upd-source.msg-factory-name = org.apache.inlong.dataproxy.source.ServerMessageFactory
+agent1.sources.upd-source.host = 0.0.0.0
+agent1.sources.upd-source.port = 46803
+agent1.sources.upd-source.max-msg-length = 524288
+agent1.sources.upd-source.topic = test1
+agent1.sources.upd-source.attr = m=9
+agent1.sources.upd-source.connections = 30000
+agent1.sources.upd-source.max-threads = 64
+agent1.sources.upd-source.receiveBufferSize = 1048576
+agent1.sources.upd-source.sendBufferSize = 1048576
+agent1.sources.upd-source.custom-cp = true
+agent1.sources.upd-source.selector.type = org.apache.inlong.dataproxy.channel.FailoverChannelSelector
+agent1.sources.upd-source.selector.master = ch-msg1 ch-msg2
+agent1.sources.upd-source.metric-recovery-path=/data/DataProxy/file/recovery
+agent1.sources.upd-source.metric-agent-port=8003
+agent1.sources.upd-source.metric-cache-size=1000000
+agent1.sources.upd-source.set=10
+
+agent1.channels.ch-msg1.type = memory
+agent1.channels.ch-msg1.capacity = 10000
+agent1.channels.ch-msg1.keep-alive = 0
+agent1.channels.ch-msg1.transactionCapacity = 200
+
+agent1.channels.ch-msg2.type = memory
+agent1.channels.ch-msg2.capacity = 10000
+agent1.channels.ch-msg2.keep-alive = 0
+agent1.channels.ch-msg2.transactionCapacity = 200
+
+agent1.channels.ch-msg5.type = file
+agent1.channels.ch-msg5.capacity = 100000000
+agent1.channels.ch-msg5.maxFileSize = 1073741824
+agent1.channels.ch-msg5.minimumRequiredSpace = 1073741824
+agent1.channels.ch-msg5.checkpointDir = /data/DataProxy/file/ch-msg5/check
+agent1.channels.ch-msg5.dataDirs = /data/DataProxy/file/ch-msg5/data
+agent1.channels.ch-msg5.fsyncPerTransaction = false
+agent1.channels.ch-msg5.fsyncInterval = 10
+
+agent1.channels.ch-msg6.type = file
+agent1.channels.ch-msg6.capacity = 100000000
+agent1.channels.ch-msg6.maxFileSize = 1073741824
+agent1.channels.ch-msg6.minimumRequiredSpace = 1073741824
+agent1.channels.ch-msg6.checkpointDir = /data/DataProxy/file/ch-msg6/check
+agent1.channels.ch-msg6.dataDirs = /data/DataProxy/file/ch-msg6/data
+agent1.channels.ch-msg6.fsyncPerTransaction = false
+agent1.channels.ch-msg6.fsyncInterval = 10
+
+
+agent1.sinks.pulsar-sink-msg1.channel = ch-msg1
+agent1.sinks.pulsar-sink-msg1.type = org.apache.inlong.dataproxy.sink.PulsarSink
+agent1.sinks.pulsar-sink-msg1.pulsar_server_url_list = pulsar://PULSAR_LIST
+agent1.sinks.pulsar-sink-msg1.send_timeout_MILL = 30000
+agent1.sinks.pulsar-sink-msg1.stat_interval_sec = 60
+agent1.sinks.pulsar-sink-msg1.thread-num = 8
+agent1.sinks.pulsar-sink-msg1.client-id-cache = true
+agent1.sinks.pulsar-sink-msg1.max_survived_time = 300000
+agent1.sinks.pulsar-sink-msg1.max_survived_size = 3000000
+agent1.sinks.pulsar-sink-msg1.netty_write_buffer_high_water_mark = 20971520
+agent1.sinks.pulsar-sink-msg1.disk-io-rate-per-sec=20000000
+
+agent1.sinks.pulsar-sink-msg2.channel = ch-msg2
+agent1.sinks.pulsar-sink-msg2.type = org.apache.inlong.dataproxy.sink.PulsarSink
+agent1.sinks.pulsar-sink-msg2.pulsar_server_url_list = pulsar://PULSAR_LIST
+agent1.sinks.pulsar-sink-msg2.send_timeout_MILL = 30000
+agent1.sinks.pulsar-sink-msg2.stat_interval_sec = 60
+agent1.sinks.pulsar-sink-msg2.thread-num = 8
+agent1.sinks.pulsar-sink-msg2.client-id-cache = true
+agent1.sinks.pulsar-sink-msg2.max_survived_time = 300000
+agent1.sinks.pulsar-sink-msg2.max_survived_size = 3000000
+agent1.sinks.pulsar-sink-msg2.netty_write_buffer_high_water_mark = 20971520
+agent1.sinks.pulsar-sink-msg2.disk-io-rate-per-sec=20000000
+
+agent1.sinks.pulsar-sink-msg5.channel = ch-msg5
+agent1.sinks.pulsar-sink-msg5.type = org.apache.inlong.dataproxy.sink.PulsarSink
+agent1.sinks.pulsar-sink-msg5.pulsar_server_url_list = pulsar://PULSAR_LIST
Review comment:
ditto
##########
File path: inlong-dataproxy/conf/flume-mulit-pulsar-udp-example.conf
##########
@@ -0,0 +1,125 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+#
+# Attention:
+# use this example, you must rename this file name to flume.conf,
+# and replace the file with the same name in conf directory.
+#
+
+agent1.sources = udp-source
+agent1.channels = ch-msg1 ch-msg2 ch-msg5 ch-msg6
+agent1.sinks = pulsar-sink-msg1 pulsar-sink-msg2 pulsar-sink-msg5 pulsar-sink-msg6
+
+agent1.sources.upd-source.channels = ch-msg1 ch-msg2 ch-msg5 ch-msg6
+agent1.sources.upd-source.type = org.apache.inlong.dataproxy.source.SimpleUdpSource
+agent1.sources.upd-source.msg-factory-name = org.apache.inlong.dataproxy.source.ServerMessageFactory
+agent1.sources.upd-source.host = 0.0.0.0
+agent1.sources.upd-source.port = 46803
+agent1.sources.upd-source.max-msg-length = 524288
+agent1.sources.upd-source.topic = test1
+agent1.sources.upd-source.attr = m=9
+agent1.sources.upd-source.connections = 30000
+agent1.sources.upd-source.max-threads = 64
+agent1.sources.upd-source.receiveBufferSize = 1048576
+agent1.sources.upd-source.sendBufferSize = 1048576
+agent1.sources.upd-source.custom-cp = true
+agent1.sources.upd-source.selector.type = org.apache.inlong.dataproxy.channel.FailoverChannelSelector
+agent1.sources.upd-source.selector.master = ch-msg1 ch-msg2
+agent1.sources.upd-source.metric-recovery-path=/data/DataProxy/file/recovery
+agent1.sources.upd-source.metric-agent-port=8003
+agent1.sources.upd-source.metric-cache-size=1000000
+agent1.sources.upd-source.set=10
+
+agent1.channels.ch-msg1.type = memory
+agent1.channels.ch-msg1.capacity = 10000
+agent1.channels.ch-msg1.keep-alive = 0
+agent1.channels.ch-msg1.transactionCapacity = 200
+
+agent1.channels.ch-msg2.type = memory
+agent1.channels.ch-msg2.capacity = 10000
+agent1.channels.ch-msg2.keep-alive = 0
+agent1.channels.ch-msg2.transactionCapacity = 200
+
+agent1.channels.ch-msg5.type = file
+agent1.channels.ch-msg5.capacity = 100000000
+agent1.channels.ch-msg5.maxFileSize = 1073741824
+agent1.channels.ch-msg5.minimumRequiredSpace = 1073741824
+agent1.channels.ch-msg5.checkpointDir = /data/DataProxy/file/ch-msg5/check
+agent1.channels.ch-msg5.dataDirs = /data/DataProxy/file/ch-msg5/data
+agent1.channels.ch-msg5.fsyncPerTransaction = false
+agent1.channels.ch-msg5.fsyncInterval = 10
+
+agent1.channels.ch-msg6.type = file
+agent1.channels.ch-msg6.capacity = 100000000
+agent1.channels.ch-msg6.maxFileSize = 1073741824
+agent1.channels.ch-msg6.minimumRequiredSpace = 1073741824
+agent1.channels.ch-msg6.checkpointDir = /data/DataProxy/file/ch-msg6/check
+agent1.channels.ch-msg6.dataDirs = /data/DataProxy/file/ch-msg6/data
+agent1.channels.ch-msg6.fsyncPerTransaction = false
+agent1.channels.ch-msg6.fsyncInterval = 10
+
+
+agent1.sinks.pulsar-sink-msg1.channel = ch-msg1
+agent1.sinks.pulsar-sink-msg1.type = org.apache.inlong.dataproxy.sink.PulsarSink
+agent1.sinks.pulsar-sink-msg1.pulsar_server_url_list = pulsar://PULSAR_LIST
Review comment:
Keep all pulsar_server_url_list same value.
##########
File path: inlong-dataproxy/conf/flume-mulit-pulsar-udp-example.conf
##########
@@ -0,0 +1,125 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+#
+# Attention:
+# use this example, you must rename this file name to flume.conf,
+# and replace the file with the same name in conf directory.
+#
+
+agent1.sources = udp-source
+agent1.channels = ch-msg1 ch-msg2 ch-msg5 ch-msg6
+agent1.sinks = pulsar-sink-msg1 pulsar-sink-msg2 pulsar-sink-msg5 pulsar-sink-msg6
+
+agent1.sources.upd-source.channels = ch-msg1 ch-msg2 ch-msg5 ch-msg6
+agent1.sources.upd-source.type = org.apache.inlong.dataproxy.source.SimpleUdpSource
+agent1.sources.upd-source.msg-factory-name = org.apache.inlong.dataproxy.source.ServerMessageFactory
+agent1.sources.upd-source.host = 0.0.0.0
+agent1.sources.upd-source.port = 46803
+agent1.sources.upd-source.max-msg-length = 524288
+agent1.sources.upd-source.topic = test1
+agent1.sources.upd-source.attr = m=9
+agent1.sources.upd-source.connections = 30000
+agent1.sources.upd-source.max-threads = 64
+agent1.sources.upd-source.receiveBufferSize = 1048576
+agent1.sources.upd-source.sendBufferSize = 1048576
+agent1.sources.upd-source.custom-cp = true
+agent1.sources.upd-source.selector.type = org.apache.inlong.dataproxy.channel.FailoverChannelSelector
+agent1.sources.upd-source.selector.master = ch-msg1 ch-msg2
+agent1.sources.upd-source.metric-recovery-path=/data/DataProxy/file/recovery
+agent1.sources.upd-source.metric-agent-port=8003
+agent1.sources.upd-source.metric-cache-size=1000000
+agent1.sources.upd-source.set=10
+
+agent1.channels.ch-msg1.type = memory
+agent1.channels.ch-msg1.capacity = 10000
+agent1.channels.ch-msg1.keep-alive = 0
+agent1.channels.ch-msg1.transactionCapacity = 200
+
+agent1.channels.ch-msg2.type = memory
+agent1.channels.ch-msg2.capacity = 10000
+agent1.channels.ch-msg2.keep-alive = 0
+agent1.channels.ch-msg2.transactionCapacity = 200
+
+agent1.channels.ch-msg5.type = file
+agent1.channels.ch-msg5.capacity = 100000000
+agent1.channels.ch-msg5.maxFileSize = 1073741824
+agent1.channels.ch-msg5.minimumRequiredSpace = 1073741824
+agent1.channels.ch-msg5.checkpointDir = /data/DataProxy/file/ch-msg5/check
+agent1.channels.ch-msg5.dataDirs = /data/DataProxy/file/ch-msg5/data
+agent1.channels.ch-msg5.fsyncPerTransaction = false
+agent1.channels.ch-msg5.fsyncInterval = 10
+
+agent1.channels.ch-msg6.type = file
+agent1.channels.ch-msg6.capacity = 100000000
+agent1.channels.ch-msg6.maxFileSize = 1073741824
+agent1.channels.ch-msg6.minimumRequiredSpace = 1073741824
+agent1.channels.ch-msg6.checkpointDir = /data/DataProxy/file/ch-msg6/check
+agent1.channels.ch-msg6.dataDirs = /data/DataProxy/file/ch-msg6/data
+agent1.channels.ch-msg6.fsyncPerTransaction = false
+agent1.channels.ch-msg6.fsyncInterval = 10
+
+
+agent1.sinks.pulsar-sink-msg1.channel = ch-msg1
+agent1.sinks.pulsar-sink-msg1.type = org.apache.inlong.dataproxy.sink.PulsarSink
+agent1.sinks.pulsar-sink-msg1.pulsar_server_url_list = pulsar://PULSAR_LIST
+agent1.sinks.pulsar-sink-msg1.send_timeout_MILL = 30000
+agent1.sinks.pulsar-sink-msg1.stat_interval_sec = 60
+agent1.sinks.pulsar-sink-msg1.thread-num = 8
+agent1.sinks.pulsar-sink-msg1.client-id-cache = true
+agent1.sinks.pulsar-sink-msg1.max_survived_time = 300000
+agent1.sinks.pulsar-sink-msg1.max_survived_size = 3000000
+agent1.sinks.pulsar-sink-msg1.netty_write_buffer_high_water_mark = 20971520
+agent1.sinks.pulsar-sink-msg1.disk-io-rate-per-sec=20000000
+
+agent1.sinks.pulsar-sink-msg2.channel = ch-msg2
+agent1.sinks.pulsar-sink-msg2.type = org.apache.inlong.dataproxy.sink.PulsarSink
+agent1.sinks.pulsar-sink-msg2.pulsar_server_url_list = pulsar://PULSAR_LIST
Review comment:
ditto
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@inlong.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-inlong] dockerzhang merged pull request #2257: [INLONG-2224][DataProxy] Source receive one message will be send to pulsar twice when config both memery channel and file channel
Posted by GitBox <gi...@apache.org>.
dockerzhang merged pull request #2257:
URL: https://github.com/apache/incubator-inlong/pull/2257
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@inlong.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org