Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug][Jira] Jira Issues Data Collection is deleting old registers #8198

Open
2 of 3 tasks
caioq opened this issue Nov 19, 2024 · 4 comments
Open
2 of 3 tasks

[Bug][Jira] Jira Issues Data Collection is deleting old registers #8198

caioq opened this issue Nov 19, 2024 · 4 comments
Assignees
Labels
component/plugins This issue or PR relates to plugins severity/p1 This bug affects functionality or significantly affect ux type/bug This issue is a bug

Comments

@caioq
Copy link
Contributor

caioq commented Nov 19, 2024

Search before asking

  • I had searched in the issues and found no similar issues.

What happened

The problem occurs during subsequent executions of a blueprint after the initial or full-refresh data collection has been completed successfully. Initially, all data is collected perfectly, and there are no errors or unusual behavior logged during these runs. However, in some cases, during subsequent runs of the same blueprint, old issues seem to be deleted, leaving only issues that were created or updated after the last pipeline execution.

What do you expect to happen

Records should be incrementally added to the issues table.

How to reproduce

This started happening 2 weeks ago in the production environment. I don't know if the JIRA incident on November 5-6 may have impacted this collection process.

Anything else

Upon further investigation, I found that the _raw_jira_api_issues table still contains 73,145 records, while the _tool_jira_issues and issues tables only hold 1,115 records. This suggests there might be an issue with the extractor or data transformation during these runs.

Version

v1.0.1-beta8@e195107 or v1.0.2-beta4

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

@caioq caioq added the type/bug This issue is a bug label Nov 19, 2024
Copy link

dosubot bot commented Nov 19, 2024

I found a similar closed issue that might be related to your problem: [Bug][jira] Jira issue extractor produces records less than expected](#4709). This issue was closed, but it might provide some insights into the behavior you're experiencing [1].

Regarding your specific issue, it seems like the incremental data update process in Apache DevLake's Jira plugin might be affecting the records in the issues table. The process involves using a StatefulApiExtractor that, when in incremental mode, deletes existing records related to the issue in the JiraIssueLabel and JiraIssueRelationship tables before processing new data. This is intended to ensure that any changes to labels or relationships are accurately reflected in the database [2].

Given the discrepancy between the _raw_jira_api_issues and the other tables, it might be worth investigating whether the deletion process is affecting more records than intended. Additionally, consider checking if there are any specific configurations or settings that might be influencing this behavior.

To continue talking to Dosu, mention @dosu.

@dosubot dosubot bot added component/plugins This issue or PR relates to plugins severity/p1 This bug affects functionality or significantly affect ux labels Nov 19, 2024
@klesh
Copy link
Contributor

klesh commented Nov 21, 2024

Any new project was created recently?
Was there any parallel pipeline running at the same time?
Is there any shared Jira board between projects?

Try executing the "Retransform Data" and see if the issues reappear.

@caioq
Copy link
Contributor Author

caioq commented Dec 3, 2024

Any new project was created recently? Was there any parallel pipeline running at the same time? Is there any shared Jira board between projects?

Try executing the "Retransform Data" and see if the issues reappear.

Hi @klesh !
When this problem arose, no project/configuration was created or changed.

Fortunately, when I retransform the data, the issues reappear 🙏🏼

Unfortunately, this past weekend this problem happened again. It's not something that happens often. I'm still investigating what could have happened differently.

@klesh
Copy link
Contributor

klesh commented Dec 9, 2024

I wonder if this issue is related to #7826

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/plugins This issue or PR relates to plugins severity/p1 This bug affects functionality or significantly affect ux type/bug This issue is a bug
Projects
None yet
Development

No branches or pull requests

2 participants