-
-
Notifications
You must be signed in to change notification settings - Fork 356
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
Adding close method to AuditLogger to free up resources. #1292
Changes from all commits
b8f3a7a
5f1ec33
6b6cecf
22a4ab2
ae05ba9
4bab205
78e7702
8391c03
af23948
6de01d5
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -960,6 +960,7 @@ export class FlexServer implements GristServer { | |
// Do this after _shutdown, since DocWorkerMap is used during shutdown. | ||
if (this._docWorkerMap) { await this._docWorkerMap.close(); } | ||
if (this._sessionStore) { await this._sessionStore.close(); } | ||
if (this._auditLogger) { await this._auditLogger.close(); } | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thinking about what happens if there are slow audit sinks and this close takes time. Not much we can do. We could have started the close earlier, in parallel with other actions - but perhaps we want to audit those :). Let's leave it so. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This will go away with jobs. Then we would just abort it, and resume later. |
||
} | ||
|
||
public addDocApiForwarder() { | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,9 +12,6 @@ describe('ColumnOps.ntest', function() { | |
await gu.supportOldTimeyTestCode(); | ||
await gu.useFixtureDoc(cleanup, "World.grist", true); | ||
await gu.toggleSidePanel('left', 'close'); | ||
// The banner appearing mid-test occasionally interferes with the rest of | ||
// the tests (for some unknown reason), so wait for it to appear first. | ||
await $('.test-banner-element').wait(); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This banner was only shown on internal CLI (probably), we will sort it differently. |
||
}); | ||
|
||
afterEach(function() { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To recreate similar issue just promises just put those lines here and run the DocApi2 test.