[ 
https://issues.apache.org/jira/browse/FLUME-1149?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13261419#comment-13261419
 ] 

[email protected] commented on FLUME-1149:
------------------------------------------------------


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/4872/#review7208
-----------------------------------------------------------

Ship it!


lgtm! I confirmed the fix works.

Below is the config I used. I had to make sure to first create the 
/home/will/results1 and /home/will/results2 dirs before starting the agent.

Then I started the agent, waited for each of the 2 files to be created, and 
tailed them in diff't terminals.

Then I launched interactive netcat terminals in each of 2 consoles:
nc localhost 1473
nc localhost 1474

Before the patch, I entered "0" into the first console going to port 1473, and 
the "0" was logged to both sources. After the patch, I entered "0" into the 
first console going to port 1473, and "0" appeared only for src1 destination. 
Then I entered "1" into second console going to port 1474, and "1" appeared 
only for src2 destination.

# a = agent
# c = channel
# r = source
# k = sink
# g = sink group
agent.channels = c1 c2
agent.sources = r1 r2
agent.sinks = k1 k2

agent.channels.c1.type = MEMORY
agent.channels.c2.type = MEMORY

agent.sources.r1.type = NETCAT
agent.sources.r1.channels = c1
agent.sources.r1.bind = 0.0.0.0
agent.sources.r1.port = 1473

agent.sources.r2.type = NETCAT
agent.sources.r2.channels = c2
agent.sources.r2.bind = 0.0.0.0
agent.sources.r2.port = 1474

agent.sinks.k1.channel = c1
agent.sinks.k1.type = FILE_ROLL
agent.sinks.k1.sink.directory = /home/will/results1
agent.sinks.k1.sink.rollInterval = 0

agent.sinks.k2.channel = c2
agent.sinks.k2.type = FILE_ROLL
agent.sinks.k2.sink.directory = /home/will/results2
agent.sinks.k2.sink.rollInterval = 0

- Will


On 2012-04-25 09:51:43, Hari Shreedharan wrote:
bq.  
bq.  -----------------------------------------------------------
bq.  This is an automatically generated e-mail. To reply, visit:
bq.  https://reviews.apache.org/r/4872/
bq.  -----------------------------------------------------------
bq.  
bq.  (Updated 2012-04-25 09:51:43)
bq.  
bq.  
bq.  Review request for Flume.
bq.  
bq.  
bq.  Summary
bq.  -------
bq.  
bq.  Even if config specifies different files, all sources end up writing to 
all channels. Fixed it.
bq.  
bq.  
bq.  This addresses bug FLUME-1149.
bq.      https://issues.apache.org/jira/browse/FLUME-1149
bq.  
bq.  
bq.  Diffs
bq.  -----
bq.  
bq.    
flume-ng-node/src/main/java/org/apache/flume/conf/properties/PropertiesFileConfigurationProvider.java
 c0f83e4 
bq.  
bq.  Diff: https://reviews.apache.org/r/4872/diff
bq.  
bq.  
bq.  Testing
bq.  -------
bq.  
bq.  Functional testing with multiple channels.
bq.  
bq.  
bq.  Thanks,
bq.  
bq.  Hari
bq.  
bq.


                
> All sources get same channel list even if configuration is different.
> ---------------------------------------------------------------------
>
>                 Key: FLUME-1149
>                 URL: https://issues.apache.org/jira/browse/FLUME-1149
>             Project: Flume
>          Issue Type: Bug
>          Components: Sinks+Sources
>    Affects Versions: v1.2.0
>            Reporter: Hari Shreedharan
>            Assignee: Hari Shreedharan
>             Fix For: v1.2.0
>
>         Attachments: FLUME-1149-1.patch
>
>


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to