You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Semyon Zikunov (Jira)" <ji...@apache.org> on 2024/11/14 04:07:00 UTC
[jira] [Comment Edited] (IGNITE-23138) Fix TxWithKeyContentionSelfTest (Cache 12 group)
[ https://issues.apache.org/jira/browse/IGNITE-23138?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17898125#comment-17898125 ]
Semyon Zikunov edited comment on IGNITE-23138 at 11/14/24 4:06 AM:
-------------------------------------------------------------------
[https://ci2.ignite.apache.org/buildConfiguration/IgniteTests24Java8_Cache12/8161983?expandBuildDeploymentsSection=false&hideTestsFromDependencies=false&hideProblemsFromDependencies=false]
[https://ci2.ignite.apache.org/buildConfiguration/IgniteTests24Java8_Cache12/8162240?expandBuildDeploymentsSection=false&hideTestsFromDependencies=false&hideProblemsFromDependencies=false]
[https://ci2.ignite.apache.org/buildConfiguration/IgniteTests24Java8_Cache12/8163071?expandBuildDeploymentsSection=false&hideTestsFromDependencies=false&hideProblemsFromDependencies=false]
[https://ci2.ignite.apache.org/buildConfiguration/IgniteTests24Java8_Cache12/8163331?expandBuildDeploymentsSection=false&hideTestsFromDependencies=false&hideProblemsFromDependencies=false]
[https://ci2.ignite.apache.org/buildConfiguration/IgniteTests24Java8_Cache12/8163341?expandBuildDeploymentsSection=false&hideTestsFromDependencies=false&hideProblemsFromDependencies=false]
[https://ci2.ignite.apache.org/buildConfiguration/IgniteTests24Java8_Cache12/8163613?expandBuildDeploymentsSection=false&hideTestsFromDependencies=false&hideProblemsFromDependencies=false]
[https://ci2.ignite.apache.org/buildConfiguration/IgniteTests24Java8_Cache12/8163890?expandBuildDeploymentsSection=false&hideTestsFromDependencies=false&hideProblemsFromDependencies=false]
[https://ci2.ignite.apache.org/buildConfiguration/IgniteTests24Java8_Cache12/8163892?expandBuildDeploymentsSection=false&hideTestsFromDependencies=false&hideProblemsFromDependencies=false]
[https://ci2.ignite.apache.org/buildConfiguration/IgniteTests24Java8_Cache12/8163902?hideTestsFromDependencies=false&hideProblemsFromDependencies=false] [&hideProblemsFromDependencies=false|https://ci2.ignite.apache.org/buildConfiguration/IgniteTests24Java8_Cache12/8163892?expandBuildDeploymentsSection=false&hideTestsFromDependencies=false&hideProblemsFromDependencies=false]
[https://ci2.ignite.apache.org/buildConfiguration/IgniteTests24Java8_Cache12/8163906?hideTestsFromDependencies=false&hideProblemsFromDependencies=false] [&hideProblemsFromDependencies=false|https://ci2.ignite.apache.org/buildConfiguration/IgniteTests24Java8_Cache12/8163892?expandBuildDeploymentsSection=false&hideTestsFromDependencies=false&hideProblemsFromDependencies=false]
was (Author: JIRAUSER303459):
[https://ci2.ignite.apache.org/buildConfiguration/IgniteTests24Java8_Cache12/8161983?expandBuildDeploymentsSection=false&hideTestsFromDependencies=false&hideProblemsFromDependencies=false]
[https://ci2.ignite.apache.org/buildConfiguration/IgniteTests24Java8_Cache12/8162240?expandBuildDeploymentsSection=false&hideTestsFromDependencies=false&hideProblemsFromDependencies=false]
[https://ci2.ignite.apache.org/buildConfiguration/IgniteTests24Java8_Cache12/8163071?expandBuildDeploymentsSection=false&hideTestsFromDependencies=false&hideProblemsFromDependencies=false]
[https://ci2.ignite.apache.org/buildConfiguration/IgniteTests24Java8_Cache12/8163331?expandBuildDeploymentsSection=false&hideTestsFromDependencies=false&hideProblemsFromDependencies=false]
[https://ci2.ignite.apache.org/buildConfiguration/IgniteTests24Java8_Cache12/8163341?expandBuildDeploymentsSection=false&hideTestsFromDependencies=false&hideProblemsFromDependencies=false]
[https://ci2.ignite.apache.org/buildConfiguration/IgniteTests24Java8_Cache12/8163613?expandBuildDeploymentsSection=false&hideTestsFromDependencies=false&hideProblemsFromDependencies=false]
[https://ci2.ignite.apache.org/buildConfiguration/IgniteTests24Java8_Cache12/8163890?expandBuildDeploymentsSection=false&hideTestsFromDependencies=false&hideProblemsFromDependencies=false]
[https://ci2.ignite.apache.org/buildConfiguration/IgniteTests24Java8_Cache12/8163892?expandBuildDeploymentsSection=false&hideTestsFromDependencies=false&hideProblemsFromDependencies=false]
[https://ci2.ignite.apache.org/buildConfiguration/IgniteTests24Java8_Cache12/8163902?hideTestsFromDependencies=false&hideProblemsFromDependencies=false] [&hideProblemsFromDependencies=false|https://ci2.ignite.apache.org/buildConfiguration/IgniteTests24Java8_Cache12/8163892?expandBuildDeploymentsSection=false&hideTestsFromDependencies=false&hideProblemsFromDependencies=false]
[https://ci2.ignite.apache.org/buildConfiguration/IgniteTests24Java8_Cache12/8163906?hideTestsFromDependencies=false&hideProblemsFromDependencies=false] [&hideProblemsFromDependencies=false|https://ci2.ignite.apache.org/buildConfiguration/IgniteTests24Java8_Cache12/8163892?expandBuildDeploymentsSection=false&hideTestsFromDependencies=false&hideProblemsFromDependencies=false]
> Fix TxWithKeyContentionSelfTest (Cache 12 group)
> ------------------------------------------------
>
> Key: IGNITE-23138
> URL: https://issues.apache.org/jira/browse/IGNITE-23138
> Project: Ignite
> Issue Type: Test
> Reporter: Semyon Zikunov
> Assignee: Semyon Zikunov
> Priority: Trivial
> Labels: ise
> Attachments: runKeyCollisionsMetricAndtestTxContentionMetric_SIMILARITY.txt, runKeyCollisionsMetric_analysis_en.txt, runKeyCollisionsMetric_analysis_ru.txt
>
> Time Spent: 3h
> Remaining Estimate: 0h
>
> *Description:* The following tests (8) are intermittently failing due to an {{AssertionError}} in Apache Ignite:
> *
> {{testPessimisticRepeatableReadCheckContentionTxMetric}}
> *
> {{testPessimisticRepeatableReadCheckContentionTxMetricNear}}
> *
> {{testPessimisticReadCommitedCheckContentionTxMetric}}
> *
> {{testPessimisticReadCommitedCheckContentionTxMetricNear}}
> *
> {{testOptimisticReadCommittedCheckContentionTxMetric}}
> *
> {{testOptimisticReadCommittedCheckContentionTxMetricNear}}
> *
> {{testOptimisticRepeatableReadCheckContentionTxMetric}}
> *
> {{testOptimisticRepeatableReadCheckContentionTxMetricNear}}
> The issue arises when the tests periodically fail at the {{assertTrue(GridTestUtils.waitForCondition())}} check. The condition compares the {{txKeyCollisions}} field in the transaction metrics, which sometimes returns an empty string. This leads to an {{AssertionError}} when attempting to validate {{{}coll1{}}}, indicating possible inconsistencies or timing issues with the metrics collection during test execution.
> *Tasks:*
> # Investigate the root cause of the {{txKeyCollisions}} field occasionally returning an empty string in the metrics.
> # Analyze whether timing or state propagation issues are causing the {{waitForCondition}} to pass before the {{txKeyCollisions}} metrics are populated.
> # Refactor the tests to ensure consistent metrics collection and validation, possibly adding additional synchronization or checks.
> # Verify the fix by running the tests repeatedly to confirm the flaky behavior is resolved.
> *Expected Result:* The tests run reliably without intermittent failures. The {{txKeyCollisions}} metrics are consistently populated, and the {{assertTrue}} check passes as expected, ensuring the tests no longer exhibit flakiness.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)