Return-Path: X-Original-To: apmail-felix-dev-archive@www.apache.org Delivered-To: apmail-felix-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A9579105E3 for ; Tue, 9 Dec 2014 16:13:12 +0000 (UTC) Received: (qmail 24260 invoked by uid 500); 9 Dec 2014 16:13:12 -0000 Delivered-To: apmail-felix-dev-archive@felix.apache.org Received: (qmail 24183 invoked by uid 500); 9 Dec 2014 16:13:12 -0000 Mailing-List: contact dev-help@felix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@felix.apache.org Delivered-To: mailing list dev@felix.apache.org Received: (qmail 24169 invoked by uid 99); 9 Dec 2014 16:13:12 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Dec 2014 16:13:12 +0000 Date: Tue, 9 Dec 2014 16:13:12 +0000 (UTC) From: "Marcel Offermans (JIRA)" To: dev@felix.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (FELIX-4720) Web Console and Gogo rely on Log history buffer in the Log Service MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/FELIX-4720?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14239584#comment-14239584 ] Marcel Offermans commented on FELIX-4720: ----------------------------------------- The discussion is about whether or not we should solve this in web console, the gogo command and any other consumer of the LogReaderService at all. Or elsewhere. The argument you make about building in all kinds of different options inside the implementation and enable them using configuration is only one possible solution. Although it's always hard to make generic statements, I would prefer a solution where we implement this in a different bundle altogether, and simply not deploy that bundle if we don't need it. I would also prefer in this case not to implement it for every consumer, but instead change the provider. Make a small bundle that is a LogListener and that caches the number of entries you want. Make that bundle implement a LogReaderService with a higher ranking and all consumers can bind to that. No need to change webconsole, or the log command, or any other consumer. > Web Console and Gogo rely on Log history buffer in the Log Service > ------------------------------------------------------------------ > > Key: FELIX-4720 > URL: https://issues.apache.org/jira/browse/FELIX-4720 > Project: Felix > Issue Type: Bug > Components: Gogo Command, Web Console > Reporter: Peter Kriens > > The OSGi Log Reader Service has a command to get the history of the log. However, the specification states that this history can be empty. The Equinox framework is nowadays registering a Log Reader Service that has such an empty history to prevent pinning objects in memory. > Using the history this way was always at odds with the specification since the history was only intended to hold the start up events. The primary model of the Log Service is a dispatcher. > I suggest that the Gogo log command and the Web Console maintain their own history buffer to become independent on this fragile history buffer in the Log Reader service. -- This message was sent by Atlassian JIRA (v6.3.4#6332)