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

ASF GitHub Bot logged work on AMQ-9366:
---------------------------------------

                Author: ASF GitHub Bot
            Created on: 27/Nov/24 23:54
            Start Date: 27/Nov/24 23:54
    Worklog Time Spent: 10m 
      Work Description: gurpartap0306 opened a new pull request, #1357:
URL: https://github.com/apache/activemq/pull/1357

   * This change fixed kahadb test failing with JDK 21 due to deprecated 
SecurityManager.




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

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

> Implement a DataFileFactory interface off of KahaDB Persistence Adapter
> -----------------------------------------------------------------------
>
>                 Key: AMQ-9366
>                 URL: https://issues.apache.org/jira/browse/AMQ-9366
>             Project: ActiveMQ Classic
>          Issue Type: Task
>            Reporter: Matt Pavlovich
>            Assignee: Matt Pavlovich
>            Priority: Minor
>             Fix For: 6.2.0
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> 1. Support a pluggable DataFileFactory interface that handles instantiation 
> of DataFile implementations
> 2. Update KahaDB Persistence Adapter to accept a custom DataFileFactory
> 3. Update to have DefaultDataFileFactory mimic the current behavior
> 4. Update Journal.java to take a DataFileFactory as a constructor argument
> 5. Update JouarnalArchiveTest using a MockDataFileFactory to support 
> simulating fs errors and recovery.
> This test is unsupported in JDK 21 and going forward:
> {noformat}
> [INFO] Running org.apache.activemq.store.kahadb.JournalArchiveTest
> [ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.253 
> s <<< FAILURE! -- in org.apache.activemq.store.kahadb.JournalArchiveTest
> [ERROR] 
> org.apache.activemq.store.kahadb.JournalArchiveTest.testRecoveryOnArchiveFailure
>  -- Time elapsed: 0.225 s <<< ERROR!
> java.lang.UnsupportedOperationException: The Security Manager is deprecated 
> and will be removed in a future release
>       at java.base/java.lang.System.setSecurityManager(System.java:429)
>       at 
> org.apache.activemq.store.kahadb.JournalArchiveTest.testRecoveryOnArchiveFailure(JournalArchiveTest.java:122)
>       at 
> java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
> {noformat}
> was titled: Fix kahadb test failing with JDK 21 due to deprecated 
> SecurityManager



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information, visit: https://activemq.apache.org/contact


Reply via email to