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

refresh relayFilter after relay changed #103

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mikewuhao
Copy link

If a client is configed to pull data from multi relays and these relays has diffrent id-source relationship,the client' partition thread may pull all partition's data from relay.That's because the _relayFilter property can't be refreshed after client change relay. For example:

  1. there are two relays RA and RB.
    2.RA and RB conern one table T , but has diffrent id-source relation.RA's source config is:
    id:1,
    source:test.T
    RB's source config is:
    id:2,
    source:test.T
  2. A client is configerd to pull data from RA and RB
    4.client pull data from RA and the stream request's filter params looks like this:
    {"1":{"partitionType":"MOD","filters":[{"bktRange":{"start":0,"end":1},"numBuckets":10}]}}
  3. when client start to pull data from RB, the filter params will not be changed.but RB don't have the source-id 1 table.RB will return all data without server side filter.

@buptyzc
Copy link
Contributor

buptyzc commented Jul 31, 2017

good

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.

3 participants