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

[FIX] HipChat Enterprise importer fails when importing a large amount of messages (millions) #13221

Merged
merged 33 commits into from
Jan 30, 2019

Conversation

Hudell
Copy link
Contributor

@Hudell Hudell commented Jan 22, 2019

Closes #ISSUE_NUMBER

@engelgabriel engelgabriel temporarily deployed to rocket-chat-pr-13221 January 22, 2019 17:25 Inactive
@engelgabriel engelgabriel temporarily deployed to rocket-chat-pr-13221 January 23, 2019 03:28 Inactive
@engelgabriel engelgabriel temporarily deployed to rocket-chat-pr-13221 January 23, 2019 21:17 Inactive
@engelgabriel engelgabriel temporarily deployed to rocket-chat-pr-13221 January 24, 2019 22:47 Inactive
@engelgabriel engelgabriel temporarily deployed to rocket-chat-pr-13221 January 24, 2019 22:49 Inactive
@Hudell Hudell changed the title [WIP] Improve HipChat importer perfomance for very large files [FIX] HipChat Enterprise importer fails when importing a large amount of messages (millions) Jan 24, 2019
@rodrigok rodrigok added this to the 0.74.0-rc.2 milestone Jan 27, 2019
@rodrigok rodrigok modified the milestones: 0.74.0-rc.2, 0.74.1 Jan 28, 2019
@engelgabriel engelgabriel temporarily deployed to rocket-chat-pr-13221 January 28, 2019 14:37 Inactive

for (const item of messageListIds) {
await this._importMessageList(startedByUserId, item._id);
}
}

_importDirectMessages() {
Copy link
Member

Choose a reason for hiding this comment

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

Shouldn't this be async?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's sync to avoid working on too many lists at the same time, as that caused the process to use too much RAM.

@sampaiodiego sampaiodiego merged commit d58b20c into develop Jan 30, 2019
@sampaiodiego sampaiodiego deleted the fix-for-large-import-files branch January 30, 2019 14:11
sampaiodiego pushed a commit that referenced this pull request Feb 1, 2019
… of messages (millions) (#13221)

* Added new screen to check the importer history

* Fixed conditional check

* Better error handling and local file import

* Improved error readability

* Improved error handling

* Allow @here and @ALL on messages that won't trigger notifications, regardless of permissions

* Fixed room owners

* Fixed issue when accessing import adm for the first time

* Included Imported count on history screen

* Increased timeout for fetching import file data

* Improved Importer Counters

* Missing comma

* Improved RAM usage

* import in batches

* Avoid hitting a mongo cursor timeout

* Additional fixes for the importer

* Improved code

* Show room owner at admin room info

* Get room owner instead of room creator in admin room info

* Insert messages faster

* Skip messages that were already imported

* Improved perfomance for hipchat imports

* Improved hipchat importer perfomance

* Improved message count handling

* skip import operations marked as invalid
@sampaiodiego sampaiodiego mentioned this pull request Feb 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants