You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by SmedbergM <gi...@git.apache.org> on 2016/04/05 03:15:49 UTC

[GitHub] kafka pull request: Guards against null-pointer during schema vali...

GitHub user SmedbergM opened a pull request:

    https://github.com/apache/kafka/pull/1186

    Guards against null-pointer during schema validation

    This edit fixes a null-pointer exception which we encountered during testing. Truncated stack trace:
    ```
    [2016-04-04 18:27:03,667] ERROR CRITICAL: Failed to serialize offset data, making it impossible to commit offsets under namespace test-fileconnector-source. This likely won't recover unless the unserializable partition or offset information is overwritten. (org.apache.kafka.connect.storage.OffsetStorageWriter:152)
    [2016-04-04 18:27:03,667] ERROR Cause of serialization failure: (org.apache.kafka.connect.storage.OffsetStorageWriter:155)
    java.lang.NullPointerException
    	at org.apache.kafka.connect.storage.OffsetUtils.validateFormat(OffsetUtils.java:50)
    	at org.apache.kafka.connect.storage.OffsetStorageWriter.doFlush(OffsetStorageWriter.java:141)
    	at org.apache.kafka.connect.runtime.WorkerSourceTask.commitOffsets(WorkerSourceTask.java:267)
    ...
    ```

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/SmedbergM/kafka trunk

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/kafka/pull/1186.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #1186
    
----

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---