Project

General

Profile

Actions

Bug #16493

closed

Missing stored git commit leads to fatal exception

Added by François ARMAND almost 5 years ago. Updated almost 5 years ago.

Status:
Released
Priority:
N/A
Category:
Web - Config management
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
Reviewed
Fix check:
To do
Regression:

Description

If the stored git commit id for configuration repository is missing, we get a fatal error and rudder stops:

Fiber failed.
An unchecked error was produced.
scala.MatchError: SystemError(An error occured,org.eclipse.jgit.errors.MissingObjectException: Missing tree ec49b3b17663fc4f0664e6013f65064634ce4c96) (of class com.normation.errors$SystemError)
    at com.normation.cfclerk.services.impl.GitTechniqueReader.$anonfun$currentTechniquesInfoCache$3(GitTechniqueReader.scala:182)
    at scala.util.Either.fold(Either.scala:190)
    at zio.ZIO$FoldCauseMFailureFn.apply(ZIO.scala:2733)
    at zio.ZIO$FoldCauseMFailureFn.apply(ZIO.scala:2730)
    at zio.internal.FiberContext.evaluateNow(FiberContext.scala:710)
    at zio.internal.FiberContext.$anonfun$evaluateLater$1(FiberContext.scala:602)
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
    at java.base/java.lang.Thread.run(Thread.java:834)

Fiber:1 was supposed to continue to:
  a future continuation at com.normation.cfclerk.services.impl.GitTechniqueReader.currentTechniquesInfoCache(GitTechniqueReader.scala:203)
  a future continuation at zio.ZIO.run(ZIO.scala:1123)
  a future continuation at zio.Semaphore.withPermits(Semaphore.scala:114)
  a future continuation at com.normation.cfclerk.services.impl.GitTechniqueReader.currentTechniquesInfoCache(GitTechniqueReader.scala:204)
  a future continuation at zio.ZIO.run(ZIO.scala:1123)
Actions

Also available in: Atom PDF