You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2021/10/04 23:28:00 UTC

[jira] [Work logged] (ARTEMIS-3513) Compacting Exception May Invalid Journal Deletes and updates

     [ https://issues.apache.org/jira/browse/ARTEMIS-3513?focusedWorklogId=659956&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-659956 ]

ASF GitHub Bot logged work on ARTEMIS-3513:
-------------------------------------------

                Author: ASF GitHub Bot
            Created on: 04/Oct/21 23:27
            Start Date: 04/Oct/21 23:27
    Worklog Time Spent: 10m 
      Work Description: clebertsuconic commented on a change in pull request #3783:
URL: https://github.com/apache/activemq-artemis/pull/3783#discussion_r721783198



##########
File path: artemis-protocols/artemis-openwire-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/openwire/OpenWireMessageConverter.java
##########
@@ -710,7 +710,12 @@ private static ActiveMQMessage toAMQMessage(MessageReference reference,
    private static <T> T getObjectProperty(ICoreMessage message, Class<T> type, SimpleString property) {
       if (message.getPropertyNames().contains(property)) {
          try {
-            return type.cast(message.getObjectProperty(property));
+            Object value = message.getObjectProperty(property);
+            if (type == String.class) {
+               return (T)value.toString();

Review comment:
       @jbertram review this please, since it was a recent change of yours? 




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: gitbox-unsubscribe@activemq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Issue Time Tracking
-------------------

            Worklog Id:     (was: 659956)
    Remaining Estimate: 0h
            Time Spent: 10m

> Compacting Exception May Invalid Journal Deletes and updates
> ------------------------------------------------------------
>
>                 Key: ARTEMIS-3513
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-3513
>             Project: ActiveMQ Artemis
>          Issue Type: Bug
>            Reporter: Clebert Suconic
>            Priority: Major
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> After an exception on the journal compacting deleting and update operations will be invalidated.
> In particular I could find an issue with the Mapped Journal that I'm fixing as part of this JIRA.
> an exception on compacting should be a critical issue



--
This message was sent by Atlassian Jira
(v8.3.4#803005)