Skip to content

Commit

Permalink
S3UTILS-163: fix bucket key computation in count items for inflights
Browse files Browse the repository at this point in the history
  • Loading branch information
williamlardier committed May 18, 2024
1 parent 5eca975 commit ea930ae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CountItems/masterProcess.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,5 +82,5 @@ countMaster.start(err => {
waitingForPromScraping = true;
setTimeout(() => {
countMaster.stop(null, () => process.exit(0));
}, prometheusPollingAttempts * prometheusPollingPeriod * 1000 * 4);
}, prometheusPollingAttempts * prometheusPollingPeriod * 1000);
});
2 changes: 1 addition & 1 deletion utils/S3UtilsMongoClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ class S3UtilsMongoClient extends MongoClientInterface {

const bucketEntry = usersBucketCreationDatesMap[`${bucketInfo.getOwner()}${constants.splitter}${bucketName}`];
if (bucketEntry) {
bucketKey = `bucket_${bucketName}_${new Date(usersBucketCreationDatesMap[bucketEntry]).getTime()}`;
bucketKey = `bucket_${bucketName}_${new Date(bucketEntry).getTime()}`;
if (bucketKey) {
inflightsPreScan = await this.readStorageConsumptionInflights(bucketKey, log);
}
Expand Down

0 comments on commit ea930ae

Please sign in to comment.