-
Notifications
You must be signed in to change notification settings - Fork 428
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
The second release of mod_mam #151
Merged
Merged
Changes from 35 commits
Commits
Show all changes
39 commits
Select commit
Hold shift + click to select a range
98c0dcb
Added a first version of Cassandra MAM backend.
arcusfelis 1b34361
Added query_refs_count for mod_mam_muc_ca_arch.
arcusfelis 4f52139
Added new book filter_local_packet. Fixed {badarg,[{ets,member,['ejab…
arcusfelis 1f862da
Added a special version of mod_mam_cache_user for MUC.
arcusfelis 5f57392
Added mod_mam_odbc_server_user: archive id assignor for multiple hosts.
arcusfelis 7e9dcef
Added unique constraint for mam_user and mam_server_user tables.
arcusfelis 96a6787
Deleted MAM_ARCHIVE_PRESENCE. Splited is_complete_message into severa…
arcusfelis a4963f8
Added seestar into release dependencies.
arcusfelis 6fdb71c
Fixed wrong function name.
arcusfelis 5277e01
Added prepare_user_id/1 for mod_mam_ca_arch.
arcusfelis 8e95418
Added mod_mam_muc_ca_arch:select_worker/2.
arcusfelis c0b0197
Merge branch 'arc-mam-mods' into arc-mam-ca
arcusfelis a429296
Added mod_mam_muc_ca_arch:prepare_room_id/1.
arcusfelis d682fa3
Added servers config variable for mod_mam_muc_ca_arch.
arcusfelis cffc459
Select worker based on archive id in mod_mam_muc_ca_arch.
arcusfelis de799c0
Deleted prepare_room_id.
arcusfelis 3ae3e19
Added mod_mam_con_ca_arch.
arcusfelis ccf9f3e
Added mam_con_user table. for tracking conversations.
arcusfelis ee5dfb4
Removing messages from mod_mam_con_ca_arch.
arcusfelis c87b188
Choosed a better strategy of cleaning conversation archives.
arcusfelis de38339
Deleted mod_mam:check_archive_id/2 to allow an archive id to be undef…
arcusfelis bd8d543
Added cassandra.cql.
arcusfelis fc27f26
Unreachable cassandra nodes do not crash MIM. Wait 10 seconds before …
arcusfelis 0c1f48f
Added a helper function mod_mam_con_ca_arch:get_conversations_after/3.
arcusfelis 568ba88
Allow filtering of the small result set on the server side.
arcusfelis 8947831
Filter data inside mod_mam_con_ca_arch:get_conversations_after/3 in E…
arcusfelis e09d327
Added get_last_conversations/2.
arcusfelis 1c22f7e
Replaced mam_ns_binary() with ?NS_MAM.
arcusfelis 95ac562
Handle timeouts (show an error message and increase metric's value).
arcusfelis 752eb4b
Catch exceptions inside backend modules.
arcusfelis d779e83
Deleted incompleted mod_mam_ca_arch.
arcusfelis 32bf411
Added configuration examples for Cassandra back-ends.
arcusfelis a3265b3
Merge branch 'arc-mam-mods' into arc-mam-rel2
arcusfelis e36db07
Merge branch 'arc-mam-ca' into arc-mam-rel2
arcusfelis a52d940
Add process tags
arcusfelis e767045
Merge branch 'master' into arc-mam-rel2
arcusfelis 08813f4
Encode MAM message ids in Base 32
arcusfelis 9223cec
Fix a bug in elem_to_end_microseconds/1
arcusfelis 44d919f
Add PgSQL schema for mam_server_user table (compare with mysql.sql)
arcusfelis File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
CREATE KEYSPACE mam | ||
WITH REPLICATION = {'class' : 'SimpleStrategy', 'replication_factor': 3}; | ||
USE mam; | ||
|
||
CREATE TABLE mam_muc_message ( | ||
id bigint, | ||
room_id int, | ||
nick_name varchar, | ||
message blob, | ||
PRIMARY KEY (room_id, id)); | ||
|
||
CREATE TABLE mam_con_message( | ||
id bigint, | ||
lower_jid varchar, | ||
upper_jid varchar, | ||
is_from_lower boolean, | ||
message blob, | ||
PRIMARY KEY ((lower_jid, upper_jid), id)); | ||
|
||
CREATE TABLE mam_con_user( | ||
local_jid varchar, | ||
remote_jid varchar, | ||
last_message_id bigint, | ||
PRIMARY KEY (local_jid, remote_jid)); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Why do we want process dictionary here? Can't this be in process state?
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.
@arcusfelis could you answer this question?
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.
It is used for getting information about running processes. To get information from state, you need to call process (hard, if its message queue is too big). But process dictionary can be asked directly.
Also, information from the process dictionary is shown in SASL crash messages.
I am using this kind of code to find MySQL connection and receiver processes for localhost:
This functionality also can be used for something else :)