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

Bus client with multiple active profiles does not match RemoteApplicationEvent #62

Closed
kelapure opened this issue Mar 30, 2017 · 0 comments
Labels
Milestone

Comments

@kelapure
Copy link

Transition this issue from spring-cloud-config
Please see spring-cloud/spring-cloud-config#678

copied the issue here for readbility

Current Github Repository structure is like so ...

test-config-server-repo/customerportal/

  • application.yml WORKS
  • customerportal.yml WORKS
  • application-dev.yml NOT WORK
  • customerportal-cloud.yml NOT WORK
  • customerportal-dev.yml NOT WORK

NOT WORK

On a change in customerportal-cloud.yml property we see the following RemoteRefreshApplicationEvent sent by the Spring Cloud Config Server

  {
    timestamp: 1490884282070,
    info: {
    signal: "spring.cloud.bus.sent",
    type: "RefreshRemoteApplicationEvent",
    id: "cac63deb-88b4-4762-b225-916eb44a40ff",
    origin: "pcfConfigServer:cloud:0",
    destination: "customerportal:cloud:**"
  }

On the client / consumer side the application context ID is
customerportal:dev,cloud:0

The client does not get notified of this remote event.

Notification does not work for any file that has the profile name in it.

WORKS

However when the following files change application.yml and customerportal.yml are modified the the RemoteRefreshEvent destination customerportal:** matched the applicationContextID of customerportal:dev,cloud:0 and the client/consumer apps are notified.

We have two active profiles for our consumer aka config client apps

  • dev
  • cloud
@dsyer dsyer changed the title Spring Cloud Config client does not match RefreshRemoteApplicationEvent that contains multiple profiles Bus client with multiple active profiles does not match RemoteApplicationEvent Mar 31, 2017
@dsyer dsyer added the bug label Mar 31, 2017
@spencergibb spencergibb added this to the 1.3.0.RELEASE milestone Apr 5, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants