You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@geode.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2020/02/16 03:01:00 UTC

[jira] [Commented] (GEODE-7800) Add Redis PSUBSCRIBE and PUNSUBSCRIBE commands

    [ https://issues.apache.org/jira/browse/GEODE-7800?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17037689#comment-17037689 ] 

ASF subversion and git services commented on GEODE-7800:
--------------------------------------------------------

Commit 9f8a2ff2b43c183b4824dd5ab764ecd2243cb2e1 in geode's branch refs/heads/develop from Sarah Abbey
[ https://gitbox.apache.org/repos/asf?p=geode.git;h=9f8a2ff ]

GEODE-7800: Add Redis PSUBSCRIBE and PUNSUBSCRIBE commands (#4705)

* GEODE-7800: Add Redis PSUBSCRIBE and PUNSUBSCRIBE commands

Similar to `SUBSCRIBE` and `UNSUBSCRIBE`, `PSUBSCRIBE` allows a client
to subscribe to a pattern. For example: `PSUBSCRIBE sal*s`

The subscription pattern is in the form of a glob supporting `*`, `?`
and ranges. https://redis.io/commands/psubscribe

Pattern subscriptions must be unsubscribed verbatim. i.e., the above
subscription would not be unsubscribed using the pattern `s*`, but must
be unsubscribed using the complete subscribed pattern, namely `sal*s`.

When clients subscribe to overlapping patterns (or channels) they will
receive a message for every matched subscription. Matches for a single
client are not conflated.

    Co-authored-by: Sarah Abbey <sa...@pivotal.io>
    Co-authored-by: John Hutchison <jh...@pivotal.io>
    Co-authored-by: Jens Deppe <jd...@pivotal.io>

* Fixes class names in sanctioned-geode-redis-serializables.txt

* Fixes flaky test

* Adds license to PublishResult

* Clean code using spA and make test reliable

stop propagating exceptions that get thrown when disconnecting Jedis

* Cleans up subscribers and publishers after each test or after the whole class as needed

* re-add ignoreExceptions to waitfor test helper method

Co-authored-by: Jens Deppe <jd...@pivotal.io>
Co-authored-by: Venkateswara Prasath Durairaj <xt...@users.noreply.github.com>


> Add Redis PSUBSCRIBE and PUNSUBSCRIBE commands
> ----------------------------------------------
>
>                 Key: GEODE-7800
>                 URL: https://issues.apache.org/jira/browse/GEODE-7800
>             Project: Geode
>          Issue Type: Improvement
>          Components: redis
>            Reporter: Jens Deppe
>            Assignee: Jens Deppe
>            Priority: Major
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> Similar to {{SUBSCRIBE}} and {{UNSUBSCRIBE}}, {{PSUBSCRIBE}} allows a client to subscribe to a pattern. For example:
> {noformat}
> PSUBSCRIBE sal*s
> {noformat}
> The subscription pattern is in the form of a glob supporting {{*}}, {{?}} and ranges. https://redis.io/commands/psubscribe
> Pattern subscriptions must be unsubscribed verbatim. i.e., the above subscription would not be unsubscribed using the pattern {{s*}}, but must be unsubscribed using the complete subscribed pattern, namely {{sal*s}}.
> When clients subscribe to overlapping patterns (or channels) they will receive a message for every matched subscription. Matches for a single client are not conflated.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)