You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@streams.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2015/04/01 03:57:53 UTC
[jira] [Commented] (STREAMS-231) Basic Neo4j graph persistence
[ https://issues.apache.org/jira/browse/STREAMS-231?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14389869#comment-14389869 ]
ASF GitHub Bot commented on STREAMS-231:
----------------------------------------
Github user steveblackmon commented on a diff in the pull request:
https://github.com/apache/incubator-streams/pull/203#discussion_r27539716
--- Diff: streams-components/streams-http/src/main/java/org/apache/streams/components/http/persist/SimpleHTTPPostPersistWriter.java ---
@@ -113,13 +113,14 @@ protected ObjectNode preparePayload(StreamsDatum entry) {
public HttpPost prepareHttpPost(URI uri, ObjectNode payload) {
HttpPost httppost = new HttpPost(uri);
httppost.addHeader("content-type", this.configuration.getContentType());
+ httppost.addHeader("accept-charset", "UTF-8");
try {
String entity = mapper.writeValueAsString(payload);
httppost.setEntity(new StringEntity(entity));
} catch (JsonProcessingException e) {
- e.printStackTrace();
+ LOGGER.warn(e.getMessage());
--- End diff --
i've typically used WARN when a specific datum fails to process/persist, but there's no evidence that all future data will fail.
> Basic Neo4j graph persistence
> -----------------------------
>
> Key: STREAMS-231
> URL: https://issues.apache.org/jira/browse/STREAMS-231
> Project: Streams
> Issue Type: Sub-task
> Reporter: Steve Blackmon
> Assignee: Steve Blackmon
>
> Implement basic Neo4j graph persistence
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)