-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Security Solution] [Bug] A few entities fail to be assigned the values every time for asset criticality via bulk upload #196975
Comments
Pinging @elastic/security-solution (Team: SecuritySolution) |
@amolnater-qasource please review! |
Reviewed & assigned to @MadameSheema |
Pinging @elastic/security-entity-analytics (Team:Entity Analytics) |
@muskangulati-qasource could you please share with us the file that you used to upload? |
We have used below file to upload via bulk upload for asset criticality: Please let us know if anything else is required from our end. Thank you! |
I was able to reproduce it. It is an extreme edge case. The document assigns criticality thousands of times for the same entity. Because the server side is asynchronous, some assignments for the same entity conflict. But we can make some improvements in this scenario: 1 It is hard to find the line with an error when uploading a file with thousands of lines. Maybe we should show two 2 We could validate duplicated entities in the server and return an error. But that requires storing every entity name in a map, which costs memory. @hop-dev Do you think the feature is worth the performance impact? |
@machadoum I think it is likely worth it, I would be interested to compare the performance of a large file before and after the change to double check. |
Fixing this bug will also fix a bug where the server-based line number is off-by-one. |
PR: #199651 |
Hi @MadameSheema, We have tested this ticket on the latest 8.16.1 BC2 and found the issue is now fixed. Please find below the testing details: Build details
Screen Recording
2.mp4
3.mp4Hence, we are closing this issue and marking it as 'QA validated'. Thanks!! |
Describe the bug
A few entities fail to be assigned the values every time for asset criticality via bulk upload
Kibana/Elasticsearch Stack version
Steps
Expected Result
No entities should fail to be assigned the values every time for asset criticality via bulk upload
Screen Recording
Entity.Store.mp4
Test file used
user.txt
Error from network logs
The text was updated successfully, but these errors were encountered: