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

JAMES-2910 HTML could be indexed directly in ElasticSearch #2739

Closed
wants to merge 15 commits into from

Conversation

chibenwa
Copy link
Member

@chibenwa chibenwa commented Oct 3, 2019

No description provided.

The size of indexed JSON documents significantly decreases for emails
containing HTML (eg from 196 KB to 8.6 KB)
@chibenwa chibenwa added the perf Contributes some performance enhencements label Oct 3, 2019
@chibenwa chibenwa added this to the Sprint 12 - Robusta beans milestone Oct 3, 2019
IndexAttachments.NO);
String convertToJsonWithoutAttachment = messageToElasticSearchJson.convertToJsonWithoutAttachment(message, ImmutableList.of(USER));

System.out.println(convertToJsonWithoutAttachment);
Copy link
Member

Choose a reason for hiding this comment

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

debug

@chibenwa
Copy link
Member Author

chibenwa commented Oct 4, 2019

[36f2f7d1a8ca2f13e1324b998779ed1df8df0dd8] [INFO] # There is insufficient memory for the Java Runtime Environment to continue.
[36f2f7d1a8ca2f13e1324b998779ed1df8df0dd8] [ERROR] # There is insufficient memory for the Java Runtime Environment to continue.OpenJDK 64-Bit Server VM warning: INFO: os::commit_memory(0x0000000633c00000, 484442112, 0) failed; error='Not enough space' (errno=12)
[36f2f7d1a8ca2f13e1324b998779ed1df8df0dd8] [INFO] # Native memory allocation (mmap) failed to map 484442112 bytes for committing reserved memory.
[36f2f7d1a8ca2f13e1324b998779ed1df8df0dd8] [ERROR] # An error report file with more information is saved as:
[36f2f7d1a8ca2f13e1324b998779ed1df8df0dd8] [INFO] # /james-project/hs_err_pid1041.log

mvn test 🍏

test this please

@chibenwa
Copy link
Member Author

chibenwa commented Oct 4, 2019

MemorySpamAssassinContractTest.spamShouldBeDeliveredInSpamMailboxOrInboxWhenMultipleRecipientsConfigurations » ConditionTimeout

test this please

@chibenwa
Copy link
Member Author

chibenwa commented Oct 7, 2019

[1c0f97530f51eb950a44300e32f2a748e7a940e5] [ERROR] sendingOneHundredMessagesShouldBeRandomlyAssignedToEveryMailboxesOfEveryUsers  Time elapsed: 323.578 s  <<< ERROR!
[1c0f97530f51eb950a44300e32f2a748e7a940e5] org.awaitility.core.ConditionTimeoutException: 
[1c0f97530f51eb950a44300e32f2a748e7a940e5] Assertion condition defined as a lambda expression in org.apache.james.smtp.SmtpRandomStoringTest 
[1c0f97530f51eb950a44300e32f2a748e7a940e5] Expecting:
[1c0f97530f51eb950a44300e32f2a748e7a940e5]  <39L>
[1c0f97530f51eb950a44300e32f2a748e7a940e5] to be between:
[1c0f97530f51eb950a44300e32f2a748e7a940e5]  [400L, 800L] within 10 seconds.
[1c0f97530f51eb950a44300e32f2a748e7a940e5] 	at org.apache.james.smtp.SmtpRandomStoringTest.sendingOneHundredMessagesShouldBeRandomlyAssignedToEveryMailboxesOfEveryUsers(SmtpRandomStoringTest.java:156)
[1c0f97530f51eb950a44300e32f2a748e7a940e5] Caused by: java.util.concurrent.TimeoutException
[1c0f97530f51eb950a44300e32f2a748e7a940e5] 	at org.apache.james.smtp.SmtpRandomStoringTest.sendingOneHundredMessagesShouldBeRandomlyAssignedToEveryMailboxesOfEveryUsers(SmtpRandomStoringTest.java:156)
[1c0f97530f51eb950a44300e32f2a748e7a940e5] 

test this please

@chibenwa
Copy link
Member Author

The email corpus we tested this against does not contains HTML nor attachment and thus is not significative for performance evaluation of this change set.

@chibenwa
Copy link
Member Author

Merged

@chibenwa chibenwa closed this Oct 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
perf Contributes some performance enhencements
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants