Skip to content

Commit fc9e4e7

Browse files
authored
fix 'occured' -> 'occurred' typos in error messages across C# and Python IPC (#3733)
- lang/csharp/.../HttpListenerServer.cs: Debug.Print message in the HTTP listener when the per-request handler throws. - lang/py/.../tether/tether_task_runner.py: two log.error messages emitted from TetherTaskRunner.process_message when the partition message fails to parse or any other exception propagates. - lang/py/.../tether/tether_task.py: two log messages emitted from TetherTask.fail when the task reports failure / fails to send the fail message back to the output server. No functional changes. Signed-off-by: Sai Asish Y <say.apm35@gmail.com>
1 parent eabdfd2 commit fc9e4e7

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

lang/csharp/src/apache/ipc/HttpListenerServer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ protected void HttpListenerCallback(IAsyncResult result)
7777
// ExceptionHandler(ex, result);
7878
//else
7979
// Debug.Print("Exception occured while processing a request, no exception handler was provided - ignoring", ex);
80-
Debug.Print("Exception occured while processing a web request, skipping this request: ", ex);
80+
Debug.Print("Exception occurred while processing a web request, skipping this request: ", ex);
8181
}
8282
}
8383

lang/py/avro/tether/tether_task.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ def fail(self, message):
422422
"""
423423
Call to fail the task.
424424
"""
425-
self.log.error("TetherTask.fail: failure occured message follows:\n%s", message)
425+
self.log.error("TetherTask.fail: failure occurred message follows:\n%s", message)
426426
try:
427427
message = message.decode()
428428
except AttributeError:
@@ -431,7 +431,7 @@ def fail(self, message):
431431
try:
432432
self.outputClient.request("fail", {"message": message})
433433
except Exception:
434-
self.log.exception("TetherTask.fail: an exception occured while trying to send the fail message to the output server.")
434+
self.log.exception("TetherTask.fail: an exception occurred while trying to send the fail message to the output server.")
435435

436436
self.close()
437437

lang/py/avro/tether/tether_task_runner.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def invoke(self, message, request):
6767
try:
6868
self.task.partitions = request["partitions"]
6969
except Exception:
70-
self.log.error("Exception occured while processing the partitions message: Message:\n%s", traceback.format_exc())
70+
self.log.error("Exception occurred while processing the partitions message: Message:\n%s", traceback.format_exc())
7171
raise
7272
elif message.name == "input":
7373
self.log.info("TetherTaskRunner: Received input")
@@ -84,7 +84,7 @@ def invoke(self, message, request):
8484
self.log.warning("TetherTaskRunner: Received unknown message %s", message.name)
8585

8686
except Exception:
87-
self.log.error("Error occured while processing message: %s", message.name)
87+
self.log.error("Error occurred while processing message: %s", message.name)
8888
e = traceback.format_exc()
8989
self.task.fail(e)
9090

0 commit comments

Comments
 (0)