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

tickHF: not supported usage of -11!(-2;logFile) in case of invalid log file #44

Open
joannajarmulska opened this issue Sep 8, 2015 · 4 comments
Labels

Comments

@joannajarmulska
Copy link
Contributor

Function -11!(-2;logFile) in case of invalid log file returns two numbers:

  • number of valid chunks
  • length of valid part

Function to replay data expects only number of chunks, which is returned when log file is not corrupted.

@joannajarmulska
Copy link
Contributor Author

To handle corrupted log file additional field cfg.handleBadJournal will be added to configuration tickHF.qsd with three options:

  • ABORT - process will be stopped and journal needs to be handled manually (it can be moved or truncated).
  • ARCHIVE_BAD_JRN - invalid journal is archived and new one is created. Note that messages from the invalid journal will be dropped. Afterwards it can be manually injected to the running system.
  • TRUNCATE_BAD_TAIL - invalid journal is truncated to the size that contains only valid chunks (assigned as occurence of the first corrupted message). New messages will be appened to the existing journal.
    Note that for Windows truncate is not implemented. The code for that can be injected by the user. Therefore please overwrite .os.p.W.truncate function in os.q.

@sevastos
Copy link

Hi Joanna,
Does TRUNCATE_BAD_TAIL archive the invalid chunks for later inspection/use.
Thanks

joannajarmulska added a commit that referenced this issue Sep 21, 2015
@isaac-love
Copy link

I set timestampMode = LOCAL eodDelay = 14:31:00.000, why I can't get hdb file at 14:31:00.000?

@pawelhudak
Copy link
Collaborator

I set timestampMode = LOCAL eodDelay = 14:31:00.000, why I can't get hdb file at 14:31:00.000?

Please note that eodDelay configuration field is designed to delay the eod by reasonable small amount of time only (say minutes), see late ticks handling documentation for more details. Implementation of this mechamism includes caching of the incomming data in the memory of tickHF process, which imply limitation on the eodDelay duration.

Cheers,
Pawel

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants