qpid-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Justin Ross (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (QPID-4024) persistent message without content lead to server failed to start
Date Tue, 13 Mar 2018 02:15:00 GMT

     [ https://issues.apache.org/jira/browse/QPID-4024?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Justin Ross closed QPID-4024.
-----------------------------
    Resolution: Won't Fix

> persistent message without content lead to server failed to start
> -----------------------------------------------------------------
>
>                 Key: QPID-4024
>                 URL: https://issues.apache.org/jira/browse/QPID-4024
>             Project: Qpid
>          Issue Type: Bug
>          Components: C++ Broker
>    Affects Versions: 0.16
>         Environment: win7 
>            Reporter: yinshuwei
>            Priority: Major
>              Labels: patch
>   Original Estimate: 0.05h
>  Remaining Estimate: 0.05h
>
>    I started server with this command:
>     qpidd.exe --no-data-dir --auth=yes --load-module store/stored.dll --load-module 
     store/mssql_stored.dll
>    I found that if I send a message without content to the server and no consumer consume
the message,when I go to restart the server,it will fail.
>    There is a bug in src\qpid\store\ms-sql\MessageMapRecordset.cpp ,line : 115 ,method:recover
>     
>         // Now, do we need the rest of the content?
>         long contentLength = blobSize - headerFieldLength - headerSize;
>         if (msg->loadContent(contentLength)) {
>             BlobAdapter content(contentLength);
>              content =
>                 rs->Fields->Item["fieldTableBlob"]->GetChunk(contentLength);
>             msg->decodeContent(content);
>         }
>     The problem here is that the variable contentLength's value is zero now,then execute
the code :
>                        content =
>                 rs->Fields->Item["fieldTableBlob"]->GetChunk(contentLength);
>     will lead to throw exception。
>       



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org


Mime
View raw message