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

[Guaranteed Bucket Logging][NSFS]PR3 - Persistent logging #8121

Merged
merged 1 commit into from
Jul 11, 2024

Conversation

jackyalbo
Copy link
Contributor

Explain the changes

  1. Adding the option for persistent bucket logging
  2. Logging twice in case of persistent logging
  3. Adding a command to export the logging for NSFS

Issues: Fixed #xxx / Gap #xxx

Testing Instructions:

  • Doc added/updated
  • Tests added

@jackyalbo jackyalbo changed the title [Guaranteed Bucket Logging][NSFS]PR3 - Persistent logging -draft- [Guaranteed Bucket Logging][NSFS]PR3 - Persistent logging Jun 17, 2024
@jackyalbo jackyalbo force-pushed the jacky-pers_log branch 7 times, most recently from 3626357 to dcb0649 Compare June 23, 2024 13:27
@jackyalbo jackyalbo marked this pull request as ready for review June 23, 2024 13:38
bucket_streams[source_bucket].write(entry + '\n');
});
Object.values(bucket_streams).forEach(st => st.end());
await Promise.all(promises);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need to support the scenarios where uploads are failing to just a selected few buckets but not others? Right now I think we would keep retrying it for the entire log file if the upload fails even just once.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe it's a good idea to cover the promises with retries as well...thanks

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added a check on if the bucket doesn't exist and 3 retries

@jackyalbo jackyalbo force-pushed the jacky-pers_log branch 4 times, most recently from 8fdeb6f to a277d0a Compare June 26, 2024 13:54
src/manage_nsfs/manage_nsfs_logging.js Show resolved Hide resolved
src/server/bg_services/bucket_logs_upload.js Outdated Show resolved Hide resolved
src/server/bg_services/bucket_logs_upload.js Outdated Show resolved Hide resolved
src/server/bg_services/bucket_logs_upload.js Outdated Show resolved Hide resolved
@jackyalbo jackyalbo force-pushed the jacky-pers_log branch 9 times, most recently from b7b0ff1 to 34e59d8 Compare July 3, 2024 15:23
Signed-off-by: jackyalbo <jacky.albo@gmail.com>
@jackyalbo jackyalbo merged commit bbb8f51 into noobaa:master Jul 11, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants