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

[grouping rules] Grouped destination not working when using batching #675

Closed
frbattid opened this issue Dec 16, 2015 · 3 comments
Closed
Assignees
Labels

Comments

@frbattid
Copy link
Member

Real example:

Grouping rules:

{
    "grouping_rules": [
        {
            "id": 1,
            "fields": [
                "entityId"
            ],
            "regex": "DEVMATCH1",
            "destination": "newdest1",
            "fiware_service_path": "newservpath1"
            "sinks": [
                "mysql-sink"
            ]

        },
        {
            "id": 2,
            "fields": [
                "entityType"
            ],
            "regex": "TYPEMATCH2",
            "destination": "newdest2",
            "fiware_service_path": "newservpath2"
        }
    ]
}

Notification:

{
  "subscriptionId": "566febbf87137579fa936e30",
  "originator": "localhost",
  "contextResponses": [
    {
      "contextElement": {
        "type": "thing",
        "isPattern": "false",
        "id": "DEVMATCH1",
        "attributes": [
          {
            "name": "temperature",
            "type": "centigrade",
            "value": "1340",
            "metadatas": [
              {
                "name": "MetaTest",
                "type": "TestType1",
                "value": "UPDATED"
              }
            ]
          }
        ]
      },
      "statusCode": {
        "code": "200",
        "reasonPhrase": "OK"
      }
    }
  ]
}

Log:

2015-12-15 05:30:50,257 (SinkRunner-PollingRunner-DefaultSinkProcessor) [INFO - com.telefonica.iot.cygnus.sinks.OrionMySQLSink.persistAggregation(OrionMySQLSink.java:430)] [mysql-sink] Persisting data at OrionMySQLSink. Database (smartvalencia), Table (newservpath1_devmatch1_thing), Fields ((recvTime,fiwareservicepath,entityId,entityType,temperature,temperature_md)), Values (('2015-12-15T10:30:24.659Z','newservpath1','DEVMATCH1','thing','1340','[{"name":"MetaTest","type":"TestType1","value":"UPDATED"
@rbl219
Copy link

rbl219 commented Jan 11, 2016

Has been tested OK Cygnus rpm generated with branch bug/675_grouped_destination_not_working_with_batches

Pending merge with branch release/0.11.0

@frbattid
Copy link
Member Author

Fixed in PR #677

@frbattid
Copy link
Member Author

Exceptionally, this has also been fixed for release/0.11.0 in PR #701

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

2 participants