[INSTRM-985] Rollover to the filesystem-based visit manager if Gen2 off/bust. Created: 14/May/20  Updated: 18/Apr/23

Status: Open
Project: Instrument control development
Component/s: ics_gen2Actor
Affects Version/s: None
Fix Version/s: None

Type: Task Priority: Normal
Reporter: cloomis Assignee: cloomis
Resolution: Unresolved Votes: 0
Labels: SPS
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Story Points: 2
Sprint: SM1PD-2020 J, SM1PD-2021 A 12

 Description   

The gen2Actor provides the PFS visit. If it cannot get one from Gen2 for whatever reason, it should rollover to the existing filesystem-based visit manager. We do assume that the gen2Actor is running and can be reached.



 Comments   
Comment by hassan [ 10/Sep/20 ]

Affects JHU more, and can come out of the H4 work by cloomis.

Comment by cloomis [ 06/Sep/21 ]

The risks are that the gen2Actor is not running, or that the gen2 side is somehow not working. Might need to protect against both, but the latter seems to happens more often (2021-09-06 g2ssim2, say) so start with that.

Scheme:

  • we keep a local seqno (/data/raw/nextSeqno) file in sync with the gen2 getFrames number – just use the local sequence file mechanism used at ASIAA, JHU, old LAM.
  • when a g2cam getFrames call fails, increment the nextSeqno file and use that.
  • when a g2cam getFrames call succeeds, compare with the nextSeqno file. If behind, wind the g2cam counter up to match. Update the nextSeqno file.

This will probably also require lowering the g2cam getFrames timeout, and maybe adding a we-know-g2cam-is-down flag to avoid always waiting for that timeout.

The Gen2 frame accounting (allocated, done, archived) will break in confusing ways.

Comment by cloomis [ 18/Apr/23 ]

Bump. This seemed unlikely and thus not very important. But the gen2 server or its frame id database has broken a couple more times: we should implement the proposed scheme. That would allow taking frames, at least.

Generated at Wed Apr 16 14:38:13 JST 2025 using Jira 8.3.4#803005-sha1:1f96e09b3c60279a408a2ae47be3c745f571388b.