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

Fixes #19920: root inventory is missing and need to be resent after install #4281

Conversation

fanf
Copy link
Member

@fanf fanf commented May 18, 2022

  • now, API put files in the usual directory, and they are processed as other inventories
  • create trait to make more clear what are the public API in services and how the are used in other services (code on interfaces)
  • removed the logic to have a non-blocking inventory save for API case
  • remove the saveInventory queue. Now, the whole [xml parsing, signature checking, ldap save] is a blocking method with a parallelism of configured by inventory.parse.parallelization, default 1 because it seems that in general, there is little advantage of making it more appart stressing LDAP
  • add inventory cleaning in the garbage collector: remove inventories older than inventories.watcher.max.age.before.deletion, remove unmatched pairs

2022-05-19-Inventory processing 7 2

https://issues.rudder.io/issues/19920

@fanf fanf requested a review from ncharles May 18, 2022 21:19
Copy link
Member

@ncharles ncharles left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I havent finished the review, but some small remarks

@fanf fanf force-pushed the arch_19920/root_inventory_is_missing_and_need_to_be_resent_after_install branch from 32ce6ff to 9dc81bd Compare May 19, 2022 13:39
@fanf
Copy link
Member Author

fanf commented May 19, 2022

Rebasing to prepare for merge

("queueMaxSize" -> inventoryProcessor.maxQueueSize)
~ ("queueSaturated" -> saturated)
("queueMaxSize" -> Int.MaxValue)
~ ("queueSaturated" -> false)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I kept that to not break the API, but it makes little sense.
I propose to:

  • do that for up to version 13
  • create a version 14 with info {"incomingInventories": XXX} the number of inventories in incoming+accepted-nodes-updates

It can be done after merging this PR.

@Normation-Quality-Assistant
Copy link
Contributor

OK, merging this PR

@Normation-Quality-Assistant Normation-Quality-Assistant merged commit 9967cbc into Normation:master May 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants