flume-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FLUME-2844) ChannelCounter of SpillableMemoryChannel doesn't register actually.
Date Wed, 17 Aug 2016 23:51:20 GMT

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

Hudson commented on FLUME-2844:
-------------------------------

ABORTED: Integrated in Jenkins build Flume-trunk-hbase-1 #196 (See [https://builds.apache.org/job/Flume-trunk-hbase-1/196/])
FLUME-2844. SpillableMemoryChannel must start ChannelCounter (mpercy: [http://git-wip-us.apache.org/repos/asf/flume/repo?p=flume.git&a=commit&h=118d5a4bcf5371fb215e0f7393fadf26073643f8])
* (edit) flume-ng-channels/flume-spillable-memory-channel/src/test/java/org/apache/flume/channel/TestSpillableMemoryChannel.java
* (edit) flume-ng-channels/flume-spillable-memory-channel/src/main/java/org/apache/flume/channel/SpillableMemoryChannel.java


> ChannelCounter of SpillableMemoryChannel doesn't register actually.
> -------------------------------------------------------------------
>
>                 Key: FLUME-2844
>                 URL: https://issues.apache.org/jira/browse/FLUME-2844
>             Project: Flume
>          Issue Type: Bug
>          Components: Channel
>    Affects Versions: v1.6.0
>            Reporter: Daniel Wen
>            Assignee: Denes Arvay
>             Fix For: v1.7.0
>
>         Attachments: FLUME-2844-2.patch, FLUME-2844.0000.patch
>
>
> When using SpillableMemoryChannel, the values of all metrics of channel component int
monitoring system is zero.It's caused by a bug belowed.
> SpillableMemoryChannel extends FileChannel,and each of them have a ChannelCounter-Type
field named of 'channelCounter'. FileChannel's channelCounter filed is private, so it can
not be override by SpillableMemoryChannel. SpillableMemoryChannel's channelCounter is initialized
in configure method(Line 600 at SpillableMemoryChannel.java), then super.configure() is called(Line
727 at SpillableMemoryChannel.java). So FileChannel's channelCounter is also initialized(Line
267 at SpillableMemoryChannel.java).
> When SpillableMemoryChannel start(call start() method), it should and want to register
ChannelCounter. In start() method, SpillableMemoryChannel calls  super.start() (Line 768 at
SpillableMemoryChannel.java), then FileChannel calls channelCounter.start() to register channelCounter.
But this channelCounter is the one of FileChannle, not the one of SpillableMemoryChannel!
> This bug results that when using SpillableMemoryChannel, the values of all metrics of
channel component is zero.
> Maybe the qualifier of FileChannel's channelCounter filed should be changed to prtected,
and remove the channelCounter filed of SpillableMemoryChannel.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message