Skip to content

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

Merged
sampaiodiego merged 33 commits intodevelopfrom
fix-for-large-import-files
Jan 30, 2019
Merged

[FIX] HipChat Enterprise importer fails when importing a large amount of messages (millions)#13221
sampaiodiego merged 33 commits intodevelopfrom
fix-for-large-import-files

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
}
}

_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

Comments