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

Deleting inputs on radio does not delete input from MongoDB #932

Closed
bernd opened this Issue Jan 30, 2015 · 2 comments

Comments

Projects
None yet
2 participants
@bernd
Member

bernd commented Jan 30, 2015

Deleting an input from a radio node stops the input on the radio but does not delete the input from MongoDB. The input on the radio starts again after the radio node got restarted.

The input stops on the radio node.

2015-01-30 14:19:45,513 INFO : org.graylog2.radio.rest.resources.system.inputs.InputsResource - Launching existing input [Random HTTP message generator]. Reason: REST request.
2015-01-30 14:19:45,516 INFO : org.graylog2.radio.rest.resources.system.inputs.InputsResource - Launched existing input [Random HTTP message generator]. Reason: REST request.
2015-01-30 14:19:46,222 INFO : kafka.client.ClientUtils$ - Fetching metadata from broker id:0,host:127.0.0.1,port:9092 with correlation id 0 for 1 topic(s) Set(graylog2-radio-messages)
2015-01-30 14:19:46,222 INFO : kafka.client.ClientUtils$ - Fetching metadata from broker id:0,host:127.0.0.1,port:9092 with correlation id 0 for 1 topic(s) Set(graylog2-radio-messages)
2015-01-30 14:19:46,226 INFO : kafka.producer.SyncProducer - Connected to 127.0.0.1:9092 for producing
2015-01-30 14:19:46,226 INFO : kafka.producer.SyncProducer - Connected to 127.0.0.1:9092 for producing
2015-01-30 14:19:46,295 INFO : kafka.producer.SyncProducer - Disconnecting from 127.0.0.1:9092
2015-01-30 14:19:46,295 INFO : kafka.producer.SyncProducer - Disconnecting from 127.0.0.1:9092
2015-01-30 14:19:46,402 INFO : kafka.producer.SyncProducer - Connected to aarhus-radio1.novalocal:9092 for producing
2015-01-30 14:19:46,405 INFO : kafka.producer.SyncProducer - Connected to aarhus-radio1.novalocal:9092 for producing
2015-01-30 14:20:26,728 INFO : org.graylog2.radio.rest.resources.system.inputs.InputsResource - Attempting to terminate input [Random HTTP message generator]. Reason: REST request.
2015-01-30 14:20:26,745 INFO : org.graylog2.radio.rest.resources.system.inputs.InputsResource - Terminated input [Random HTTP message generator]. Reason: REST request.

But the database still has the input.

{
        "_id" : ObjectId("54cb9301e4b051d4e27f5fcf"),
        "creator_user_id" : "admin",
        "configuration" : {
                "sleep" : 25,
                "override_source" : "",
                "source" : "example.org",
                "sleep_deviation" : 30
        },
        "name" : "Random HTTP message generator",
        "created_at" : ISODate("2015-01-30T14:19:45.509Z"),
        "global" : false,
        "type" : "org.graylog2.inputs.random.FakeHttpMessageInput",
        "title" : "Random HTTP",
        "content_pack" : null,
        "node_id" : "15843883-d9ab-4eaf-b90e-80aa1e6ef6bb"
}

@bernd bernd added inputs bug labels Jan 30, 2015

@bernd bernd added this to the 1.0.0 milestone Jan 30, 2015

@dennisoelkers dennisoelkers self-assigned this Jan 30, 2015

dennisoelkers added a commit that referenced this issue Jan 30, 2015

Unregistering input in cluster when terminated on radio.
This had been implemented in master, but unfortunately not merged back
to the 1.0 branch.

Fixes #932
@dennisoelkers

This comment has been minimized.

Member

dennisoelkers commented Jan 30, 2015

@bernd: could you please validate if the fix is working and close the issue if it is?

@bernd

This comment has been minimized.

Member

bernd commented Jan 30, 2015

Works now, thanks.

@bernd bernd closed this Jan 30, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment