You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@inlong.apache.org by GitBox <gi...@apache.org> on 2022/09/08 06:30:21 UTC

[GitHub] [inlong] xuesongxs opened a new pull request, #5831: [INLONG-5830][DataProxy] Fix required parameter topic exception

xuesongxs opened a new pull request, #5831:
URL: https://github.com/apache/inlong/pull/5831

   - Fixes #5830 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@inlong.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [inlong] gosonzhang commented on a diff in pull request #5831: [INLONG-5830][DataProxy] Fix required parameter topic exception

Posted by GitBox <gi...@apache.org>.
gosonzhang commented on code in PR #5831:
URL: https://github.com/apache/inlong/pull/5831#discussion_r965749178


##########
inlong-dataproxy/dataproxy-source/src/main/java/org/apache/inlong/dataproxy/http/HttpBaseSource.java:
##########
@@ -117,10 +117,7 @@ public void configure(Context context) {
 
         topic = context.getString(ConfigConstants.TOPIC);
         attr = context.getString(ConfigConstants.ATTR);
-        Configurables.ensureRequiredNonNull(context, ConfigConstants.TOPIC, ConfigConstants.ATTR);

Review Comment:
   @xuesongxs, you're right, and from your reply, you've figured out how it works, thanks!
   
   Looking forward to your more contributions!!



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@inlong.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [inlong] xuesongxs commented on pull request #5831: [INLONG-5830][DataProxy] Fix required parameter topic exception

Posted by GitBox <gi...@apache.org>.
xuesongxs commented on PR #5831:
URL: https://github.com/apache/inlong/pull/5831#issuecomment-1240351032

   Use the topic in the topics.properties file to handle the message, instead of using the topic field in the dataproxy-mulit-pulsar-http-example.conf file.
   
   From: Goson Zhang
   Date: 2022-09-08 15:26
   To: apache/inlong
   CC: xuesongxs; Author
   Subject: Re: [apache/inlong] [INLONG-5830][DataProxy] Fix required parameter topic exception (PR #5831)
   @gosonzhang commented on this pull request.
   
   
   In inlong-dataproxy/dataproxy-source/src/main/java/org/apache/inlong/dataproxy/http/HttpBaseSource.java:
   > @@ -117,10 +117,7 @@ public void configure(Context context) {
    
            topic = context.getString(ConfigConstants.TOPIC);
            attr = context.getString(ConfigConstants.ATTR);
   -        Configurables.ensureRequiredNonNull(context, ConfigConstants.TOPIC, ConfigConstants.ATTR);
   
   How to handle the message if the topic is empty and not checked?
   —
   Reply to this email directly, view it on GitHub, or unsubscribe.
   You are receiving this because you authored the thread.Message ID: ***@***.***>
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@inlong.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [inlong] dockerzhang merged pull request #5831: [INLONG-5830][DataProxy] Fix required parameter topic exception

Posted by GitBox <gi...@apache.org>.
dockerzhang merged PR #5831:
URL: https://github.com/apache/inlong/pull/5831


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@inlong.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [inlong] xuesongxs commented on a diff in pull request #5831: [INLONG-5830][DataProxy] Fix required parameter topic exception

Posted by GitBox <gi...@apache.org>.
xuesongxs commented on code in PR #5831:
URL: https://github.com/apache/inlong/pull/5831#discussion_r965619161


##########
inlong-dataproxy/dataproxy-source/src/main/java/org/apache/inlong/dataproxy/http/HttpBaseSource.java:
##########
@@ -117,10 +117,7 @@ public void configure(Context context) {
 
         topic = context.getString(ConfigConstants.TOPIC);
         attr = context.getString(ConfigConstants.ATTR);
-        Configurables.ensureRequiredNonNull(context, ConfigConstants.TOPIC, ConfigConstants.ATTR);

Review Comment:
   ![image](https://user-images.githubusercontent.com/54351417/189065488-9fe4a7b9-18bd-412d-ba42-5d5c8ea70b44.png)
   



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@inlong.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [inlong] gosonzhang commented on a diff in pull request #5831: [INLONG-5830][DataProxy] Fix required parameter topic exception

Posted by GitBox <gi...@apache.org>.
gosonzhang commented on code in PR #5831:
URL: https://github.com/apache/inlong/pull/5831#discussion_r965598543


##########
inlong-dataproxy/dataproxy-source/src/main/java/org/apache/inlong/dataproxy/http/HttpBaseSource.java:
##########
@@ -117,10 +117,7 @@ public void configure(Context context) {
 
         topic = context.getString(ConfigConstants.TOPIC);
         attr = context.getString(ConfigConstants.ATTR);
-        Configurables.ensureRequiredNonNull(context, ConfigConstants.TOPIC, ConfigConstants.ATTR);

Review Comment:
   How to handle the message if the topic is empty and not checked?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@inlong.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [inlong] xuesongxs commented on a diff in pull request #5831: [INLONG-5830][DataProxy] Fix required parameter topic exception

Posted by GitBox <gi...@apache.org>.
xuesongxs commented on code in PR #5831:
URL: https://github.com/apache/inlong/pull/5831#discussion_r965618593


##########
inlong-dataproxy/dataproxy-source/src/main/java/org/apache/inlong/dataproxy/http/HttpBaseSource.java:
##########
@@ -117,10 +117,7 @@ public void configure(Context context) {
 
         topic = context.getString(ConfigConstants.TOPIC);
         attr = context.getString(ConfigConstants.ATTR);
-        Configurables.ensureRequiredNonNull(context, ConfigConstants.TOPIC, ConfigConstants.ATTR);

Review Comment:
   > How to handle the message if the topic is empty and not checked?
   
   Use the topic in the topics.properties file to handle the message, instead of using the topic field in the dataproxy-mulit-pulsar-http-example.conf file.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@inlong.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org