Skip to content

Commit b6d6df2

Browse files
committed
chore: typo sweep (occured, recieved, nonexistant)
Ten single-character typo fixes across carnot, stirling, shared, table_store and vizier subtrees — comments and one error string. No functional change.
1 parent 57e15b3 commit b6d6df2

10 files changed

Lines changed: 10 additions & 10 deletions

File tree

src/carnot/exec/grpc_router.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ class GRPCRouter final : public carnotpb::ResultSinkService::Service {
8181
Status DeleteGRPCSourceNode(sole::uuid query_id, int64_t source_id);
8282

8383
/**
84-
* @brief Get any errors that may have occured in the incoming worker nodes.
84+
* @brief Get any errors that may have occurred in the incoming worker nodes.
8585
*
8686
* @param query_id
8787
* @return StatusOr<std::vector<statuspb::Status>>

src/carnot/funcs/builtins/sql_parsing/normalization.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ std::ostream& operator<<(std::ostream& os, const NormalizeResult& result);
141141

142142
struct NormalizationState {
143143
// Number of characters to shift character indices into the query by, to account for replacements
144-
// that have already occured.
144+
// that have already occurred.
145145
int n_shift_query = 0;
146146
std::vector<int> line_start_offsets;
147147
std::string next_placeholder;

src/carnot/funcs/metadata/metadata_ops_test.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,7 @@ TEST_F(MetadataOpsTest, pod_name_to_stop_time) {
542542
auto function_ctx = std::make_unique<FunctionContext>(metadata_state_, nullptr);
543543
// pl/terminating_pod is the Pod name for a terminating pod.
544544
EXPECT_EQ(udf.Exec(function_ctx.get(), "pl/terminating_pod").val, 15);
545-
// pl/blah is a nonexistant Pod, should return 0.
545+
// pl/blah is a nonexistent Pod, should return 0.
546546
EXPECT_EQ(udf.Exec(function_ctx.get(), "pl/blah").val, 0);
547547
}
548548

src/carnot/planner/distributed/grpc_source_conversion.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ StatusOr<bool> MergeSameNodeGRPCBridgeRule::Apply(IRNode* ir_node) {
114114
int64_t dest_id = grpc_sink->agent_id_to_destination_id().at(current_agent_id_);
115115
auto node = grpc_sink->graph()->Get(dest_id);
116116
if (!Match(node, GRPCSource())) {
117-
return node->CreateIRNodeError("Expected node to be a 'GRPCSource', but recieved a '$0'",
117+
return node->CreateIRNodeError("Expected node to be a 'GRPCSource', but received a '$0'",
118118
node->DebugString());
119119
}
120120
auto grpc_sink_parent = grpc_sink->parents()[0];

src/carnot/planner/objects/qlobject.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ class QLObject {
189189

190190
/**
191191
* @brief Creates an error for this objects. Packages checks to make sure you have an ir node for
192-
* line,col error resporting. Defaults to standard error in case an ir node is nonexistant..
192+
* line,col error resporting. Defaults to standard error in case an ir node is nonexistent.
193193
*
194194
* @return Status
195195
*/

src/carnot/planner/probes/probes.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ class TracepointIR {
7878
* @brief Serializes this probe definition as a protobuf.
7979
*
8080
* @param pb
81-
* @return Any error that occured during serialization.
81+
* @return Any error that occurred during serialization.
8282
*/
8383
Status ToProto(carnot::planner::dynamic_tracing::ir::logical::TracepointSpec* pb,
8484
const std::string& name);

src/shared/metadata/metadata_state.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ class K8sMetadataState : NotCopyable {
157157
/**
158158
* PodIDByIPAtTime returns the PodID for the pod with the given IP at the given timestamp.
159159
* @param pod_ip string of the pod IP.
160-
* @param timestamp_ns time at which this request occured.
160+
* @param timestamp_ns time at which this request occurred.
161161
* @return the pod_id or empty string if the pod does not exist.
162162
*/
163163
UID PodIDByIPAtTime(std::string_view pod_ip, int64_t timestamp_ns) const;

src/stirling/source_connectors/socket_tracer/data_stream_test.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,7 @@ TEST_F(DataStreamTest, SpikeCapacityWithLargeDataChunkAndSSLEnabled) {
495495
}
496496

497497
TEST_F(DataStreamTest, ResyncCausesDuplicateEventBug) {
498-
// Test to catch regression on a bug. The bug occured when a resync occurs in ParseFrames, leading
498+
// Test to catch regression on a bug. The bug occurred when a resync occurs in ParseFrames, leading
499499
// to an invalid state where the data stream buffer still had data that had already been
500500
// processed.
501501
std::unique_ptr<SocketDataEvent> req0a =

src/table_store/table/table_store.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ class TableStore {
180180
*
181181
* @param table_id: table_id within which to create a tablet.
182182
* @param tablet_id: the tablet to create for the tablet.
183-
* @return StatusOr<Table*>: the table object or an error if the table is nonexistant.
183+
* @return StatusOr<Table*>: the table object or an error if the table is nonexistent.
184184
*/
185185
StatusOr<Table*> CreateNewTablet(uint64_t table_id, const types::TabletID& tablet_id);
186186

src/vizier/services/agent/shared/manager/chan_cache.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ class ChanCache {
7272
* The period where a connection goes from READY to IDLE can be adjusted with the channel
7373
* argument: GRPC_ARG_CLIENT_IDLE_TIMEOUT_MS. See the test for an example.
7474
*
75-
* @return Status: whether an error occured while cleaning up Idle/Dead Channels.
75+
* @return Status: whether an error occurred while cleaning up Idle/Dead Channels.
7676
*/
7777
Status CleanupChans();
7878

0 commit comments

Comments
 (0)