celaut-project / nodo

Service Orchestration for Distributed Networks
1 stars 0 forks source link

Accumulative hashes from previous compiled services into metadata #20

Closed jse07 closed 2 weeks ago

jse07 commented 5 months ago

Context: When compiling multiple services simultaneously, an issue arises in the compilation node. The initial hypothesis suggests that the node is not properly clearing a list containing hashes of previously compiled services. This issue becomes apparent when some services have multiple hashes of the same type, where the hashes correspond to services compiled within a similar timeframe. Importantly, the accumulation of hashes does not follow a staggered pattern, indicating an improper data accumulation.

Problem Details:

Problem Reproduction: When compiling multiple services simultaneously, it is observed that some services accumulate multiple hashes of the same type.

Potential Impact: The presence of multiple hashes for the same hash type, this accumulation affect the integrity of data stored in metadata.

Possible Solution: It is proposed to investigate and correct the logic of hash management in the compilation node. This may involve a review of the process of clearing old hash lists, ensuring that only hashes from the current compilation are retained.

Steps to Reproduce:

  1. Compile multiple services simultaneously.
  2. Check the hashes associated with each service.
  3. Observe the presence of multiple hashes of the same type for some services.

Additional Observations: It is recommended to review the code related to hash management in the compilation node to identify potential areas for improvement and correct the unwanted accumulation of hashes from previously compiled services.

jse07 commented 3 months ago

Can't be reproduced.