You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2014/11/18 15:46:33 UTC
[jira] [Commented] (QPID-6230) [linearstore] qpid-qls-analyze fails
when analyzing empty journal
[ https://issues.apache.org/jira/browse/QPID-6230?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14216240#comment-14216240 ]
ASF subversion and git services commented on QPID-6230:
-------------------------------------------------------
Commit 1640353 from [~kpvdr] in branch 'qpid/trunk'
[ https://svn.apache.org/r1640353 ]
QPID-6230 [linearstore] qpid-qls-analyze fails when analyzing empty journal
> [linearstore] qpid-qls-analyze fails when analyzing empty journal
> -----------------------------------------------------------------
>
> Key: QPID-6230
> URL: https://issues.apache.org/jira/browse/QPID-6230
> Project: Qpid
> Issue Type: Bug
> Components: C++ Broker
> Reporter: Kim van der Riet
> Assignee: Kim van der Riet
>
> If a new queue is created through QMF but never used, the store creates a queue directory and places an uninitialized journal file into it. If qpid-qls-analyze is used to look at this store, it fails with and error message:
> {noformat}
> Traceback (most recent call last):
> File "/usr/bin/qpid-qls-analyze", line 109, in <module>
> M.run()
> File "/usr/bin/qpid-qls-analyze", line 97, in run
> self.jrnl_recovery_mgr.run()
> File "/usr/bin/qlslibs/anal.py", line 73, in run
> jrnl.recover(self.high_rid_counter)
> File "/usr/bin/qlslibs/anal.py", line 358, in recover
> self._check_alignment()
> File "/usr/bin/qlslibs/anal.py", line 423, in _check_alignment
> remaining_sblks = self.last_record_offset % qlslibs.utils.DEFAULT_SBLK_SIZE
> TypeError: unsupported operand type(s) for %: 'NoneType' and 'int'
> {noformat}
> Thanks to Jitka Kocnova for finding this bug. Method to reproduce:
> Using a clean store:
> {{qpid-config add queue q --durable}}
> then stop the broker and analyze:
> {{qpid-qls-analyze --stats <store-path>}}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org