Uploaded image for project: 'Flume'
  1. Flume
  2. FLUME-3192

It seems that flume-ng-elasticsearch-sink has an wrong spell

    XMLWordPrintableJSON

Details

    • Question
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.7.0, 1.8.0
    • None
    • Sinks+Sources
    • None

    Description

      there is some code from flume-ng-sinks/flume-ng-elasticsearch-sink/src/main/java/org/apache/flume/sink/elasticsearch/ElasticSearchSink.java(line 311 to line 317)

      // Some comments here
          String indexNameBuilderClass = DEFAULT_INDEX_NAME_BUILDER_CLASS;
          if (StringUtils.isNotBlank(context.getString(INDEX_NAME_BUILDER))) {
            indexNameBuilderClass = context.getString(INDEX_NAME_BUILDER);
          }
      
          Context indexnameBuilderContext = new Context();
          serializerContext.putAll(context.getSubProperties(INDEX_NAME_BUILDER_PREFIX)); //line 317
      

      I think the line 317 should be like that:

          indexnameBuilderContext .putAll(
                  context.getSubProperties(INDEX_NAME_BUILDER_PREFIX));
      

      is it a wrong spell or i misunderstand the code
      sorry for my poor english

      Attachments

        Activity

          People

            Unassigned Unassigned
            youxianQ youxianqin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: