Skip to content

Conversation

@sambuc
Copy link

@sambuc sambuc commented Nov 24, 2025

No description provided.

@sambuc sambuc changed the title DO NOT MERGE - PR test deployment DO NOT MERGE - build image Nov 25, 2025
kanya-approve and others added 5 commits November 26, 2025 11:09
* Ensure the mutex is not copied, even when the nodeServer is copied by
  storing a pointer to the mutex, instead of the mutex itself.

* Use Mutex instead of RWMutex, as having two readers of the variable at
  the same time means we are going to write the state at the same time,
  corrupting the state file on storage.

* Mutex / RWMutex are not recursive / re-entrant in Go, so in two cases
  we do not call `Unlock()` through `defer` as `persistState()` also
  takes the lock.

* As a rule of thumb, Locking a Mutex should be as close as possible to
  the resource requiring it, to minimize the size of the critical
  section / the time spent holding the lock.

* Remount each volume in a goroutine, with a rate limits of the number
  of active routine to prevent contention, and keep under control
  startup times.
* Refactor
  * CLI code
  * servers configurations
  * ControllerServer
  * NodeServer

* Cleanup warnings in:
  * controllerserver.go
  * main.go

* Use tags to specify json field names on permanent storage

* Make DriverVersion a constant

* Protect activeVolume while reading for the metrics

* Compute len(ns.mountedVolumes) once
@sambuc sambuc force-pushed the sambuc/do-not-merge-test branch 2 times, most recently from 7be5233 to 717668c Compare December 11, 2025 12:55
@sambuc sambuc force-pushed the sambuc/do-not-merge-test branch 3 times, most recently from b5cd795 to c1a291f Compare December 15, 2025 10:42
 - Use a folder name on the host which contains the deployment, to
   prevent conflicts in case of multiple deployment on the same host.

 - Cleaned up a bit the templates to make it easier to compare.

 - Use a folder under /tmp so that state is cleaned on node reboot, but
   kept between pod/container restarts

---------

Co-authored-by: Tasko Olevski <olevski90@gmail.com>
@sambuc sambuc force-pushed the sambuc/do-not-merge-test branch from c1a291f to 28f60df Compare December 15, 2025 15:06
@sambuc sambuc force-pushed the sambuc/do-not-merge-test branch 2 times, most recently from b17c8b3 to c9c5c05 Compare January 14, 2026 10:10
@sambuc sambuc force-pushed the sambuc/do-not-merge-test branch 4 times, most recently from ed280d0 to 0dc024a Compare January 26, 2026 07:56
@sambuc sambuc force-pushed the sambuc/do-not-merge-test branch from 0dc024a to 302a82e Compare January 30, 2026 10:03
@sambuc sambuc force-pushed the sambuc/do-not-merge-test branch from 302a82e to 5aded7f Compare January 30, 2026 10:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants