[ 
https://issues.apache.org/jira/browse/ATLAS-5245?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18067777#comment-18067777
 ] 

ASF subversion and git services commented on ATLAS-5245:
--------------------------------------------------------

Commit 6d418eded67f3566acb5847d39d182594316adad in atlas's branch 
refs/heads/master from Madhan Neethiraj
[ https://gitbox.apache.org/repos/asf?p=atlas.git;h=6d418eded ]

ATLAS-5245: fix unittest failures in EntitySearchProcessorTest (#574)

> unit test failures in EntitySearchProcessorTest
> -----------------------------------------------
>
>                 Key: ATLAS-5245
>                 URL: https://issues.apache.org/jira/browse/ATLAS-5245
>             Project: Atlas
>          Issue Type: Bug
>          Components:  atlas-core
>    Affects Versions: 3.0.0, 2.5.0
>            Reporter: Madhan Neethiraj
>            Assignee: Madhan Neethiraj
>            Priority: Major
>             Fix For: 3.0.0, 2.5.0
>
>          Time Spent: 40m
>  Remaining Estimate: 0h
>
> Following unit tests in EntitySearchProcessorTest fail, likely due to the fix 
> in ATLAS-4924 in handling of timezone:
> {noformat}
> [ERROR] Tests run: 41, Failures: 10, Errors: 0, Skipped: 0, Time elapsed: 
> 134.138 s <<< FAILURE! - in 
> org.apache.atlas.discovery.EntitySearchProcessorTest
> [ERROR] org.apache.atlas.discovery.EntitySearchProcessorTest.testLast12Months 
>  Time elapsed: 0.015 s  <<< FAILURE!
> java.lang.AssertionError: expected [02-Mar-2025] but found [01-Mar-2025]
>       at 
> org.apache.atlas.discovery.EntitySearchProcessorTest.testLast12Months(EntitySearchProcessorTest.java:589)
> [ERROR] org.apache.atlas.discovery.EntitySearchProcessorTest.testLast30Days  
> Time elapsed: 0.001 s  <<< FAILURE!
> java.lang.AssertionError: expected [22-Feb-2026] but found [21-Feb-2026]
>       at 
> org.apache.atlas.discovery.EntitySearchProcessorTest.testLast30Days(EntitySearchProcessorTest.java:443)
> [ERROR] org.apache.atlas.discovery.EntitySearchProcessorTest.testLast3Months  
> Time elapsed: 0.001 s  <<< FAILURE!
> java.lang.AssertionError: expected [02-Dec-2025] but found [01-Dec-2025]
>       at 
> org.apache.atlas.discovery.EntitySearchProcessorTest.testLast3Months(EntitySearchProcessorTest.java:527)
> [ERROR] org.apache.atlas.discovery.EntitySearchProcessorTest.testLast6Months  
> Time elapsed: 0.001 s  <<< FAILURE!
> java.lang.AssertionError: expected [01-Mar-2026] but found [28-Feb-2026]
>       at 
> org.apache.atlas.discovery.EntitySearchProcessorTest.testLast6Months(EntitySearchProcessorTest.java:610)
> [ERROR] org.apache.atlas.discovery.EntitySearchProcessorTest.testLastMonth  
> Time elapsed: 0.001 s  <<< FAILURE!
> java.lang.AssertionError: expected [02-Feb-2026] but found [01-Feb-2026]
>       at 
> org.apache.atlas.discovery.EntitySearchProcessorTest.testLastMonth(EntitySearchProcessorTest.java:428)
> [ERROR] org.apache.atlas.discovery.EntitySearchProcessorTest.testLastQuarter  
> Time elapsed: 0.001 s  <<< FAILURE!
> java.lang.AssertionError: expected [01-Feb-2026] but found [31-Jan-2026]
>       at 
> org.apache.atlas.discovery.EntitySearchProcessorTest.testLastQuarter(EntitySearchProcessorTest.java:509)
> [ERROR] org.apache.atlas.discovery.EntitySearchProcessorTest.testLastYear  
> Time elapsed: 0.002 s  <<< FAILURE!
> java.lang.AssertionError: expected [02-Jan-2025] but found [01-Jan-2025]
>       at 
> org.apache.atlas.discovery.EntitySearchProcessorTest.testLastYear(EntitySearchProcessorTest.java:569)
> [ERROR] org.apache.atlas.discovery.EntitySearchProcessorTest.testThisMonth  
> Time elapsed: 0.001 s  <<< FAILURE!
> java.lang.AssertionError: expected [02-Mar-2026] but found [01-Mar-2026]
>       at 
> org.apache.atlas.discovery.EntitySearchProcessorTest.testThisMonth(EntitySearchProcessorTest.java:472)
> [ERROR] org.apache.atlas.discovery.EntitySearchProcessorTest.testThisQuarter  
> Time elapsed: 0.001 s  <<< FAILURE!
> java.lang.AssertionError: expected [02-Feb-2026] but found [01-Feb-2026]
>       at 
> org.apache.atlas.discovery.EntitySearchProcessorTest.testThisQuarter(EntitySearchProcessorTest.java:490)
> [ERROR] org.apache.atlas.discovery.EntitySearchProcessorTest.testThisYear  
> Time elapsed: 0.001 s  <<< FAILURE!
> java.lang.AssertionError: expected [02-Jan-2026] but found [01-Jan-2026]
>       at 
> org.apache.atlas.discovery.EntitySearchProcessorTest.testThisYear(EntitySearchProcessorTest.java:547)
> [ERROR] Tests run: 14, Failures: 2, Errors: 0, Skipped: 0, Time elapsed: 
> 88.178 s <<< FAILURE! - in 
> org.apache.atlas.repository.store.graph.v2.bulkimport.MigrationImportTest
> [ERROR] 
> org.apache.atlas.repository.store.graph.v2.bulkimport.MigrationImportTest.testCreateMigrationStatusServiceUsingReflection
>   Time elapsed: 23.139 s  <<< FAILURE!
> java.lang.reflect.InvocationTargetException
>       at 
> org.apache.atlas.repository.store.graph.v2.bulkimport.MigrationImportTest.testCreateMigrationStatusServiceUsingReflection(MigrationImportTest.java:182)
> Caused by: java.lang.IllegalArgumentException: Could not instantiate 
> implementation: org.janusgraph.diskstorage.berkeleyje.BerkeleyJEStoreManager
>       at 
> org.apache.atlas.repository.store.graph.v2.bulkimport.MigrationImportTest.testCreateMigrationStatusServiceUsingReflection(MigrationImportTest.java:182)
> Caused by: java.lang.reflect.InvocationTargetException
>       at 
> org.apache.atlas.repository.store.graph.v2.bulkimport.MigrationImportTest.testCreateMigrationStatusServiceUsingReflection(MigrationImportTest.java:182)
> Caused by: org.janusgraph.diskstorage.PermanentBackendException: Error during 
> BerkeleyJE initialization: 
>       at 
> org.apache.atlas.repository.store.graph.v2.bulkimport.MigrationImportTest.testCreateMigrationStatusServiceUsingReflection(MigrationImportTest.java:182)
> Caused by: com.sleepycat.je.EnvironmentLockedException: (JE 18.3.12) 
> /home/madhan/Apache/git-commit/atlas/repository/target/data/berkley The 
> environment cannot be locked for single writer access. ENV_LOCKED: The je.lck 
> file could not be locked. Environment is invalid and must be closed.
>       at 
> org.apache.atlas.repository.store.graph.v2.bulkimport.MigrationImportTest.testCreateMigrationStatusServiceUsingReflection(MigrationImportTest.java:182)
> [ERROR] 
> org.apache.atlas.repository.store.graph.v2.bulkimport.MigrationImportTest.testRunWithException
>   Time elapsed: 0.034 s  <<< FAILURE!
> java.lang.IllegalArgumentException: Could not instantiate implementation: 
> org.janusgraph.diskstorage.berkeleyje.BerkeleyJEStoreManager
>       at 
> org.apache.atlas.repository.store.graph.v2.bulkimport.MigrationImportTest.testRunWithException(MigrationImportTest.java:157)
> Caused by: java.lang.reflect.InvocationTargetException
>       at 
> org.apache.atlas.repository.store.graph.v2.bulkimport.MigrationImportTest.testRunWithException(MigrationImportTest.java:157)
> Caused by: org.janusgraph.diskstorage.PermanentBackendException: Error during 
> BerkeleyJE initialization: 
>       at 
> org.apache.atlas.repository.store.graph.v2.bulkimport.MigrationImportTest.testRunWithException(MigrationImportTest.java:157)
> Caused by: com.sleepycat.je.EnvironmentLockedException: (JE 18.3.12) 
> /home/madhan/Apache/git-commit/atlas/repository/target/data/berkley The 
> environment cannot be locked for single writer access. ENV_LOCKED: The je.lck 
> file could not be locked. Environment is invalid and must be closed.
>       at 
> org.apache.atlas.repository.store.graph.v2.bulkimport.MigrationImportTest.testRunWithException(MigrationImportTest.java:157)
> ...
> INFO] 
> [INFO] Results:
> [INFO] 
> [ERROR] Failures: 
> [ERROR]   EntitySearchProcessorTest.testLast12Months:589 expected 
> [02-Mar-2025] but found [01-Mar-2025]
> [ERROR]   EntitySearchProcessorTest.testLast30Days:443 expected [22-Feb-2026] 
> but found [21-Feb-2026]
> [ERROR]   EntitySearchProcessorTest.testLast3Months:527 expected 
> [02-Dec-2025] but found [01-Dec-2025]
> [ERROR]   EntitySearchProcessorTest.testLast6Months:610 expected 
> [01-Mar-2026] but found [28-Feb-2026]
> [ERROR]   EntitySearchProcessorTest.testLastMonth:428 expected [02-Feb-2026] 
> but found [01-Feb-2026]
> [ERROR]   EntitySearchProcessorTest.testLastQuarter:509 expected 
> [01-Feb-2026] but found [31-Jan-2026]
> [ERROR]   EntitySearchProcessorTest.testLastYear:569 expected [02-Jan-2025] 
> but found [01-Jan-2025]
> [ERROR]   EntitySearchProcessorTest.testThisMonth:472 expected [02-Mar-2026] 
> but found [01-Mar-2026]
> [ERROR]   EntitySearchProcessorTest.testThisQuarter:490 expected 
> [02-Feb-2026] but found [01-Feb-2026]
> [ERROR]   EntitySearchProcessorTest.testThisYear:547 expected [02-Jan-2026] 
> but found [01-Jan-2026]
> [ERROR]   
> MigrationImportTest.testCreateMigrationStatusServiceUsingReflection:182 » 
> InvocationTarget
> [ERROR]   MigrationImportTest.testRunWithException:157 » IllegalArgument 
> Could not insta...
> [INFO] 
> [ERROR] Tests run: 2381, Failures: 12, Errors: 0, Skipped: 16
>  {noformat}



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

Reply via email to